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

Template:Wikipedia languages/core

  • Template
  • Talk
  • Language
  • Watch
  • View source
< Template:Wikipedia languages
Template documentation[view] [edit] [history] [purge]
WarningThis template is used in MediaWiki:Statistics-footer.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.
This template can only be edited by administrators because it is transcluded onto one or more cascade-protected pages.

This is the /core template for {{Wikipedia languages}}, which is the template for the "Wikipedia languages" section on the Main Page.

The template is used to ensure a consistent formatting of the links, which hasn't always been the case (for some time, the Japanese and Chinese links were within {{Lang}}, which categorized the main page within Category:Articles containing Japanese-language text and Category:Articles containing Chinese-language text.

Technical part

The links of this template show a mouseover, which is the English language name of the language and its IS0 639 code within brackets. To determine the English name, it calls #language parser function. Furthermore, there is a "lang" attribute so that browsers recognize it's a non-English text and treat it properly. The text of the link then uses the parser function {{#language:}}, which displays the language's native name as it's used by MediaWiki, e.g. within the interwiki links. This is done to ensure consistency with the interwiki links in the sidebar.

The above documentation is transcluded from Template:Wikipedia languages/core/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wikipedia_languages/core&oldid=1277959887"
Last edited on 27 February 2025, at 18:29

Languages

    • ak:Nhwɛsode:Wikipedia languages/core
    • العربية
    • অসমীয়া
    • تۆرکجه
    • 閩南語 / Bân-lâm-gí
    • भोजपुरी
    • Gaeilge
    • Gaelg
    • 한국어
    • Ilokano
    • کٲشُر
    • मैथिली
    • മലയാളം
    • မြန်မာဘာသာ
    • नेपाली
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Pangasinan
    • ပအိုဝ်ႏဘာႏသာႏ
    • Qaraqalpaqsha
    • Русиньскый
    • संस्कृतम्
    • Scots
    • தமிழ்
    • တႆး
    • اردو
    • Zazaki
    • 中文
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 27 February 2025, at 18:29 (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