Template talk:Track listing
Add topic| This is the talk page for discussing improvements to the Track listing template. |
|
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
| Template:Track listing is indefinitely protected from editing as it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify a template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Display parameters
[edit]Only No., Title and Length display when there are no values. Is it possible to make Length invisible unless the track length values are filled, like Extra column? Kailash29792 (talk) 03:45, 1 May 2026 (UTC)
Quotation marks
[edit]Is it possible to add an option to not show quotation marks?
Here's a example where that can be useful: "How to Succeed in Business Without Really Trying (soundtrack)". There are descriptive titles and subtitles like "Overture", "Finale", "Reprise", "Finch's frolic", "Company party". It would be nice to have an option to disable quotation marks in cases like this. --Moscow Connection (talk) 11:14, 17 June 2026 (UTC)
Track list length
[edit]Per the template for the total length parameter, it notes "It should be specified in minutes and seconds, even if it is longer than one hour, for example 74:23", however as per Category:Track listings with input errors, it mentions "Time segments should also not exceed 60", with the total length showing as 1:23:45 for example. The statements are quite confusing and need to be fixed.--Majash2020 (talk) 03:31, 19 July 2026 (UTC)
Proposal: 7" vinyl single Side A and Side B
[edit]For track listings in articles for singles, there is sometimes a 7" vinyl single release with tracks on Side A and Side B, sometimes with exclusive tracks not available on any other format. Can there be a update to this template to reflect this by allowing both A and B tracks to be labelled within a single tracklist? The template parameters trackA, writerA, lengthA and trackB, writerB, lengthB could be added for this purpose. Blackstardust16 (talk) 09:52, 30 July 2026 (UTC)
Duplicate IDs
[edit]It appears that if this template gets used multiple times on a single page it creates duplicate IDs which the lint system correctly identifies as an error. I think it's line 166 that's causing the issue.
:attr('id', string.format(cfg.track_id, self.number))
I'm not sure how best to solve this. Jerod Lycett (talk) 09:56, 21 August 2026 (UTC)
- Are the duplicate ids being using as targets of links? If not, it is unclear whether they are causing actual problems. People fixing Linter errors are mostly ignoring duplicate id errors for now. – Jonesey95 (talk) 15:39, 21 August 2026 (UTC)
- It causes issues with CSS, Javascript, and some (admittedly crappy) accessibility tools. Almost all dupe IDs are from templates, mostly the cite templates, so it's near impossible to fix as a regular editor. For example, to fix any of those generated by track listing it would require a module change, and I'm not even sure it's possible. I do ask: is there any reason we have the id from the template? Jerod Lycett (talk) 22:31, 21 August 2026 (UTC)
- What are the specific errors that the duplicate ids cause in articles that use this template? Can you give a specific example? As for why they exist, I don't know; someone more familiar with the code may be able to answer that. – Jonesey95 (talk) 01:03, 22 August 2026 (UTC)
- The biggest is the lack of useful navigation by screenreaders (which utilize the HTML DOM). They utilize the IDs to create internal links. Any article that has duplicate IDs is less accessible, which is by itself a problem. It does, of course, also make linking bad. Memories (Within Temptation song)#track1 for example has three possible targets.
- I don't know if there's a way to deduplicate them other than allowing for an override. If they're not used regularly for links though, removing their creation and allowing the DOM to generate its own pseudo-IDs would be a better solution. Jerod Lycett (talk) 04:23, 22 August 2026 (UTC)
- What are the specific errors that the duplicate ids cause in articles that use this template? Can you give a specific example? As for why they exist, I don't know; someone more familiar with the code may be able to answer that. – Jonesey95 (talk) 01:03, 22 August 2026 (UTC)
- It causes issues with CSS, Javascript, and some (admittedly crappy) accessibility tools. Almost all dupe IDs are from templates, mostly the cite templates, so it's near impossible to fix as a regular editor. For example, to fix any of those generated by track listing it would require a module change, and I'm not even sure it's possible. I do ask: is there any reason we have the id from the template? Jerod Lycett (talk) 22:31, 21 August 2026 (UTC)