Template:Index/formula
From Metabolomics.JP
(Difference between revisions)
Line 8: | Line 8: | ||
local output = ""; | local output = ""; | ||
for id in stdin:gmatch("&&(%w+)") do | for id in stdin:gmatch("&&(%w+)") do | ||
− | output = output.."formula%{{{1}}}%{{#expr:{{{2}}}-1}}%Index/formula%"..id.."%{{{ | + | output = output.."formula%{{{1}}}%{{#expr:{{{2}}}-1}}%Index/formula%"..id.."%{{{4}}}%"; |
end | end | ||
− | print(output);|{{{ | + | print(output); |{{{4}}} }} |%}} |
− | |align=center| [[Index:{{{ | + | |align=center| [[Index:{{{3}}}|Back to Index]] |
|align=right| | |align=right| | ||
{{#repeat:Index/persist|5| | {{#repeat:Index/persist|5| | ||
Line 18: | Line 18: | ||
local output = ""; | local output = ""; | ||
for id in stdin:gmatch("&&(%w+)") do | for id in stdin:gmatch("&&(%w+)") do | ||
− | output = output.."formula%{{{1}}}%{{#expr:{{{2}}}+1}}%Index/formula%"..id.."%{{{ | + | output = output.."formula%{{{1}}}%{{#expr:{{{2}}}+1}}%Index/formula%"..id.."%{{{4}}}%"; |
end | end | ||
− | print(output);|{{{ | + | print(output);|{{{4}}} }} |%}} |
|} | |} | ||
Revision as of 11:28, 2 May 2008
名前のインデクス {{{1}}} 原子 {{{2}}} 数 {{{3}}} ページタイトルと名前のリスト(&&区切り){{{4}}} ダミー Last updated: 20080502112807
[[Index:{{{3}}}|Back to Index]] |