注意:1.4.5 的更新内容量较大,页面上很可能仍有内容尚未更新。
如中文 wiki 信息过时,可以参考英文 wiki 对应页面。
Terraria Wiki:项目/1.4.5 获取 wiki 状态与更新指南

Template:LangInfo

来自Terraria Wiki
跳转到导航 跳转到搜索
此模板使用了 Lua。
此模板使用了用 Lua 编程语言编写的 模块:LangInfo。要了解 Lua 的更多信息,参见 en:Terraria Wiki:Lua
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg 文档 以下文档来自Template:LangInfo/doc。(编辑 | 历史
不要与Template:Language info相混淆。

This template provides certain information about a language based on its ISO 639-1 code. Languages without an ISO 639-1 code (such as Cantonese) use their ISO 639-3 code instead.

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 any of the following:

Stat Description
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 3166-1 code of the country that the language is commonly associated with
languagecode Precise code of the language

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

Examples

Code Result
en fr ru hi yue zh
{{langInfo|<language code>|name}} English French Russian Hindi Cantonese Chinese
{{langInfo|<language code>|fullname}} English language French language Russian language Hindi Cantonese language Chinese language
{{langInfo|<language code>|lname}} English français русский हिन्दी 廣東話 中文
{{langInfo|<language code>|wplink}} English français Русский язык हिन्दी 廣東話 中文
{{langInfo|<language code>|countrycode}} us fr ru in cn cn
{{langInfo|<language code>|languagecode}} en fr ru hi yue zh-hans