Template:Index/name
From Metabolomics.JP
(Difference between revisions)
Line 5: | Line 5: | ||
|align=left| {{Index/persist|name|{{#lua: | |align=left| {{Index/persist|name|{{#lua: | ||
local id = {{{1|aa}}}; | local id = {{{1|aa}}}; | ||
− | if (id == "aa") then print("aa"); | + | if (id == "aa") then |
+ | print("aa"); | ||
else if (string.byte(id,2) == 'a') then | else if (string.byte(id,2) == 'a') then | ||
print(string.char(string.byte(id,1)-1).."z"); | print(string.char(string.byte(id,1)-1).."z"); | ||
Line 12: | Line 13: | ||
|}}|{{#lua: | |}}|{{#lua: | ||
local id = {{{2|ab}}}; | local id = {{{2|ab}}}; | ||
− | if (id == "aa") then print("aa"); | + | if (id == "aa") then |
+ | print("aa"); | ||
else if (string.byte(id,2) == 'a') then | else if (string.byte(id,2) == 'a') then | ||
print(string.char(string.byte(id,1)-1).."z"); | print(string.char(string.byte(id,1)-1).."z"); |
Revision as of 14:49, 1 October 2008
名前のインデクス {{{1}}} 最小値(デフォルトaa) {{{2}}} 最大値(デフォルトab) {{{3}}} ページタイトル {{{4}}}ダミー Last updated: 20081001144914
[[Index:{{{3}}} |
./lua: /tmp/mw_ex_lua_FWzFiR:4: unfinished string near ]*([%a]+)[^&]*") do' |
}} |