Difference between revisions of "Template:Infobox election/shortname"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(simplify parent template with a subtemplate)
 
imported>Frietjes
(No difference)

Revision as of 00:15, 18 October 2014

{{{party}}}

Template documentation

This is a subtemplate of {{Infobox election}}, it should not be used directly.

Purpose

This subtemplate takes two inputs, party and link. If link is set to no, then it returns the value of party verbatim. Otherwise, if the corresponding {{{{{party}}}/meta/shortname}} template exists, it returns [[{{{party}}}|shortname]] where shortname is the output of the {{{{{party}}}/meta/shortname}} template. If this template does not exist, it returns the value of party verbatim.