Template:Infobox election/shortname: Difference between revisions
Content deleted Content added
do nothing if name is blank |
Vivaporius (talk | contribs) m 1 revision imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{# |
{{#switch:{{{name|}}} |
||
|Other|other|={{{name|}}} |
|||
⚫ | |||
|#default= |
|||
⚫ | |||
|{{{name}}} |
|{{{name}}} |
||
|{{#ifexist:Template:{{{name}}}/meta/shortname |
|{{#ifexist:Template:{{{name}}}/meta/shortname |
Latest revision as of 07:37, 14 May 2022
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.