Difference between revisions of "Template:Ruby"

From Yugipedia
Jump to: navigation, search
(It works without the rb tags, but it's handier for string functions if they're left in.)
(don't output Ruby syntax if no furigana is provided)
Line 1: Line 1:
<ruby class="ruby-{{{lang|ja}}}" lang="{{{lang|ja}}}" xml:lang="{{{lang|ja}}}"><rb>{{{1}}}</rb><rp>(</rp><rt>{{{2}}}</rt><rp>)</rp></ruby><noinclude>
+
{{
 +
  #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>
 +
  | {{{1}}}
 +
}}<noinclude>
  
 
<pre>{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ</pre>
 
<pre>{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ</pre>

Revision as of 21:05, 22 May 2011

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

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

Results in きょくしんおうロキ