Difference between revisions of "Template:Ruby"

From Yugipedia
Jump to: navigation, search
(category)
(add tracking category for transclusions with too many parameters)
Line 3: Line 3:
 
   | <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}}}
}}<noinclude>
+
}}{{ #ifeq: {{{3|¬}}} | ¬ || [[Category:Ruby transclusions with too many parameters]] }}<noinclude>
  
 
<pre>{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ</pre>
 
<pre>{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ</pre>

Revision as of 01:43, 13 June 2013

{{{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) and the "lang" parameter:

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

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

When used in the "name" parameters in {{CardTable2}}, this template may create output that results in a visibly broken page layout. In such cases, {{Hide Factbox}} should be added to the top of the card page; this will hide the SMW factbox and add the page to a tracking category.

See also