Difference between revisions of "Template:Characters"
Dinoguy1000 (talk | contribs) (fix #ifexist check and hide template contents here to avoid template loop) |
Dinoguy1000 (talk | contribs) (fix for non-vg navboxes) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #arraydefine: series | {{{1}}} }}<!-- | <includeonly>{{ #arraydefine: series | {{{1}}} }}<!-- | ||
− | -->{{ #arrayprint: series || $series | {{ # | + | -->{{ #arrayprint: series || $series | {{ #if: {{ #vardefineecho: $cvg | {{vg|$series|full=y|link=y}} }} | {{ #ifexist: Template:{{ #var: $cvg }} characters | {{{{ #var: $cvg }} characters}} | {{Characters/$series}} }} | {{Characters/$series}} }} }}</includeonly><noinclude> |
− | + | {{Documentation}}</noinclude> | |
− | {{ |
Latest revision as of 14:34, 12 May 2019
{{Characters}}
is used to insert multiple character navboxes.
Usage[edit]
The first unnamed parameter accepts a comma separated list of abbreviations. The template then outputs all navboxes, whose name begins with "Template:Characters/" and ends with the abbreviation.
For example {{Characters|TF04, TF05, TF06}}
will cause all three navboxes, {{Characters/TF04}}, {{Characters/TF05}} and {{Characters/TF06}}, to display: