Template:Infobox election/shortname
Appearance
![]() | This template is used on approximately 2,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua: |
Template:Infobox election/shortname 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, it returns [[{{{name}}}|shortname]]
where shortname
is the output of the political party module. If the shortname does not exist in the module, it returns the value of name
verbatim.
Examples
{{Infobox election/shortname|name=Independent}} |
Independent |
{{Infobox election/shortname|name=Independent|link=no}} |
Independent |
{{Infobox election/shortname|name=Labour and Co-operative Party}} |
Labour Co-op |
{{Infobox election/shortname|name=Foo}} |
Foo |