Difference between revisions of "Template:Concept/render relation as list item"
From TDWG Terms Wiki
m (debug substring → wrong cut position, added +1) |
m (using #var, #if #var) |
||
Line 1: | Line 1: | ||
− | <includeonly>< | + | <includeonly><!-- |
+ | -->{{#vardefine: relationProperty|{{#sub: {{{1}}}|{{#expr: {{#pos:{{{1}}}|:}} + 1 }}}}}}<!-- | ||
+ | -->{{#vardefine: foundResultList|{{#show: {{{userparam|{{PAGENAME}} }}}|?{{#var:relationProperty}}}}<!-- | ||
+ | -->{{#if: {{#var: foundResultList}}<!-- | ||
+ | then-->|<br/>'''{{{1}}} =''' {{#var: foundResultList}}<!-- | ||
+ | -->}}<!-- end if | ||
+ | --></includeonly><noinclude> | ||
Parameters | Parameters | ||
* <nowiki>{{{1}}}</nowiki>: a property page name (the #sub/#pos removes "Property:", e.g. "Property:biorel:derives_from" → "biorel:derives_from") | * <nowiki>{{{1}}}</nowiki>: a property page name (the #sub/#pos removes "Property:", e.g. "Property:biorel:derives_from" → "biorel:derives_from") |
Revision as of 09:30, 18 October 2012
Parameters
- {{{1}}}: a property page name (the #sub/#pos removes "Property:", e.g. "Property:biorel:derives_from" → "biorel:derives_from")
- {{{userparam}}}: passed by the calling ask query