跳至內容

模板:BillboardEncode/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 {{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.

{{BillboardID}} 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. This template is a supporting template: 99% of the time, the artists name can be passed to urlencode and the link will be fine. The other 1% are a real problem.

  1. Billboard replaces most, but not all, characters that are not in the English alphabet with a "-"
  2. Sometimes, Billboard will replace characters that are not in the English alphabet with a replacement that they think looks appropriate.
  3. Billboard frequently, but not always, drops "a", "the", "of", "as", and "in" from the URLs.
  4. "+" characters frequently mangle the characters around it.
  5. The rules are psychotically inconsistent. For example, "Mike + the Mechanics" becomes http://www.billboard.com/artist/1493113/mike-the-mechanics but "Florence + The Machine" becomes http://www.billboard.com/artist/302247/florence-machine

This template is simply an override. It returns the results of urlencode if it will work. Exception cases are listed and a specific string is returned.

Usage

[編輯]

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

  • {{BillboardID|Artistname}}
  • {{BillboardID|}}

Alternately, it can also be written:

  • {{BBID|Artistname}}
  • {{BBID|}}

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:
  • {{albumchart|Billboard200|10|artist=Gotye|artistid=619936|accessdate=2 June 2012}}
  • {{singlechart|Billboardhot100|1|artist=Gotye|artistid=619936|accessdate=2 June 2012}}
  • Instead, using this template, it might be called as this:
  • {{albumchart|Billboard200|10|artist=Gotye|artistid={{BillboardID|Gotye}}|accessdate=2 June 2012}}
  • {{singlechart|Billboardhot100|1|artist=Gotye|artistid={{BillboardID|Gotye}}|accessdate=2 June 2012}}
  • As an example (using the template):
Chart Peak
position
美國(Billboard Hot 100[1] 1
Chart Peak
position
美國(《告示牌》200[2] 10
  1. ^ "Gotye Chart History (Hot 100)". Billboard. [2 June 2012].(英語).
  2. ^ "Gotye Chart History (Billboard 200)". Billboard. Retrieved 2 June 2012.

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 https://www.billboard.com/artist/shakira/chart-history/hot-100 you will see that big number:278867. 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 = 278867
    Pay attention to the case. It has to be lower case inside the template.
  5. 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.

See also

[編輯]