Permanently protected template

Difference between revisions of "Template:Ruby"

From Yugipedia
Jump to: navigation, search
(add a note about page breakage and what to do)
(top: Restoring revision 4538072 by User:Dinoguy1000 on 2020-08-17 03:49:49. as far as I can tell, nothing uses these classes; CSS can just do "ruby { ... }" or "ruby[lang=...] { ... })
(Tag: New user edit)
 
(13 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{
+
{{ #if: {{{2<includeonly>|</includeonly>}}}
  #if: {{{2<includeonly>|</includeonly>}}}
+
   | <ruby 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}}}[[Category:Pages with an unnecessary ((Ruby)) transclusion]]
   | {{{1}}}
+
}}{{ #if: {{{1<includeonly>|</includeonly>}}} || [[Category:Pages with an unnecessary ((Ruby)) transclusion]]
}}<noinclude>
+
}}{{ #ifeq: {{{3|¬}}} | ¬ || [[Category:((Ruby)) transclusions with too many parameters]] }}<noinclude>
 
+
{{Documentation}}
<pre>{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ</pre>
 
 
 
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}}-탱구바람 히렌
 
 
 
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]].
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:48, 17 March 2023

{{{1}}}{{{2}}}