Template:Pathway/GetPathwayList
From Metabolomics.JP
< Template:Pathway(Difference between revisions)
Line 1: | Line 1: | ||
− | |||
{| class="collapsible collapsed" width="80%" border="1" cellpadding="2" cellspacing="1" style=" margin: 1em 1em 1em 1em" | {| class="collapsible collapsed" width="80%" border="1" cellpadding="2" cellspacing="1" style=" margin: 1em 1em 1em 1em" | ||
! style="background-color: Lavender" | <small>Pathways:</small> | ! style="background-color: Lavender" | <small>Pathways:</small> | ||
{{Pathway/PathwayTableRow|1| | {{Pathway/PathwayTableRow|1| | ||
− | {{#replace:{{#SearchLine:{{{1}}}|Pathway}}|. ?source ?=|&&}} | + | |
+ | {{#lua: ---ページ名の重複を除く--- | ||
+ | local seen = {}; | ||
+ | for str in stdin:gmatch("([^\n]+)") do | ||
+ | str = findpattern(str,'&& ?(%w+)&&'); | ||
+ | if not seen[str] then print(str); seen[str] = true; end | ||
+ | end | ||
+ | |{{#replace:{{#SearchLine:{{{1}}}|Pathway}}|. ?source ?=|&&}}}} | ||
}} | }} | ||
− | + | ||
}} | }} | ||
+ | |} |
Revision as of 01:19, 22 March 2009
Pathways:
Template:Pathway/PathwayTableRow }} |
---|