Template:Enzyme/ListMapping

From Metabolomics.JP
< Template:Enzyme(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{{#if:{{{1}}}|{{AtomMapping|{{{1}}}
+
{{#def:MAPLHS|{{#car:{{{1}}}|$}}}}
|map={{#cdr:{{#SearchLine:map=|Lipid|{{{1}}}}}|=}}
+
{{#def:MAPRHS|{{#cadr:{{{1}}}|$}}}}
|dir={{#ifexist:Lipid:{{{1}}}|true|false}} }}}}
+
{{#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=

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox