• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Infobox election/shortname

  • Template
  • Talk
  • Language
  • Watch
  • View source
< Template:Infobox election
Template documentation[view] [edit] [history] [purge]
WarningThis 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:
  • Module:Infobox election (sandbox)
  • Module:Political party (sandbox)

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
The above documentation is transcluded from Template:Infobox election/shortname/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Infobox_election/shortname&oldid=1298285172"
Last edited on 1 July 2025, at 15:14

Languages

    • العربية
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Буряад
    • Cymraeg
    • فارسی
    • ગુજરાતી
    • 客家語 / Hak-kâ-ngî
    • Հայերեն
    • हिन्दी
    • Bahasa Indonesia
    • Íslenska
    • Kurdî
    • Latviešu
    • मैथिली
    • Македонски
    • മലയാളം
    • मराठी
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Монгол
    • မြန်မာဘာသာ
    • नेपाली
    • 日本語
    • ਪੰਜਾਬੀ
    • Português
    • Scots
    • Shqip
    • Simple English
    • سنڌي
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Suomi
    • Svenska
    • Tagalog
    • தமிழ்
    • တႆး
    • ไทย
    • Türkçe
    • Українська
    • اردو
    • Tiếng Việt
    • 吴语
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 1 July 2025, at 15:14 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop