Difference between revisions of "Template:Japanese names/doc"

From Yugipedia
Jump to: navigation, search
(Created page with "{{Documentation subpage}} {{t|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 us...")
 
(examples)
Line 10: Line 10:
 
{{tlx|Japanese names|2=main=''A page name''}}
 
{{tlx|Japanese names|2=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.
 
* ''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 ===
 +
<pre>{{Japanese names|{{Ruby|青眼の白龍|ブルーアイズ・ホワイト・ドラゴン}}|Burūaizu Howaito Doragon}}</pre>
 +
 +
{{Japanese names|{{Ruby|青眼の白龍|ブルーアイズ・ホワイト・ドラゴン}}|Burūaizu Howaito Doragon}}
 +
 +
<pre>{{Japanese names|main=Blue-Eyes White Dragon}}</pre>
 +
 +
{{Japanese names|main=Blue-Eyes White Dragon}}
  
 
<includeonly>
 
<includeonly>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</includeonly>
 
</includeonly>

Revision as of 16:09, 11 October 2013

{{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=Blue-Eyes White Dragon}}
Japanese
青眼の白龍ブルーアイズ・ホワイト・ドラゴン
Base
青眼の白龍
Kana
ブルーアイズ・ホワイト・ドラゴン
Rōmaji
Burūaizu Howaito Doragon
Translated
Blue-Eyes White Dragon