Jump to content

Template talk:Ruby-ja

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

rb element

[edit]

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

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

--  Gadget850 talk 19:46, 14 March 2015 (UTC)[reply]

Class furigana

[edit]

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

Text above text

[edit]

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 writingone or more words on top 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)[reply]

CSS not scope-limited

[edit]

The TemplateStyles for this template uses the selector ruby > rt 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 furigana class added. A unique class should be added to the output markup and the CSS rules changed to target that, e.g. .ruby-ja ruby > rt. Opencooper (talk) 19:56, 15 September 2022 (UTC)[reply]

This has been fixed now – the class used is .templateruby. Incidentally, this template has apparently been broken for over a year, since February 5th, 2023 – 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)[reply]
Thanks for the update. Glad this got fixed. Opencooper (talk) 06:18, 5 April 2024 (UTC)[reply]