Template:Enzyme/ListMapping
From Metabolomics.JP
< Template:Enzyme(Difference between revisions)
Line 1: | Line 1: | ||
<!---Defines MAPREV (reverse label) and MAPDIR. The latter will be later used by Template:AtomMapping ---> | <!---Defines MAPREV (reverse label) and MAPDIR. The latter will be later used by Template:AtomMapping ---> | ||
{{#def:MAPREV|{{#cadr:{{{1|}}}|$}}${{#car:{{{1|}}}|$}}${{#cddr:{{{1|}}}|$}}}} | {{#def:MAPREV|{{#cadr:{{{1|}}}|$}}${{#car:{{{1|}}}|$}}${{#cddr:{{{1|}}}|$}}}} | ||
− | <!---Check whether the mapping label exists | + | <!---Check whether the mapping label exists |
− | {{#ifexist:Lipid:{{{1 | + | {{#ifexist:Lipid:{{{1}}} |
|{{#ifexist:Lipid:{{#var:MAPREV}} | |{{#ifexist:Lipid:{{#var:MAPREV}} | ||
|{{Error|Both mappings [[Lipid:{{{1}}}]] and [[Lipid:{{#var:MAPREV}}]] exist.}} | |{{Error|Both mappings [[Lipid:{{{1}}}]] and [[Lipid:{{#var:MAPREV}}]] exist.}} | ||
Line 9: | Line 9: | ||
|{{#ifexist:Lipid:{{#var:MAPREV}} | |{{#ifexist:Lipid:{{#var:MAPREV}} | ||
|{{#def:MAPDIR|false}} | |{{#def:MAPDIR|false}} | ||
− | |{{Error|Neither mapping [[Lipid:{{{1}}}]] | + | |{{Error|Neither mapping [[Lipid:{{{1}}}]] nor [[Lipid:{{#var:MAPREV}}]] exist.}}}} |
}} | }} | ||
<!---Check whether pictures should be shown---> | <!---Check whether pictures should be shown---> | ||
{{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|Lipid|{{#if:{{#var:MAPDIR}}|{{{1}}}|{{#var:MAPREV}}}}|=}} }} | {{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|Lipid|{{#if:{{#var:MAPDIR}}|{{{1}}}|{{#var:MAPREV}}}}|=}} }} |
Revision as of 11:33, 25 January 2009
{{AtomMapping|{{{1}}}|map=