Difference between revisions of "Template:Japanese names"
Dinoguy1000 (talk | contribs) (fix kana_only and no_ruby for main pages) |
Dinoguy1000 (talk | contribs) (if a manual translated name is given, pass it through the query via #userparam instead of abusing variables to pass state between templates (no needed for the non-query branch since that passes in the translated name directly already)) |
||
Line 1: | Line 1: | ||
− | + | {{ #if: {{{main|}}} | |
− | |||
− | |||
| {{IfSemantics | | {{IfSemantics | ||
| {{ #ask: [[{{{main}}}]] | | {{ #ask: [[{{{main}}}]] | ||
Line 9: | Line 7: | ||
|?Japanese base name | |?Japanese base name | ||
|?Japanese kana name | |?Japanese kana name | ||
− | |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} | + | |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} {{{3|}}} |
|format = template | |format = template | ||
|template = Japanese names/core | |template = Japanese names/core |
Revision as of 14:37, 16 June 2019
- Japanese
- {{{1}}}
- Rōmaji
- {{{2}}}
- Translated
- {{{3}}}
{{Japanese names}} is used to output different ways of writing the Japanese name of a card and store their values in properties. It is typically used in the above
section on card tables.
Usage
{{Japanese names|Japanese name|Rōmaji name|Translated name}}
- Japanese name is to be replaced with the Japanese name, including ruby markup, if any.
- Rōmaji name is to be replaced with the Japanese name, written in rōmaji.
- Translated name is to be replaced with the Japanese name, translated into English.
{{Japanese names|main=A page name}}
- A page name is to be replaced with the name of a page, from which to extract Japanese names from. The target page needs to use the relevant Semantic MediaWiki properties, for this to work.
Examples
{{Japanese names|{{Ruby|青眼の白龍|ブルーアイズ・ホワイト・ドラゴン}}|Burūaizu Howaito Doragon}}
- Japanese
青眼の白龍 - Base
- 青眼の白龍
- Kana
- ブルーアイズ・ホワイト・ドラゴン
- Rōmaji
- Burūaizu Howaito Doragon
{{Japanese names|main=Dark Magician}}
- Japanese
- ブラック・マジシャン
- Rōmaji
- Burakku Majishan
- Translated
- Black Magician
See also
- {{Korean names}}