Difference between revisions of "Template:Concept/render relation as list item"
From TDWG Terms Wiki
m (using #ask back again) |
m (fix ask) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#vardefine: relationProperty|{{#sub: {{{1}}}|{{#expr: {{#pos:{{{1}}}|:}} + 1 }} }} }}<!-- | -->{{#vardefine: relationProperty|{{#sub: {{{1}}}|{{#expr: {{#pos:{{{1}}}|:}} + 1 }} }} }}<!-- | ||
− | -->{{#vardefine: foundResultList|{{#ask: [[{{{userparam|{{PAGENAME}} }}}]]|?{{#var: relationProperty}}#= | format=list | limit=50 }} }}<!-- | + | -->{{#vardefine: foundResultList|{{#ask: [[{{{userparam|{{PAGENAME}} }}}]]|?{{#var: relationProperty}}#= | mainlabel=- | link=none | format=list | default= | limit=50 }} }}<!-- |
-->{{#if: {{#var: foundResultList}}<!-- | -->{{#if: {{#var: foundResultList}}<!-- | ||
then-->| | then-->| |
Revision as of 12:39, 18 October 2012
Sub page of Template:Concept, it renders a relation as a list item. Data input is from an #ask query iterating through all applicable properties.
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