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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
 
{{#switch:{{{name|}}}
 
{{#switch:{{{name|}}}
|Other|other|=
+
|Other|other|={{{name|}}}
 
|#default=
 
|#default=
 
   {{#ifeq:{{{link}}}|no
 
   {{#ifeq:{{{link}}}|no

Revision as of 14:05, 1 October 2017

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.