Template:BCP47/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} ==Usage== This template fixes the current violations of the BCP47 standard (for inclusion in the lang HTML attribute) by Wikimedia sites for their la..." |
|||
| Line 8: | Line 8: | ||
== Examples == | == Examples == | ||
* <code><nowiki>{{BCP47|en}}</nowiki></code> returns: {{BCP47|en}} | |||
* <code><nowiki>{{BCP47|simple}}</nowiki></code> returns: {{BCP47|simple}} | |||
* <code><nowiki>{{BCP47|als}}</nowiki></code> returns: {{BCP47|als}} | |||
<includeonly> | <includeonly> | ||
Revision as of 20:31, 8 November 2013
Usage
This template fixes the current violations of the BCP47 standard (for inclusion in the lang HTML attribute) by Wikimedia sites for their language codes.
It also normalizes these codes to lowercase only (though it is not mandatory).
Use this template only in the HTML lang="" attribute.
Examples
{{BCP47|en}}returns: en{{BCP47|simple}}returns: en{{BCP47|als}}returns: gsw