Template:Infobox election/shortname

From MicrasWiki
< Template:Infobox election
Revision as of 17:36, 3 November 2017 by Sick39ed (talk | contribs) (Created page with "{{#switch:{{{name|}}} |Other|other|={{{name|}}} |#default= {{#ifeq:{{{link}}}|no |{{{name}}} |{{#ifexist:Template:{{{name}}}/meta/shortname |{{{name}}}|{{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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 Template:Tld template exists, it returns [[{{{name}}}|shortname]] where shortname is the output of the Template:Tld template. If this template does not exist, it returns the value of name verbatim.