Template:Enzyme/ListMapping
From Metabolomics.JP
< Template:Enzyme(Difference between revisions)
Line 2: | Line 2: | ||
{{#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:{{#var:MAPREV}}|{{Error|Both mappings [[Lipid:{{{1}}}]] and [[Lipid:{{#var:MAPREV}}]] exist.}}|{{#def:MAPDIR|true}}}} | + | {{#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}}}]] nor [[Lipid:{{#var:MAPREV}}]] exist.}}}} | |{{#ifexist:Lipid:{{#var:MAPREV}}|{{#def:MAPDIR|false}}|{{Error|Neither mapping [[Lipid:{{{1}}}]] nor [[Lipid:{{#var:MAPREV}}]] exist.}}}} | ||
}} | }} | ||
---- | ---- | ||
− | LABEL IS "{{{1}}}" | + | LABEL IS "{{{1}}}" {{#ifexist:Lipid:{{{1}}}|yes|no}} |
{{#var:MAPDIR}} | {{#var:MAPDIR}} | ||
---- | ---- | ||
{{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|Lipid|{{#ifeq:{{#var:MAPDIR}}|true|{{{1}}}|{{#var:MAPREV}}}}}}|=}} }} | {{AtomMapping|{{{1}}}|map={{#cdr:{{#SearchLine:map=|Lipid|{{#ifeq:{{#var:MAPDIR}}|true|{{{1}}}|{{#var:MAPREV}}}}}}|=}} }} |
Revision as of 14:46, 25 January 2009
ERROR: Neither mapping [[Lipid:{{{1}}}]] nor Lipid:$$ exist.
LABEL IS "{{{1}}}" no
[[{{{1}}}|]] | <Mapping> [[AtomMap:${{{1}}}$]] |
#ifeq: |
---|---|---|
[[Image:{{{1}}}.png|thumb|300px]] | File:.png 300px |
- Related Mappings, Enzymes, and Pathways