Difference between revisions of "Template:Japanese names"
(Making it possible to overwrite translated names when querying a main card page.) |
(→top: Restoring revision 4830869 by User:Dinoguy1000 on 2021-12-06 07:39:53. standardize property name) (Tag: New user edit) |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ # | + | {{ #if: {{{main|}}} |
− | + | | {{IfSemantics | |
− | + | | {{ #ask: [[{{{main}}}]] | |
− | | {{ #ask: [[{{{main}}}]] | + | |?Japanese name |
− | + | |?Romaji name | |
− | + | |?Translated Japanese name | |
− | + | |?Japanese base name | |
− | + | |?Japanese kana name | |
− | + | |?Base romaji name | |
− | + | |?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 | ||
+ | |link = none | ||
+ | }} | ||
}} | }} | ||
| {{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 Japanese 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 --> |
+ | |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]] }} }} |
}}<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}}