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: a4230db68e3948fc

Jump to content

Template talk:Single chart

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 17 days ago by ThedancingMOONpolice in topic Display issue with archives

[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
1781 → 1093
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

Hi Solidest, the website has CloudFlare blocking so I could not test live pages beyond manual spot checks.

  • Bot results: Checked 5,152 pages and edited 5,142 pages. Moved 9,889 links to a new URL: 9,889 ruled mapped redirects, Removed 3 {{dead link}}. Added 251 {{dead link}}. Switched 108 |url-status=dead to live. Switched 26 |url-status=live to dead. Added 1,057 archive URLs (1,057 Wayback).

I had AI write a summary of some issues in case it is helpful to you for the template conversion. -- GreenC 00:00, 2 August 2026 (UTC) Reply

Thank you. I'm still waiting for my bot permissions request to be reviewed. Once I've run the replacement script, I'll take a closer look at your report, along with the items that weren't replaced. It’s possible that the migration is still ongoing, since most pages show “last updated: last week of july,” and more IDs may reappear after. Solidest (talk) 06:40, 2 August 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

Scotland

[edit]

This chart's name should be Scottish Singles Sales per Official Charts. Per Scottish Singles and Albums Charts, this chart that started in 1994 has not been published since December 3rd, 2020. Could this be updated? Thank you. MrLinkinPark333 (talk) 20:36, 31 July 2026 (UTC)Reply

 Done. Solidest (talk) 22:17, 7 August 2026 (UTC)Reply

South Africa EMA Airplay

[edit]

Hello, shouldn't template for South Africa EMA chart be changed from South Africa (EMA) to South Africa Airplay (EMA), to match other airplay charts? Szyign (talk) 08:37, 4 August 2026 (UTC)Reply

 Done. Solidest (talk) 22:17, 7 August 2026 (UTC)Reply

Ireland2

[edit]

I noticed that the irishcharts.ie website now redirects to the new IRMA website. The {{Single chart|Ireland2|0|artist=}} and {{Single chart|Ireland2|0|song=}} templates currently redirect to the IRMA home page (example link here). They could be retooled to target the chart search page on the new site. An example would be this. ThedancingMOONpolice (talk) 06:11, 8 August 2026 (UTC)Reply

 Done. Also added a new site as Ireland5. I’m not sure if this is really the right way to go about it. It’s likely that there will be cases which were on the old site but aren’t on the new one, in which case the old ones should have been marked as archived and the new ones added as separate charts. But we’ll see; let’s hope there are not many such cases. Solidest (talk) 17:58, 10 August 2026 (UTC)Reply

UK chart song pages

[edit]

Hello. I'm not sure if anyone is aware, but the Official Charts website now has song pages that list the whole chart history archived on the website for each individual song, with the positions of each week and everything. It's not just the UK Singles Charts they have on these, but also others except seemingly the Scottish single chart, I guess because it's inactive. I've noticed that there isn't a template field to source to these song pages, but rather the dates of a chart. If someone could update the template, that would be great. Thanks. Bytor, Big Money, and the Bones (At the Tobes of Hades) 15:02, 11 August 2026 (UTC)Reply

I think these pages have been around since at least 2023 or so it seems? I thought they weren't being added because there wasn't really a need—there are plenty of specific charts and links to search results. But adding them to both songs and albums wouldn't be difficult if they're really needed. Solidest (talk) 20:07, 11 August 2026 (UTC)Reply
It'd be a lot simpler in all cases instead of looking for the specific week it chart. Bytor, Big Money, and the Bones (At the Tobes of Hades) 22:58, 11 August 2026 (UTC)Reply
 Done. I added both as UK Song and UK Album. I also had to add a new encoder to the module to trim hyphens to make this work. I've checked some titles with special characters, and there don't seem to be any issues. But if you come across any unusual variations in title or artist names that aren't being converted into links, please let me know. Solidest (talk) 23:00, 11 August 2026 (UTC)Reply
You're the best. Thanks! The specific genre charts, including UK Dance, UK Indie, UK Indie Breakers, UK Afrobeats, and so on and so forth are also on these song pages, so if you could do the same for those, that would be great! Bytor, Big Money, and the Bones (At the Tobes of Hades) 23:03, 11 August 2026 (UTC)Reply
Hmm, in that case, I think it would be better to integrate the dual mode into the existing charts rather than use separate charts. If a UK OC template call specifies only artist+song/album, it links to a separate page. If a date is specified, it links to a specific chart. I assume those pages contain all the existing charts? Solidest (talk) 23:18, 11 August 2026 (UTC)Reply
Whatever works. Bytor, Big Money, and the Bones (At the Tobes of Hades) 23:23, 11 August 2026 (UTC)Reply
Done, the dual mode now works with all the UK Official Charts. The result is a bit heavy, but it looks like everything is working fine. Solidest (talk) 23:40, 11 August 2026 (UTC)Reply
Are the {{Album chart|UK}} and {{Album chart|UK2}} templates meant to be the same now? {{Album chart|UK}} previously only required the artist's name to link to their entire chart history if the internal resolver could redirect to the artist's numeric ID page, but now the behavior is the same as {{Album chart|UK2}} and many articles are displaying the Missing parameters: date or album+artist error message, see here for example. ThedancingMOONpolice (talk) 08:35, 12 August 2026 (UTC)Reply
My bad, {{Album chart|UK}} should not be affected by these changes. I've reverted it. Solidest (talk) 12:34, 12 August 2026 (UTC)Reply

template for Billboard Vietnam Hot 100 (and other Billboard countries charts?)

[edit]

Hi, I’ve been wondering recently whether it might be worth adding templates for the official Billboard charts for other countries, such as the Billboard Vietnam Hot 100, the Korea Hot 100, and countries from the Hits of the World list that are frequently used in chart tables on the wiki – such as Ecuador, Chile, Peru, Bolivia, Croatia, Romania, Luxembourg, Iceland, Hong Kong, India, Malaysia, Turkey, Thailand, Taiwan, Mexico and Indonesia? Szyign (talk) 19:51, 22 August 2026 (UTC)Reply

@Solidest forgot about the ping Szyign (talk) 19:51, 22 August 2026 (UTC)Reply
I don't mind if someone else adds it, but right now it seems too time-consuming to me, sorry. P.S. It's better to prepare the information for these requests in advance–URLs with chart IDs, their availability dates, table text, and so on. Solidest (talk) 20:16, 22 August 2026 (UTC)Reply

India International chart archive

[edit]

Hey, whilst browsing the IMI Charts website, I stumbled across a complete week-by-week archive of their charts, dating back to 2021. The whole archive is available here: https://imicharts.com/archives/

I think we could create a template similar to the one we use for South Africa – most of the links are simply like: /week-13-2025/, with just a few exceptions – to make things easier, I’ve listed them below:

Week 13, 2026: https://imicharts.com/week-12-2026-copy/
Week 12, 2025: https://imicharts.com/week-12-2/
Week 11, 2025: https://imicharts.com/week-11-2/
Week 10, 2025: https://imicharts.com/week-10-2/
Week 8, 2025: https://imicharts.com/week-9-2/
Week 8, 2025: https://imicharts.com/week-8-2/
Week 7, 2025: https://imicharts.com/week-7/
Week 6, 2025: https://imicharts.com/week-6-3/
Week 5, 2025: https://imicharts.com/week-5-2/
Week 4, 2025: https://imicharts.com/week-4-2/
Week 3, 2025: https://imicharts.com/week-3-2/
Week 2, 2025: https://imicharts.com/week-2-2/
Week 1, 2025: https://imicharts.com/week-1-3/
Week 37, 2024: https://imicharts.com/week-37-2024-copy/
Week 8, 2024: https://imicharts.com/week-7-2024-2/
Week 19, 2023: https://imicharts.com/week-19-2/
Week 15, 2023: https://imicharts.com/week-14-2023-copy/
Week 12, 2023: https://imicharts.com/week-11-2023-2/
Weeks 1-9 of 2023 have 0 before the number in the link, for example 01-2023
Week 52, 2022: https://imicharts.com/week-1-2/
Weeks 51-24 of 2022 (without the listed exceptions below) are available simply under /week-51-2 in the link
Week 44, 2022: https://imicharts.com/week-44/
Week 43, 2022: https://imicharts.com/week-43-3/
Week 27, 2022: https://imicharts.com/week-27/
Weeks 1-23 of 2022 (without the listed exceptions below) are available simply under /week-20 in the link
Week 16, 2022: https://imicharts.com/week-15-2/
Week 7, 2022: https://imicharts.com/week-6-2/
Weeks 51-24 of 2021 (without the listed exceptions below) are avilable simply under /week-51 in the link
Week 44, 2021: https://imicharts.com/week-43-2/
Week 27, 2021: https://imicharts.com/meet-the-married-couple-from-kiev-behind-all-that-viral-2/

Okay, after listing it I see that there are many exceptions, but I guess with already created code for South Africa and this list it shouldn't be that hard to implement, so let me know what you think! @Solidest Szyign (talk) 03:02, 26 August 2026 (UTC)Reply

The South African approach would not work here, as all the identifiers there are predictable, whereas here there are many exceptions. We could create a Czech-Slovak version using a JSON file that would map dates to page IDs (either all of them or just the exceptions), but this comes with some complications. The parts of the URLs that are currently changing are slugs, which are automatically generated based on the page title. If a title is entered in a non-standard or incorrect way, an unpredictable slug is generated, which would then have to be entered manually into the JSON. There is also a possibility that even old slugs could change as a result of some actions on the site. Hopefully, that won't happen.
The new ones, however, look systematic overall starting from week 13 of 2025, so they can be predicted without regularly updating the JSON, which is the key factor. Therefore, I think we can add the chart. Solidest (talk) 18:41, 26 August 2026 (UTC)Reply
 Done. Added as India Int. Solidest (talk) 19:17, 26 August 2026 (UTC)Reply
Thank you so much! Szyign (talk) 02:17, 27 August 2026 (UTC)Reply

{{Single chart|UKstreaming|0|artist=|song=}} should be removed

[edit]

Audio Streaming chart peaks don't appear on a song's chart history page. For example "HBA" which peaked at 92 in March 2025 doesnt show any chart entries. haventcameupwithanameyet 07:15, 27 August 2026 (UTC)Reply

Yes, it looks like those pages only display the generic Streaming (which combines audio and video?), which we don't have in the template. I've removed that option for this chart. Solidest (talk) 13:40, 27 August 2026 (UTC)Reply

Display issue with archives

[edit]

I've just added a couple archive parameters at Believe (Staind song)#Weekly charts, but the text for the archive link calls it the original? I suspect this may have something to do with the lack of a url-status parameter, which I think would be a good idea to add so that usages with archives called don't display as dead links. Dylan620 (he/they/she • talk • edits) 21:09, 28 August 2026 (UTC)Reply

See Template:Single chart#Manual reference mode. Manual link reference mode (including archived links) is enabled when the third parameter is set to M. Solidest (talk) 23:04, 28 August 2026 (UTC)Reply
@Solidest: Facepalm Facepalm Thanks for the pointer. Dylan620 (he/they/she • talk • edits) 07:07, 29 August 2026 (UTC)Reply
Since using archive-url and archive-date without the M parameter uses the live link as the main link like url-status=live, I suggest updating the schema from Archived from [{archiveurl} the original] to [{archiveurl} Archived] from the original to follow the output format of cite web template. ThedancingMOONpolice (talk) 06:46, 11 September 2026 (UTC)Reply

Poland Streaming chart

[edit]

Hi @Solidest, would it be possible to add a template for Polish Streaming? The ref is the same as for the existing Airplay template, and I’d be happy to start using both templates when adding missing ones to articles, as I already do that from time to time anyway. Szyign (talk) 05:07, 9 September 2026 (UTC)Reply