Jump to content

Template talk:Infobox television/Archive 15

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 10 Archive 13 Archive 14 Archive 15

alt_name bugfix

There was a bug in the infobox with |alt_name= which I fixed here. The infobox will now place the value of the text in italics if it is singular. When it is plural it won't, as lists can cause lint errors. These will need italics to be manually added.

Additionally, if the value has disambiguation (such as Another name (1999)), the template will handle it so only the text outside the parenthesis is in italics.

I'm working on a tracking category for the plural cases so those can be fixed.

Testcases can be found here. Please let me know if you see anything that needs to be fixed.

I'll update the live code in a few days if no issues are reported. Gonnym (talk) 19:32, 20 January 2024 (UTC)

An issue that probably will arise and will need fixing, is that if an alt title already uses italics, it will now have 4 ' and will be in bold with an extra one on each side. Gonnym (talk) 12:04, 21 January 2024 (UTC)
A tracking category can be added to the |plural= section of the Pluralize template transclusion. – Jonesey95 (talk) 14:30, 21 January 2024 (UTC)
Yes, I'll probably add a tracking category to find plural usages that need fixed. Those are done over at Module:Infobox television as the logic gets more complicated than template syntax can handle. I just need to think how best to catch entries of a list (still hoping to find some template or module out there that will save me writing that code:) ) Gonnym (talk) 15:10, 21 January 2024 (UTC)
OK, code written to handle plurals without italics and singular with italics. Will make this code live this week. Gonnym (talk) 11:30, 22 January 2024 (UTC)