Difference between revisions of "Template:Ruby"

From Yugipedia
Jump to: navigation, search
(add tracking category for transclusions with too many parameters)
(SMW factbox is no longer displayed on articles, so {{Hide Factbox}} is no longer needed; tracking category for {{Ruby}} transclusions without a second parameter)
Line 2: Line 2:
 
   #if: {{{2<includeonly>|</includeonly>}}}
 
   #if: {{{2<includeonly>|</includeonly>}}}
 
   | <ruby class="rubytext ruby-{{{lang|ja}}}" lang="{{{lang|ja}}}" xml:lang="{{{lang|ja}}}"><rb>{{{1}}}</rb><rp>(</rp><rt>{{{2}}}</rt><rp>)</rp></ruby>
 
   | <ruby class="rubytext ruby-{{{lang|ja}}}" lang="{{{lang|ja}}}" xml:lang="{{{lang|ja}}}"><rb>{{{1}}}</rb><rp>(</rp><rt>{{{2}}}</rt><rp>)</rp></ruby>
   | {{{1}}}
+
   | {{{1}}}[[Category:Pages with an unnecessary Ruby transclusion]]
 
}}{{ #ifeq: {{{3|¬}}} | ¬ || [[Category:Ruby transclusions with too many parameters]] }}<noinclude>
 
}}{{ #ifeq: {{{3|¬}}} | ¬ || [[Category:Ruby transclusions with too many parameters]] }}<noinclude>
  
Line 9: Line 9:
 
Results in {{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ
 
Results in {{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ
  
Non-Japanese text must specify the language using an [[wikipedia:List of ISO 639-1 codes|ISO 639-1 code]] (commonly-used ones are "en" for English, "ko" for Korean, and "zh" for Chinese) and the "lang" parameter: <pre>{{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌</pre>
+
Non-Japanese text must specify the language using an [[wikipedia:List of ISO 639-1 codes|ISO 639-1 code]] (commonly-used ones are "en" for English, "ko" for Korean, and "zh" for Chinese) via the "lang" parameter: <pre>{{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌</pre>
  
 
Results in {{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌
 
Results in {{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌
 
When used in the [[Template:CardTable2/doc/languages#Names|"name" parameters]] in {{t|CardTable2}}, this template may create output that results in a visibly broken page layout. In such cases, {{t|Hide Factbox}} should be added to the top of the card page; this will hide the SMW factbox and add the page to a [[:Category:Pages with a suppressed SMW factbox|tracking category]].
 
  
 
== See also ==
 
== See also ==

Revision as of 20:28, 19 January 2014

{{{1}}}({{{2}}})

{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ

Results in きょくしんおうロキ

Non-Japanese text must specify the language using an ISO 639-1 code (commonly-used ones are "en" for English, "ko" for Korean, and "zh" for Chinese) via the "lang" parameter:

{{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌

Results in BF블랙페더-탱구바람 히렌

See also