Template:Infobox election/shortname

From Chalo Chatu, Zambia online encyclopedia
< Template:Infobox election
Revision as of 15:38, 23 June 2016 by Icem4k (talk | contribs) (Created page with "{{#if:{{{name|}}} |{{#ifeq:{{{link}}}|no |{{{name}}} |{{#ifexist:Template:{{{name}}}/meta/shortname |[[{{{name}}}|{{Template: {{{name}}}/meta/shortname}}]]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<templatestyles src="Module:Documentation/styles.css"></templatestyles>

Template documentation

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

Purpose

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