Difference between revisions of "Template:Japanese names"
Dinoguy1000 (talk | contribs) (seems the temp parameter is still needed, after all) |
(→top: Restoring revision 4830869 by User:Dinoguy1000 on 2021-12-06 07:39:53. standardize property name) (Tag: New user edit) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
|?Japanese name | |?Japanese name | ||
|?Romaji name | |?Romaji name | ||
− | |?Translated name | + | |?Translated Japanese name |
|?Japanese base name | |?Japanese base name | ||
|?Japanese kana name | |?Japanese kana name | ||
− | |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} {{{3|}}} | + | |?Base romaji name |
− | |format = | + | |?Translated Japanese base name |
+ | |userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} {{ #if: {{{no_properties|}}} | no_properties }} {{{3|}}} | ||
+ | |format = plainlist | ||
|template = Japanese names/core | |template = Japanese names/core | ||
|link = none | |link = none | ||
Line 16: | Line 18: | ||
|2 = {{{1<includeonly>|</includeonly>}}}<!-- Japanese name --> | |2 = {{{1<includeonly>|</includeonly>}}}<!-- Japanese name --> | ||
|3 = {{{2<includeonly>|</includeonly>}}}<!-- Romaji name --> | |3 = {{{2<includeonly>|</includeonly>}}}<!-- Romaji name --> | ||
− | |4 = {{{3<includeonly>|</includeonly>}}}<!-- Translated name --> | + | |4 = {{{3<includeonly>|</includeonly>}}}<!-- Translated Japanese name --> |
|5 = {{Ruby/split|{{{1<includeonly>|</includeonly>}}}}}<!-- Japanese base name --> | |5 = {{Ruby/split|{{{1<includeonly>|</includeonly>}}}}}<!-- Japanese base name --> | ||
|6 = {{Ruby/split|{{{1<includeonly>|</includeonly>}}}|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 }} }} | + | |7 = {{{4<includeonly>|</includeonly>}}}<!-- Base romaji name --> |
+ | |8 = {{{5<includeonly>|</includeonly>}}}<!-- Translated base name --> | ||
+ | |#userparam = {{ #if: {{{kana_only|}}} | kana_only | {{ #if: {{{no_ruby|}}} | no_ruby }} }} {{ #if: {{{no_properties|}}} | no_properties }} | ||
|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]] }} }} | ||
}}<noinclude> | }}<noinclude> | ||
− | |||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 22:46, 17 March 2023
- Japanese
- {{{1}}}
- Base rōmaji
- {{{4}}}
- Base translated
- {{{5}}}
- Furigana rōmaji
- {{{2}}}
- Furigana 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}}