Jump to content

Template talk:Track listing

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Tracklist)

Period

[edit]

Why is there no period generated by |all_music=? InfiniteNexus (talk) 06:52, 14 December 2023 (UTC)[reply]

Because it usually implies that |all_lyrics= will be used as well, and this would require it to be followed by a comma. Richard3120 (talk) 20:43, 6 April 2024 (UTC)[reply]
Then the template should be adjusted to recognize if |all_lyrics= is being used, and if not, automatically add a period. InfiniteNexus (talk) 23:00, 7 April 2024 (UTC)[reply]

Dark mode media query

[edit]

According to the recommendations for night mode compatibility on MediaWiki, the class to style in the prefers-color-scheme media query should be skin-theme-clientpref-os instead of skin-theme-clientpref-night, is that correct? Strepulah (talk) 08:34, 5 May 2024 (UTC)[reply]

@Jdlrobson: Perhaps you could help me out here? Strepulah (talk) 09:21, 13 May 2024 (UTC)[reply]
Hey @Strepulahthanks for reaching out - you need both (e.g. duplicate rules for both modes):
  • skin-theme-clientpref-os should be used in conjunction with prefers-color-scheme media query. It corresponds to ?vectornightmode=2 and will only display night mode if the operating system preference has been set - it means "Give me dark theme if my operating system was configured to request it".
  • skin-theme-clientpref-night should be set without a prefers-color-scheme media query. It corresponds to ?vectornightmode=1 - it means "Always give me dark theme".
Hope that helps? 🐸 Jdlrobson (talk) 16:32, 13 May 2024 (UTC)[reply]
Sort of. But then shouldn't lines 99, 103 and 107-109 in Module:Track listing/styles.css have class skin-theme-clientpref-os? Strepulah (talk) 17:25, 13 May 2024 (UTC)[reply]

No documentation on how to use TrackSum.js

[edit]

Can someone explain how to use the userscript User:JPxG/TrackSum.js to calculate the total lengths? The userscript doesn't have any documentation so I have no idea how to use it. 81.154.143.12 (talk) 20:36, 10 June 2024 (UTC)[reply]

The redirect T:TRACKLIST has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2024 September 15 § T:TRACKLIST until a consensus is reached. Utopes (talk / cont) 20:59, 15 September 2024 (UTC)[reply]

Change ids to classes?

[edit]

@User:Gonnym: You added a feature 4 years ago, where ids where added. This causes an issue where there is more than one track listing for an album, like when an album is slightly different in different continents (one or more songs added/removed). Those albums now show up at Special:LintErrors/duplicate-ids as unsupported by Parsoid, the new parser. Can this use classes instead, like shown below? line 166:

:attr('id', string.format(cfg.track_id, self.number))
+
:attr('class', string.format(cfg.track_id, self.number))

Snævar (talk) 16:42, 26 November 2024 (UTC)[reply]

Did you test to see if changing to class still allows using it as a anchor? Gonnym (talk) 14:15, 29 November 2024 (UTC)[reply]