Template:Index/name
From Metabolomics.JP
(Difference between revisions)
Line 4: | Line 4: | ||
|- | |- | ||
|align=left| {{Index/persist|name|{{#lua: | |align=left| {{Index/persist|name|{{#lua: | ||
− | local id = | + | local id = stdin:match("%S+"); |
if (id == "aa") then | if (id == "aa") then | ||
print("aa"); | print("aa"); | ||
Line 12: | Line 12: | ||
end | end | ||
end | end | ||
− | |}}|{{#lua: | + | | {{{1|aa}}} }} |
− | local id = | + | |{{#lua: |
+ | local id = stdin:match("%S+"); | ||
if (id == "aa") then | if (id == "aa") then | ||
print("aa"); | print("aa"); | ||
Line 21: | Line 22: | ||
end | end | ||
end | end | ||
− | |}}|Index/name|{{{3}}}|{{{4|}}}}} | + | | {{{2|az}}} }} |
+ | |Index/name|{{{3}}}|{{{4|}}} }} | ||
|align=center| [[Index:{{{3}}} | |align=center| [[Index:{{{3}}} | ||
|align=right| {{Index/persist|name|{{#lua: | |align=right| {{Index/persist|name|{{#lua: | ||
− | local id = | + | local id = stdin:match("%S+"); |
if (id == "zz") then print("zz"); | if (id == "zz") then print("zz"); | ||
else if (string.byte(id,2) == 'z') then | else if (string.byte(id,2) == 'z') then | ||
Line 30: | Line 32: | ||
else print(string.sub(id,0,1)..string.char(string.byte(id,2)+1)); | else print(string.sub(id,0,1)..string.char(string.byte(id,2)+1)); | ||
end | end | ||
− | |}}|{{#lua: | + | | {{{1|aa}}} }} |
− | local id = | + | |{{#lua: |
+ | local id = stdin:match("%S+"); | ||
if (id == "aa") then print("zz"); | if (id == "aa") then print("zz"); | ||
else if (string.byte(id,2) == 'z') then | else if (string.byte(id,2) == 'z') then | ||
Line 38: | Line 41: | ||
end | end | ||
end | end | ||
− | |}}|Index/name|{{{3}}}|{{{4|}}}}} | + | | {{{2|az}}} }} |
+ | |Index/name|{{{3}}}|{{{4|}}}}} | ||
|} | |} | ||
Revision as of 14:54, 1 October 2008
名前のインデクス {{{1}}} 最小値(デフォルトaa) {{{2}}} 最大値(デフォルトab) {{{3}}} ページタイトル {{{4}}}ダミー Last updated: 20081001145419
[[Index:{{{3}}} |
./lua: /tmp/mw_ex_lua_9rJuG0:4: unfinished string near ]*([%a]+)[^&]*") do' |
}} |