Template talk:IPAc-en

Latest comment: 4 days ago by Nardog in topic Missing HTML class "IPA-label"

Missing HTML class "IPA-label" edit

I was just setting up some custom CSS to make translations and such easier to read when I noticed this template doesn't add the class "IPA-label" to the label it generates, unlike the other IPA templates. Is that intentional, or should it be added?

For example:

{{IPA-fr|fubaʁ}}

results in:

<span class="IPA-label IPA-label-small">French pronunciation:</span> ...

which, for reference, is rendered as:

French pronunciation: [fubaʁ]

While for this template:

{{IPAc-en|lang|f|u|b|a:r}}

results in:

<small>English: </small>...

rendered as:

English: /fubɑːr/

W.andrea (talk) 01:53, 17 March 2024 (UTC)Reply

Template-protected edit request on 24 April 2024 edit

I talked about this above. Basically, this change is to bring the markup inline with Template:IPA.

In Module:IPAc-en, change

<small>%s</small>
+
<span class="IPA-label IPA-label-small">%s</span>

(Note: The template documentation doesn't need to be updated since it doesn't mention this behaviour.)

By the way, Template:IPA also has a small parameter that maybe this template should implement as well, but that's beside the point.

W.andrea (talk) 20:10, 24 April 2024 (UTC)Reply

That alone won't be enough because without Module:IPA/styles.css IPA-label-small doesn't work.   Done. Nardog (talk) 20:35, 24 April 2024 (UTC)Reply
Ideally this module should just call the IPA module instead of handling the label, audio, etc. on its own. Nardog (talk) 20:42, 24 April 2024 (UTC)Reply