Difference between revisions of "Template:Characters"
(Kewl, it works.) |
Dinoguy1000 (talk | contribs) (directly use {{<game> characters}} when it exists instead of relying on {{Characters/<abbr>}} redirects (eventually none of the navboxes will be under {{Characters/<abbr>}} titles anyways, so this will help with migration too)) |
||
Line 1: | Line 1: | ||
{{ #arraydefine: series | {{{1}}} }}<!-- | {{ #arraydefine: series | {{{1}}} }}<!-- | ||
− | -->{{ #arrayprint: series || $series | {{Characters/$series}} }}<noinclude> | + | -->{{ #arrayprint: series || $series | {{ #ifexist: Template:{{vg|$series|full=y|link=y}} characters | {{{{vg|$series|full=y|link=y}} characters}} | {{Characters/$series}} }} }}<noinclude> |
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Revision as of 02:15, 25 June 2015
{{Characters/{{{1}}}}}
{{Characters}}
is used to insert multiple character navboxes.
Usage
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: