Template:Index/formula
From Metabolomics.JP
(Difference between revisions)
(8 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>名前のインデクス {{{1}}} 原子 {{{2}}} 数 {{{3}}} | + | <noinclude>名前のインデクス {{{1}}} 原子 {{{2}}} 数 {{{3}}} ページタイトル {{{4}}} タイトル候補リスト(&&区切り)</noinclude> |
− | + | {{Warning/Persist}} | |
+ | |||
{| width=100% | {| width=100% | ||
|- | |- | ||
|align=left| | |align=left| | ||
− | {{#repeat:Index/persist|6| | + | {{#repeat:Index/persist|6|{{#cdr: |
{{#lua: | {{#lua: | ||
− | |||
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}}}|<big>Back to Index</big>]] |
|align=right| | |align=right| | ||
− | {{#repeat:Index/persist| | + | {{#repeat:Index/persist|6|{{#cdr: |
{{#lua: | {{#lua: | ||
local id; | local id; | ||
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}}} }} |%}}|%}} |
|} | |} | ||
− | + | <hr> | |
{| class="wikitable" style="width=100%; margin: 1em auto; border-width:0px 0px 0px 0px;" | {| class="wikitable" style="width=100%; margin: 1em auto; border-width:0px 0px 0px 0px;" | ||
|- style="background:#ccf" | |- style="background:#ccf" | ||
Line 29: | Line 29: | ||
{{#lua: | {{#lua: | ||
local id, formula; | local id, formula; | ||
− | local pat = "{{{1|C}}} | + | local pat = "{{{1|C}}}{{{2|20}}}"; |
local hash = {}; | local hash = {}; | ||
local idx = {}; | local idx = {}; |
Latest revision as of 03:01, 25 March 2009
名前のインデクス {{{1}}} 原子 {{{2}}} 数 {{{3}}} ページタイトル {{{4}}} タイトル候補リスト(&&区切り)
Do not edit! This page is automatically generated using Persist function (Last updated: 20090325030110).
[[Index:{{{3}}}|Back to Index]] |