Template talk:Ruby-ja

rb element
is being used in a manner that causes invalid HTML output.

"Element rb not allowed as child of element ruby in this context."

--  Gadget850talk 19:46, 14 March 2015 (UTC)

Class furigana
This template uses the "furigana" CSS class. Where is it defined? --Amir E. Aharoni (talk) 06:22, 18 April 2016 (UTC)

Text above text
In the example the furigana すべ placed above 全 .. I am wondering if anyone knows if there is a vocabulary term for doing this that we could possibly explain in the template. I figure it is similar to superscript but that is different because while it makes it small and high up, doing so continues it into new space instead of  the previous word.

I'm hoping to understand how this template does this as it is a useful thing and I was wondering if I could read an article about this type of word formatting on Wikipedia but I'm not sure what it's called so I don't know where. Ranze (talk) 16:18, 30 November 2016 (UTC)

CSS not scope-limited
The TemplateStyles for this template uses the selector  to make the ruby text larger. However, the problem with this is that the template does not include a selector to limit this styling to the template's own output. This can cause interference with other templates, which might have their own styling applied to the elements. The guideline notes: "Use selectors that are highly likely to be unique to the template being used. This reduces the chance of conflicting CSS rules arising accidentally. Examples: Use .myTemplate-row rather than .row or .myTemplate tr rather than tr." This template used to have a  class added. A unique class should be added to the output markup and the CSS rules changed to target that, e.g. . Opencooper (talk) 19:56, 15 September 2022 (UTC)


 * This has been fixed now – the class used is . Incidentally, this template has apparently been broken for over a year,  – the CSS wasn't being applied, meaning that the ruby text was nigh-unreadably small! That's corrected now, of course. Obskyr (talk) 02:33, 5 April 2024 (UTC)
 * Thanks for the update. Glad this got fixed. Opencooper (talk) 06:18, 5 April 2024 (UTC)