Template:BCP47

From Bonkipedia
Revision as of 17:54, 12 November 2022 by ManfredoDo (talk | contribs) (1 revision imported: Infobox templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
warning Warning:Do not edit. This page is maintained by an automated tool. All edits should be done at mediawiki.org. (translate this warning)
Please help translate this page.
Template documentation

This template translates a MediaWiki language code into a BCP47-compliant one to be used in HTML lang attributes. The two are mostly the same (for example, English’s code is “en” in both systems), but sometimes they are different (for example, Serbian using Latin script is “sr-el” in MediaWiki but “sr-latn” in BCP47). More extensive documentation at https://meta.wikimedia.org/wiki/Template:BCP47

Template parameters

ParameterDescriptionTypeStatus
MediaWiki code1

The MediaWiki language code

Example
sr-el
Linerequired
Edit parameter translations