Difference between revisions of "Template:Ruby"

From Yugipedia
Jump to: navigation, search
(don't output Ruby syntax if no furigana is provided)
(add a catch-all class name (this may break more pages due to the added length, so keep an eye out and use {{Hide Factbox}} where necessary) and document the "lang" parameter finally)
Line 1: Line 1:
 
{{
 
{{
 
   #if: {{{2<includeonly>|</includeonly>}}}
 
   #if: {{{2<includeonly>|</includeonly>}}}
   | <ruby class="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>
 
}}<noinclude>
Line 8: Line 8:
  
 
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>
 +
 +
Results in {{Ruby|BF|블랙페더|lang=ko}}-탱구바람 히렌
 
</noinclude>
 
</noinclude>

Revision as of 17:14, 10 August 2011

{{{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블랙페더-탱구바람 히렌