Template:BCP47/doc: Difference between revisions
Template page
More actions
mendgelola data saya untuk non publik |
+pt-br |
||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "This template fixes the current violations of the | "description": { | ||
"en": "This template fixes the current violations of the BCP 47 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).", | |||
"pt-br": "Esta predefinição corrige as violações atuais do padrão BCP 47 (para inclusão no atributo HTML “lang”) pelos websites da Wikimedia em seus códigos de idioma. Ela também normaliza esses códigos para apenas letras minúsculas (embora isso não seja obrigatório)." | |||
}, | |||
"format": "inline", | "format": "inline", | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "MediaWiki language code", | "label": { | ||
"description": "The MediaWiki language code that should be translated to BCP 47.", | "en": "MediaWiki language code", | ||
"pt-br": "Código de idioma do MediaWiki" | |||
}, | |||
"description": { | |||
"en": "The MediaWiki language code that should be translated to BCP 47.", | |||
"pt-br": "O código de idioma do MediaWiki que deve ser traduzido para o BCP 47." | |||
}, | |||
"type": "line", | "type": "line", | ||
"required": true | "required": true | ||
| Line 15: | Line 24: | ||
</templatedata> | </templatedata> | ||
Use this template only in HTML <code>lang=""</ | Use this template only in HTML <code>lang=""</code> attributes or in CSS <code>lang()</code> selectors, for tagging the linguistic contents or for creating localisations. | ||
== Notes == | == Notes == | ||