Difference between revisions of "Template:Linked name list"
Jump to navigation
Jump to search
Rocketsoup (talk | contribs) |
Rocketsoup (talk | contribs) |
||
Line 5: | Line 5: | ||
|Names=First Last; First Last; First Last}} | |Names=First Last; First Last; First Last}} | ||
</pre> | </pre> | ||
− | </noinclude> | + | </noinclude><includeonly>{{#vardefine:names|{{{Names|}}}}}{{#vardefine:i|0}}{{#while: |
− | <includeonly> | ||
− | {{#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/> {{#ifexpr:{{#var:i}} > 0|<br/>}}[[{{#var:name}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} }} | + | | <nowiki/> |
− | </includeonly> | + | {{#ifexpr:{{#var:i}} > 0|<br/>}}[[{{#var:name}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} }}</includeonly> |
Revision as of 17:03, 14 January 2020
Usage example:
{{Linked name list |Names=First Last; First Last; First Last}}