From Moegirlpedia
< Template:Lang
Revision as of 01:45, 3 February 2021 by GuoPC (talk | contribs) (New template document)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The purpose of this template is to indicate that a span of text belongs to a particular language.


{{lang|language tag|text}}

The language tag should consist of an ISO 639 language code.

The ISO 639 language code is a two- or three-letter abbreviation, in lowercase, of the language's name. Japanese, for example, has the code ja:

  • {{lang|ja|蓬莱山輝夜}}蓬莱山輝夜

Template data

<templatedata> { "params": { "1": { "label": "Language tag", "description": "A language tag, or an ISO 639 language code.", "example": "ja", "type": "string", "required": true }, "2": { "label": "Text", "description": "The text belonging to the language specified.", "type": "string", "required": true, "example": "蓬莱山輝夜" } }, "description": "Indicate that a given span of text belongs to a particular language. Allows browsers to correctly present and pronounce foreign languages." } </templatedata>