Template:Enzyme/ListMapping

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

Latest revision as of 16:29, 16 June 2009

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox