Difference between revisions of "Template:Japanese names"
(Reverted back to relying on "no_ruby". Added separate "kana_only" property.) |
Dinoguy1000 (talk | contribs) (always pass in base and kana name to /core and instead pass in the kana_only and no_ruby flags as values of the userparam parameter) |
||
Line 4: | Line 4: | ||
| {{IfSemantics | | {{IfSemantics | ||
| {{ #ask: [[{{{main}}}]] | | {{ #ask: [[{{{main}}}]] | ||
− | |? | + | |?Japanese name |
|?Romaji name | |?Romaji name | ||
|?Translated name | |?Translated name | ||
− | |?Japanese | + | |?Japanese base name |
|?Japanese kana name | |?Japanese kana name | ||
+ | |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} | ||
|format = template | |format = template | ||
|template = Japanese names/core | |template = Japanese names/core | ||
Line 15: | Line 16: | ||
}} | }} | ||
| {{Japanese names/core | | {{Japanese names/core | ||
− | |2 = {{{1|}}}<!-- Japanese name --> | + | |2 = {{{1<includeonly>|</includeonly>}}}<!-- Japanese name --> |
− | |3 = {{{2|}}}<!-- Romaji name --> | + | |3 = {{{2<includeonly>|</includeonly>}}}<!-- Romaji name --> |
− | |4 = {{{3|}}}<!-- Translated name --> | + | |4 = {{{3<includeonly>|</includeonly>}}}<!-- Translated name --> |
− | |5 = {{Ruby/split|{{{1|}}}}}<!-- Japanese base name --> | + | |5 = {{Ruby/split|{{{1<includeonly>|</includeonly>}}}}}<!-- Japanese base name --> |
− | |6 = {{Ruby/split|{{{1|}}}|top}}<!-- Japanese kana name --> | + | |6 = {{Ruby/split|{{{1<includeonly>|</includeonly>}}}|top}}<!-- Japanese kana name --> |
+ | |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} | ||
|temp = | |temp = | ||
}}{{ #if: {{NAMESPACE}} || {{ #if: {{ #var: $main }} | [[Category:Cards with a different Japanese name from their main counterpart]] }} }} | }}{{ #if: {{NAMESPACE}} || {{ #if: {{ #var: $main }} | [[Category:Cards with a different Japanese name from their main counterpart]] }} }} |
Revision as of 15:43, 18 August 2018
- 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}}