Template:CrudeDrug/AlpsPic
From Metabolomics.JP
< Template:CrudeDrug(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
{{#ifexists:Image:{{PAGENAME}}.jpg| | {{#ifexists:Image:{{PAGENAME}}.jpg| | ||
− | + | <table> | |
− | + | <tr><td>[[Image:{{PAGENAME}}.jpg|250px]]</tr> | |
− | + | <tr><td> | |
− | + | {{{#bar:}} class="wikitable" style="width:40%" | |
− | { | + | |
{{#replace: | {{#replace: | ||
{{#lua: | {{#lua: | ||
Line 13: | Line 12: | ||
print("&"..line) | print("&"..line) | ||
end | end | ||
− | | {{{2|}}} }}|&|{{#bar:}} }} | + | | {{{2|foo1&&foo2&&foo3}}} }}|&|{{#bar:}} }} |
− | |} | + | {{#bar:}}} </tr> |
− | |} | + | </table> |
+ | }} | ||
+ | {{#ifexists:Image:{{PAGENAME}}2.jpg| | ||
+ | <table> | ||
+ | <tr><td>[[Image:{{PAGENAME}}.jpg|250px]]</tr> | ||
+ | <tr><td> | ||
+ | {{{#bar:}} class="wikitable" style="width:40%" | ||
+ | {{#replace: | ||
+ | {{#lua: | ||
+ | for line in stdin:gmatch("([^\n]+)") do | ||
+ | print("&-") | ||
+ | print("&"..line) | ||
+ | end | ||
+ | | {{{3|foo1&&foo2&&foo3}}} }}|&|{{#bar:}} }} | ||
+ | {{#bar:}}} </tr> | ||
+ | </table> | ||
}} | }} |