Template:Zh
This is the default Zh template for rendering Chinese characters. By default, English is first, then Chinese, then Pinyin, followed by extra fields. The first field type can be changed via setting type1 to C, in case Chinese needs to be displayed first. This would set the second field type to Pinyin automatically, if Pinyin is included. The parenthesis can be removed by setting noParenthesis. Functionality to display the third field in a standalone box while hovering over the second field can be enabled by setting hover. A line break after the first parameter can be added by setting lineBreak.
Usage
{{nihongo|English|Hanzi|Pinyin|extra|extra2|type1=|lineBreak=|noParenthesis=|hover=}}
Default:
English (Hanzi, , extra) extra2
With type1=C:
Hanzi ( , ) extra2
With type1=C and blank Pinyin:
Hanzi
With type1=P:
(Hanzi, ) extra2
With type1=P and blank Hanzi:
Examples
{{Zh|'''Jotaro Kujo'''|空条 承太郎|Kūjō Jōtarō}}
Pinyin appears on hover
{{Zh|'''Jotaro Kujo'''|空条 承太郎|Kūjō Jōtarō|hover=true}}
{{Zh|空条 承太郎|type1=C}}
{{Zh|空条 承太郎|Kūjō Jōtarō|type1=C}}
{{Zh|Kūjō Jōtarō|type1=P}}
{{Zh|Kūjō Jōtarō|空条 承太郎|type1=P}}
Pinyin appears on Hover
{{Zh|空条 承太郎|Kūjō Jōtarō|type1=C|hover=true}}
(Chinese, Pinyin)
{{Zh|'''Jotaro Kujo'''|空条 承太郎|Kūjō Jōtarō|lineBreak=true}}
(空条 承太郎, )
{{Zh|'''Jotaro Kujo'''|空条 承太郎|Kūjō Jōtarō|noParenthesis=true}}
{{Zh|'''Jotaro Kujo'''|空条 承太郎|noParenthesis=true}}
Chinese, Pinyin
(Pinyin appears on Hover)
{{Zh|'''Jotaro Kujo'''|空条 承太郎|Kūjō Jōtarō|lineBreak=true|hover=true|noParenthesis=true}}
空条 承太郎
{{Zh|'''{{W|Shueisha}} Inc.'''|集英社|Shūeisha|日语:株式会社集英社}}