Template:LangInfo/doc

From ARK Wiki
Jump to navigation Jump to search
Template-info.png Documentation

Provides certain information about a language based on its ISO 639-1 (or ISO 639-3, where necessary) code.

Usage

{{ langInfo | <language code> | <stat> }}

First unnamed parameter

Official ISO 639-1/639-3 code of the language. For a list of codes, see the List of ISO 639-1 codes or the List of ISO 639-3 codes.

Second unnamed parameter

Information to query. Can be one of the following:

  • name: Common (English) name of the language
  • fullname: Full (English) name of the language
  • lname: Endonym (local name of the language)
  • wplink: Link to the language's local Wikipedia article
  • countrycode: ISO 639-1 code of the country that the language is commonly associated with
Parameter Result
{{langInfo|fr|name}} French
{{langInfo|fr|fullname}} French language
{{langInfo|fr|lname}} français
{{langInfo|fr|wplink}} français
{{langInfo|fr|countrycode}} fr

The fullname stat is also equal to the title of the English Wikipedia article about the language.