Difference between revisions of "Template:Japanese names"
(More general "name_property" parameter to replace "no_ruby" and give more flexibility. This way we can also get the kana-only name as the main name.) |
(Reverted back to relying on "no_ruby". Added separate "kana_only" property.) |
||
Line 4: | Line 4: | ||
| {{IfSemantics | | {{IfSemantics | ||
| {{ #ask: [[{{{main}}}]] | | {{ #ask: [[{{{main}}}]] | ||
− | |?{{ #if: {{{ | + | |?{{ #if: {{{kana_only|}}} | Japanese kana | {{ #if: {{{no_ruby|}}} | Ruby Japanese | Japanese }} }} name |
|?Romaji name | |?Romaji name | ||
|?Translated name | |?Translated name | ||
− | |?Japanese | + | |?Japanese {{ #if: {{{kana_only|}}} | kana n | n }}ame |
|?Japanese kana name | |?Japanese kana name | ||
|format = template | |format = template |
Revision as of 21:29, 6 July 2017
- Japanese
{{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}}