Template:Index/name
From Metabolomics.JP
(Difference between revisions)
Line 55: | Line 55: | ||
local idx = {}; | local idx = {}; | ||
for id, names in stdin:gmatch("&&(%w+).Common Name=&&(.+)") 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(names,"&&[%(%)%[%]%+%-%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 | ||
(string.byte(first,2) <= string.byte(word,2)) and | (string.byte(first,2) <= string.byte(word,2)) and |
Revision as of 15:42, 1 October 2008
名前のインデクス {{{1}}} 最小値(デフォルトaa) {{{2}}} 最大値(デフォルトab) {{{3}}} ページタイトル {{{4}}}ダミー Last updated: 20081001154200