模板:Localization/register

出自Terraria Wiki
跳至導覽 跳至搜尋
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:Localization/register/doc。(編輯 | 歷史

This template is used to define the dynamically displayed text used by {{l10n}}. See that template's documentation and Help:I18n & l10n for Templates for more information.

Use {{l10n/register}} as a shortcut.

Usage

{{l10n/register|<namespace>|<lang>
	| <key> = <value>
	| <key> = <value>
	...
}}
Parameter 1

Namespace. Part of the unique identifier that consists of a namespace–key combination and is used to retrieve the string later on. To avoid conflicts across templates, this should usually be the template's name (since that is guaranteed to be unique in the wiki).

Parameter 2

Language code. This is the anchor for {{lang}} (or, very rarely, the lang parameter of {{l10n}}) so that {{l10n}} knows which database (among the translations) to use.

Named parameters

All string definitions. <key> is the other part of the identifier and <value> is the string.