Template:Index/name

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 54: Line 54:
 
   local hash = {};
 
   local hash = {};
 
   local idx = {};
 
   local idx = {};
   for id, names in stdin:gmatch("&&(%w+)&&(.+)") do
+
   for id, names in stdin:gmatch("&&(%w+).Common Name=&&(.+)") do
 
     for word in string.gmatch("&&[%(%)%[%]%+%-%d%p\"']*([%a]+)[^&]*") do
 
     for word in string.gmatch("&&[%(%)%[%]%+%-%d%p\"']*([%a]+)[^&]*") do
 
       if ((string.sub(word,0,1) == string.sub(first,0,1)) and
 
       if ((string.sub(word,0,1) == string.sub(first,0,1)) and
Line 69: Line 69:
 
   end
 
   end
 
   print(output);
 
   print(output);
|{{{1}}} {{{2}}} {{#SearchLine:Common Name=||{{{3}}}}} }}
+
|{{{1}}} {{{2}}} {{#SearchLine:Common Name=|{{{3}}}}}|}}
 
}}
 
}}
 
}}
 
}}
 
|}
 
|}
 
{{#SearchLine:Common Name=|{{{3}}}|}}
 

Revision as of 15:40, 1 October 2008

名前のインデクス {{{1}}} 最小値(デフォルトaa) {{{2}}} 最大値(デフォルトab) {{{3}}} ページタイトル {{{4}}}ダミー Last updated: 20081001154002


./lua: /tmp/mw_ex_lua_NN4Ymi:6: bad argument #2 to 'gmatch' (string expected, got no value)

}}

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox