Template:Enzyme/ListMapping

From Metabolomics.JP
< Template:Enzyme(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
{{#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:AtomMap:{{{1}}}
|{{#ifexist:Lipid:{{#var:MAPREV}}
+
|{{#ifexist:AtomMap:{{#var:MAPREV}}
   |{{Error|Both mappings [[Lipid:{{{1}}}]] and [[Lipid:{{#var:MAPREV}}]] exist.}}
+
   |{{Error|Both mappings [[AtomMap:{{{1}}}]] and [[AtomMap:{{#var:MAPREV}}]] exist.}}
 
   |{{#def:MAPDIR|true}}
 
   |{{#def:MAPDIR|true}}
   {{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|Lipid|{{{1}}}}}|=}} }}
+
   {{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|AtomMap|{{{1}}}}}|=}} }}
 
}}
 
}}
|{{#ifexist:Lipid:{{#var:MAPREV}}
+
|{{#ifexist:AtomMap:{{#var:MAPREV}}
 
   |{{#def:MAPDIR|false}}
 
   |{{#def:MAPDIR|false}}
   {{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|Lipid|{{#var:MAPREV}}}}|=}} }}
+
   {{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|AtomMap|{{#var:MAPREV}}}}|=}} }}
   |{{Error|Neither mapping [[Lipid:{{{1}}}]] nor [[Lipid:{{#var:MAPREV}}]] exist.}}}}
+
   |{{Error|Neither mapping [[AtomMap:{{{1}}}]] nor [[AtomMap:{{#var:MAPREV}}]] exist.}}}}
 
}}
 
}}
 
}}
 
}}

Revision as of 13:20, 26 January 2009

ERROR: Neither mapping [[AtomMap:{{{1}}}]] nor AtomMap:$$ exist.

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox