Difference between revisions of "Template:Concept/render relation as list item"
From TDWG Terms Wiki
m (+link to property page) |
m (output if/else local links vs external URIs) |
||
Line 4: | Line 4: | ||
-->{{#if: {{#var: foundResultList}}<!-- | -->{{#if: {{#var: foundResultList}}<!-- | ||
then-->| | then-->| | ||
− | * [[{{{1}}}|{{{2}}}]] = {{#var: foundResultList}}<!-- | + | * [[{{{1}}}|{{{2}}}]] = {{#arraymap: {{#var: foundResultList}}<!-- |
− | -->}}<!-- end if | + | -->|,<!-- sep |
+ | -->|§<!-- temporary var | ||
+ | -->|<!-- output | ||
+ | -->{{#if: {{#pos: §|{{SERVER}} }}<!-- pos: 0 is true, '' (empty) is false | ||
+ | then | ||
+ | explode 12 3↓ 4↓ → make local link | ||
+ | http://terms.gbif.org/wiki/dcterms:rights | ||
+ | -->|[[{{#explode: §|/|4}}]]<!-- | ||
+ | else | ||
+ | http | ||
+ | -->|§<!-- | ||
+ | -->}}<!-- end if | ||
+ | -->|, <!--output sep | ||
+ | -->}}<!-- end arraymap | ||
+ | -->}}<!-- end if foundResultList | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
Parameters | Parameters |
Revision as of 10:21, 18 October 2012
Parameters
- {{{1}}}: a property page name (the #sub/#pos removes "Property:", e.g. "Property:biorel:derives_from" → "biorel:derives_from")
- {{{2}}}: property: terms-internal:conceptRelationDisplayText
- {{{userparam}}}: passed by the calling ask query