Template:Zh

From Honkai: Nexus Anima Wiki
Revision as of 16:43, 29 August 2025 by ReinDevildom (talk | contribs) (Created page with "<includeonly><!-- -->{{#if:{{{t|}}}<!-- -->|{{#if:{{{s|}}}<!-- -->|<!-- -->{{#invoke:Lang|main|selective=1|mini=1|vertical={{{vertical|}}}|zh-Hans={{{s|}}}|zh-Hans_rm={{{s_rm|}}}|zh-Hans_tl={{{s_tl|}}}|zh-Hans_lit={{{s_lit|}}}}}<!-- -->/<!-- -->{{#invoke:Lang|main|selective=1|mini=1|vertical={{{vertical|}}}|zh-Hant={{{t|}}}|zh-Hant_rm={{{t_rm|}}}|zh-Hant_tl={{{t_tl|}}}|zh-Hant_lit={{{t_lit|}}}}}<!-- -->{{#if:{{{rm|}}}{{{tl|}}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Lang, a script written in Lua.

This template is a shorthand for formatting Chinese text by using {{Lang|selective = 1|mini = 1}} as a base.

Syntax

All fields are optional except the Chinese text.
{{Zh|Chinese text|rm = Romanisation of the Chinese text|tl = Translation of the Chinese text|lit = Literal Translation of the Chinese Text}}

Simplified and Traditional

{{Zh|s = Simplified Chinese text|t = Traditonal Chinese text}}

  • rm, tl and lit are still usable while also having extra parameters in the fashion of s_rm and t_tl.

Examples

{{Zh|你好呀,旅行者|rm = Nǐhǎo ya, Lǚxíngzhe|tl = Hello, Traveler|lit = Good Day, Traveler}} yields:
你好呀,旅行者 Nǐhǎo ya, Lǚxíngzhe, "Hello, Traveler," lit. "Good Day, Traveler"

Simplified and Traditional

{{Zh|s = 与|t = 與|rm = yǔ}} yields:
/

Template Data

Template for formatting chinese

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Chinese texttx 1

Chinese text to be formatted

Stringrequired
Romanizationrm 2

Romanization of the chinese text

Stringoptional
Translationtl 3

Translation of the chinese text

Stringoptional
Literal Translationlit 4

Literal translation of the Chinese text

Stringoptional