Template:BillboardID/doc

Billboard magazine indexes the artists on their website by a number called the artist ID. Each individual artist has a single identification number through which all chart history can be tracked form inside and outside the website. This template is used to support singlechart, albumchart, and {{tl}BillboardURLbyName}}.

Internally, it uses forty subtemplates, split by the first character of the artist's name. This prevents the system from needing to load the entire translation table every time the system.

The following template compiles the artists and their respective IDs, and provides the ID when called with a supported artist's name. It is a reasonably complete list (as of 11 February 2012 it includes over 30,000 artists) and anyone can help adding or asking missing IDs to it.

Usage
Copy and paste one of the following onto the or  templates when calling a Billboard chart, replacing Artistname with the artist whom chart history you are consulting:

Alternately, it can also be written:

Example
The template might be used the following way: On the Singlechart or Albumchart, when calling Billboard charts, do the next:
 * Usually, those templates might be called as this:


 * Instead, using this template, it might be called as this:


 * As an example (using the template):

What if it doesn't work?
The usual problem is going to be that you didn't match the artist name on Billboard. Billboard is picky! "Selena Gomez & the Scene" is not the same as "Selena Gomez and the Scene". "Ana Belén" and "Ana Belen" are not the same. So, double check your name.

If that doesn't help, the problem probably lies in BillboardID. Fixing it is simple:
 * 1) Go find your artist's list of charts on Billboard.
 * 2) Look at the URL. Again, looking at you will see that big number:. That's the magic number we need.
 * 3) Edit the appropriate child of BillboardID. For Shakira, that's BillboardID/S, because "Shakira" begins with an "S".
 * 4) Insert the line. Again, using Shakira as an example, it's
 * shakira =
 * Pay attention to the case. It has to be lower case inside the template.
 * 1) Now try again. Please doublecheck a few artists' articles that begin with the same letter and make sure you didn't break them. You can easily break hundreds of articles by inserting an error in the BillboardID templates, so be careful.

If you can't figure it out, drop a note at Template talk:BillboardID, and someone will come help.

Maintenance categories
To help maintain music articles, this template will automatically categorize articles that call it based on the parameters used in the reference.

BillboardID category
contains all articles that make use of the template.