Plantilla:LangInfo

De Terraria Wiki
Ir a la navegación Ir a la búsqueda
Esta plantilla utiliza Lua.
Esta plantilla utiliza Módulo:LangInfo, un script escritos en el lenguaje de programación Lua. Para aprender más sobre Lua, vea Terraria Wiki:Lua (en).
Important.svg
CUIDADO: ¡¡¡El código de la Wiki Terraria es complejo!!!
Si quieres utilizar este código en otra wiki, el staff de wiki.gg no podrá brindarte asistencia.
Por favor considera otra wiki a la cual adaptar su código, ¡o crea tus propias plantillas!
Recuerda que el contenido de una wiki es más importante que el formato elegante.
Template-info.svg Documentación La siguiente documentación es transcluida de Plantilla:LangInfo/doc. (editar | historia)

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:

Stat name Description Example codes
en fr ru hi yue zh
name Common (English) name of the language English French Russian Hindi Cantonese Chinese
fullname Full (English) name of the language English language French language Russian language Hindi Cantonese language Chinese language
lname Endonym (local name of the language) English français русский हिन्दी 廣東話 中文
wplink Link to the language's local Wikipedia article English français Русский язык हिन्दी 廣東話 中文 FAIL! (expected: 汉语)
countrycode ISO 3166-1 code of the country that the language is commonly associated with us fr ru in cn cn

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