Difference between revisions of "Template:Linked name list"

From Co-Optitude Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> Usage example: <pre> {{Linked name list |Names=First Last; First Last; First Last}} </pre> </noinclude> <includeonly> {{#vardefine:names|{{{Names|}}}}}{{#vardefi...")
 
Line 9: Line 9:
 
{{#vardefine:names|{{{Names|}}}}}{{#vardefine:i|0}}{{#while:
 
{{#vardefine:names|{{{Names|}}}}}{{#vardefine:i|0}}{{#while:
 
   | {{#vardefine:name|{{#explode:{{#var:names}}|;|{{#var:i}} }}}}{{#var:name}}
 
   | {{#vardefine:name|{{#explode:{{#var:names}}|;|{{#var:i}} }}}}{{#var:name}}
   | <nowiki/>
+
   | <nowiki/> {{#ifexpr:{{#var:i}} > 0|<br/>}}[[{{#var:name}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} }}
{{#ifexpr:{{#var:i}} > 0|<br/>}}[[{{#var:name}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}} }}
 
}}
 
 
</includeonly>
 
</includeonly>

Revision as of 17:01, 14 January 2020

Usage example:

{{Linked name list
  |Names=First Last; First Last; First Last}}