Template:Enzyme/ListMapping
From Metabolomics.JP
< Template:Enzyme(Difference between revisions)
| Line 1: | Line 1: | ||
| − | {{# | + | {{#def:MAPLHS|{{#car:{{{1}}}|$}}}} |
| − | | | + | {{#def:MAPRHS|{{#cadr:{{{1}}}|$}}}} |
| − | | | + | {{#def:MAPNUM|{{#cddr:{{{1}}}|$}}}} |
| + | {{#def:MAPREV|{{#var:MAPRHS}}${{#var:MAPLHS}}${{#var:MAPNUM}}}} | ||
| + | <!---Check whether the mapping label exists ---> | ||
| + | {{#ifexist:Lipid:{{{1}}} | ||
| + | |{{#ifexist:Lipid:{{#var:MAPREV}} | ||
| + | |{{Error|Both mappings [[Lipid:{{{1}}}]] and [[Lipid:{{#var:MAPREV}}]] exist.}} | ||
| + | |{{#def:MAPDIR|true}} | ||
| + | }} | ||
| + | |{{#ifexist:Lipid:{{#var:MAPREV}} | ||
| + | |{{#def:MAPDIR|false}} | ||
| + | |{{Error|Neither mapping [[Lipid:{{{1}}}]] and [[Lipid:{{#var:MAPREV}}]] exist.}}}} | ||
| + | }} | ||
| + | <!---Check whether pictures should be shown---> | ||
| + | {{AtomMapping|{{{1}}} | ||
| + | |map={{#cdr:{{#SearchLine:map=|Lipid|{{#if:{{#var:MAPDIR}}|{{{1}}}|{{#var:MAPREV}}}}|=}} }} | ||
Revision as of 10:12, 25 January 2009
ERROR: Neither mapping [[Lipid:{{{1}}}]] and [[Lipid:${{{1}}}$]] exist.
{{AtomMapping|{{{1}}}
|map=