Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a23c67f72f904440

Jump to content

Template talk:Single chart

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Single chart/testcases)
Latest comment: 2 days ago by Solidest in topic Argentina

Romanian templates

[edit]

Hey @Solidest, I was recently thinking about changing visible name in the RO Template. Currently it is: Romania (Romania Radio Airplay) and Romania (Romania TV Airplay). I think that to match other airplay charts, it would make more sense to rename them to Romania Airplay (Media Forest) and Romania TV Airplay (Media Forest).

Could you change it, if it's okay? Thanks! Szyign (talk) 14:44, 23 April 2026 (UTC)Reply

Good point, done. Solidest (talk) 19:21, 23 April 2026 (UTC)Reply

Germany and West Germany

[edit]

Hello. I was wondering if these templates could have |title and |artist parameters in the generated citations. The links currently say "Offizielle Deutsche Charts" and "Offizielle Deutsche Charts (West Germany)". For the |year parameter, i believe it's not needed for Germany as this is for songs after October 3, 1990. The parameter is for songs before 1977 per Template:Single chart. Thanks! MrLinkinPark333 (talk) 00:51, 25 April 2026 (UTC)Reply

I raised this question before. Check this. The current policy is the opposite of what you are suggesting. We do not add parameters to the URL title that are not used or needed in the actual URL. The URL titles themselves should be as close as possible to how the pages are named on the site. At the moment, it matches how the pages are actually titled.
Regarding the year, it is probably better to leave them as they are for now rather than clean them up. Technically, they can all be merged into a single chart now, as they are on the website, and Germany could automatically switch to West Germany when needed. The only issue is figuring out what to do with the year 1990. Solidest (talk) 09:31, 30 April 2026 (UTC)Reply

Dutch Top 40

[edit]

Hello. The |artist parameter doesn't work correctly for artists that start with The. For example, The Cure doesn't work but Cure The works instead. I was wondering if there was a way to fix this without having to reverse the artist's name in the parameter. Thanks! MrLinkinPark333 (talk) 22:12, 25 April 2026 (UTC)Reply

It’s possible, but it would be a rather heavy solution (with a separate unique helper function). It seems better to simply fill them in reverse order than to program such highly specific nuances for each individual chart. Solidest (talk) 09:34, 30 April 2026 (UTC)Reply
[edit]

Hello. It appears Billboard has recently restored the Canada Country chart histories to their website (e.g. Jason Aldean's chart history is intact; it still says "Billboard Hot 100" in the chart selection box, but the chart history is for the Billboard Canada Country chart), but using the Billboardcanadacountry template currently generates a dead link template in the accompanying citation. Could this maybe be removed? Thanks. Skyversay (talk) 05:22, 21 May 2026 (UTC)Reply

Hello, I've removed the dead link note. Solidest (talk) 20:00, 21 May 2026 (UTC)Reply

Request

[edit]

Hi @Solidest, Could I ask you to add a note in Module:Music chart/single.json for Central America, that data is available from 28 November 2022 onwards? This link shows that this is the first week for which data is available – attempting to view the previous week returns no results, as is the case with other Monitor Latino charts for which I have already found the dates from which their archives are available. I would add this myself, but someone has blocked editing of that template :> Szyign (talk) 19:52, 18 June 2026 (UTC)Reply

Hi, @Szyign. Just to clarify: should I add this date for all Monitor Latino charts, or does each chart have its own specific start date? Solidest (talk) 23:06, 18 June 2026 (UTC)Reply
@Solidest Unfortunately each chart have its own specific start date, cause they were adding new countries in very different dates - for example Mexico started back in 2002, Bolivia in 2016 etc. Szyign (talk) 08:14, 19 June 2026 (UTC)Reply
I see. Added dates for Central America only then. Solidest (talk) 03:55, 20 June 2026 (UTC)Reply

Edit request

[edit]

Official Charts Company page was renamed, so ([[Official Charts Company|OCC]]) ([[Official Charts|OC]]) and citations will have to use Official Charts rather than Official Charts Company. RedShellMomentum 02:18, 2 July 2026 (UTC)Reply

Is there a prove that "OC" is the official accronym? I think ([[Official Charts]]) would work just fine. Bluesatellite (talk) 02:49, 2 July 2026 (UTC)Reply
 Done. I couldn’t find any use of the acronym anywhere on their website, so I’ve left the full wording. Solidest (talk) 01:17, 5 July 2026 (UTC)Reply
Thanks, that works. RedShellMomentum 01:36, 5 July 2026 (UTC)Reply

Can someone please change usdanceairplay to = US Dance Airplay. it’s no longer called US Dance/Mix Show Airplay

[edit]

Name change EfficientOrganizer (talk) 20:57, 7 July 2026 (UTC)Reply

 Done. Solidest (talk) 14:44, 9 July 2026 (UTC)Reply

Canadian RPM templates need updated

[edit]

For a while, bac-lac.gc.ca has been saying that they were transferring data from an old address to a new address, and it seems like they finally completed it, as the old website no longer loads . As a result, all the Canadian entries that link to RPM issues need to be updated. For example, the Top Singles chart of April 10, 1993, has been changed from:

https://www.bac-lac.gc.ca/eng/discover/films-videos-sound-recordings/rpm/Pages/image.aspx?Image=nlc008388.1781&URLjpg=http%3a%2f%2fwww.collectionscanada.gc.ca%2fobj%2f028020%2ff4%2fnlc008388.1781.gif&Ecopy=nlc008388.1781 (archive: )

to:

https://recherche-collection-search.bac-lac.gc.ca/eng/Home/Record?app=rpm&IdNumber=1093&ecopy=nlc008388.1781

As you may have noticed, a new ID number has been added: 1093, while the former ID has also been changed. This new ID also appears to vary from page to page. However, when only the new ID is used in the URL, it redirects to the same page, with the old ID tacked on:

https://recherche-collection-search.bac-lac.gc.ca/eng/Home/Record?app=rpm&IdNumber=1093

If this is true, then all pages using the RPM-related templates will have to have their IDs updated too. ResPM (T🔈🎵C) 14:01, 21 July 2026 (UTC)Reply

Is there any way to automatically obtain a new ID if you know the old one? Or is a manual search on the new website the only option? Solidest (talk) 06:33, 23 July 2026 (UTC)Reply
@Solidest: It seems I mixed up the archive above, so it looks like as long as the old ID is known, it can be replaced with the new ID. So:
...Record?app=rpm&IdNumber=1093&ecopy=nlc008388.1781
17811093
I've looked through several issues over the years and it looks like most of the old IDs can be changed to the new IDs. ResPM (T🔈🎵C) 11:59, 23 July 2026 (UTC)Reply
The old link format is:
{{single chart|Canadatopsingles|2|chartid=2319|rowheader=true|access-date=May 14, 2020}}
https://www.bac-lac.gc.ca/eng/discover/films-videos-sound-recordings/rpm/Pages/image.aspx?Image=nlc008388.2319&URLjpg=http%3a%2f%2fwww.collectionscanada.gc.ca%2fobj%2f028020%2ff4%2fnlc008388.2319.gif&Ecopy=nlc008388.2319
How do we get a new ID from here? Solidest (talk) 12:06, 23 July 2026 (UTC)Reply
I've downloaded their entire catalogue of new IDs in this format: id=10054,name=Adult Contemporary Volume 11 | Issue 4 | 24 March 1969,url=https://central.bac-lac.gc.ca/.redirect?app=rpm&id=10054&lang=eng
Is there a similar database for older IDs that would return the [name of the catalogue + volume + issue]? If anyone has extracted something like this, it would be easy to match and update all the IDs. Solidest (talk) 12:12, 23 July 2026 (UTC)Reply
OK, I've found a way to map the old and new IDs. You can use the new IDs to call their API, and it returns the image numbers (the old IDs): https://digitalmanifest.bac-lac.gc.ca/DigitalManifest/39/1093 (new ID = 1093) returns nlc008388.1781. I guess I'll be able to make the replacements.
It's probably also possible to create a separate JSON file to format the exact titles of the sources (wrote about it here), but I'm afraid it would be very large which would be bad for the resources allocated to loading articles. I need to check how it can be compressed and what can be removed from it.
UPD: The mapping table: Wikipedia:WikiProject Record Charts/RPM Canada catalogue. Solidest (talk) 13:54, 23 July 2026 (UTC)Reply
Good. If there are no problems with this, then all that's left to worry about is the manual citations. ResPM (T🔈🎵C) 14:13, 23 July 2026 (UTC)Reply
The solution is ready in the sandbox. I implemented it as new charts to make the changes easier to track and to avoid any interwiki issues. I also added the Country Albums chart. The chart titles will be generated automatically via Module:Music chart/chartdata-canada.json.
I've applied for bot rights since the changes will affect about 8,300 articles, and I want to avoid flooding recent changes. Once the bot flag is granted (or possibly a little earlier), I'll move the changes to the live module and run the replacements.
Around 240 of the old templates have inconsistencies: either the ID is incorrect, or the template specifies one chart while the ID belongs to another. In the new charts, these will appear as errors. So all of these cases will need to be reviewed and manually replaced to new IDs, after which the old chart templates can be deleted once they are no longer in use. Solidest (talk) 09:34, 24 July 2026 (UTC)Reply
Got it. ResPM (T🔈🎵C) 21:59, 24 July 2026 (UTC)Reply
Hi Solidest, a request was made at WP:URLREQ#bac-lac.gc.ca. I have a bot designed for url changes. It's a lot more complex than search-replace: check every new URL is actually working, detect and deal with soft-404s and 404s, remove any {{dead link}} tags, add any new {{dead link}} tags, handle any {{webarchive}} templates, add any needed |archive-url= and associated dates and |url-status= changes etc.. If you have a map of old ID -> new ID I would be happy to run it. -- GreenC 04:04, 26 July 2026 (UTC)Reply
Hi. I can only say for certain about links like those that were used in the chart templates. I believe these are all links containing Image=nlc008388.OLDID. In those cases, OLDID can be replaced with the new ID using this table: Wikipedia:WikiProject Record Charts/RPM Canada catalogue, and the entire link can be changed to https://recherche-collection-search.bac-lac.gc.ca/eng/home/record?IdNumber=NEWID&app=rpm. (You can use it as is, or append &ecopy= at the end, since the url is displayed like this, and the image number is automatically added to the URL after the page loads.) In the table, find the old ID in the ecopy column and take the corresponding new ID from the Item Number column. Sometimes multiple old IDs map to a single new ID; the replacement is still correct, because the new ID will load a selection of multiple images. Solidest (talk) 09:01, 26 July 2026 (UTC)Reply
OK great [nice table BTW]. I'll do this and record what it missed. Then we figure out how to find those IDs. It might be days before I start, working through the requests. -- GreenC 22:06, 26 July 2026 (UTC)Reply

Canada airplay charts - live again

[edit]

Same with Canada Country chart (which was resolved 2 months ago), the chart history links for artists on Billboard Canada airplay charts are live again - for example Taylor Swift chart history: Canada AC, Canada CHR/Top 40, Canada Hot AC. Despite the page showing "Billboard Hot 100" the chart history of songs listed are of the respective Canada charts. Can someone remove the dead URL notices in these templates? Many thanks, ~2026-41200-28 (talk) 23:52, 22 July 2026 (UTC)Reply

Canada Rock also seems to be live again, right? Fixed all of them. Solidest (talk) 06:38, 23 July 2026 (UTC)Reply

Mexico Airplay and Mexico Ingles Airplay

[edit]

How should we go about with adding these two Billboard airplay charts to the template? They both have their own link (e.g. Justin Timberlake chart history: Mexico Airplay and Mexico Ingles Airplay) so I could see them being added. RedShellMomentum 23:18, 27 July 2026 (UTC)Reply

 Done. Added both as "Billboard Mexico" and "Billboard Mexico Ingles". Solidest (talk) 08:46, 28 July 2026 (UTC)Reply

Argentina

[edit]

Category:Single chart usages for Argentina has been converted over to Category:Single chart usages for Billboardargentinahot100 and can be deleted. This category was an alias. Thanks! MrLinkinPark333 (talk) 23:42, 28 July 2026 (UTC)Reply

 Done. Thanks. Solidest (talk) 06:37, 29 July 2026 (UTC)Reply