Difference between revisions of "Template:BillboardURLbyName/doc"

From blackwiki
Jump to navigation Jump to search
imported>Kww
(brief documentation)
 
imported>Kww
(→‎Usage: update with example)
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
This template returns the URL for the page on the Billboard site showing a given artist's performance on a specific chart. For example, {{tlx|BillboardURLbyName|artist{{=}}Shakira{{!}}chart{{=}}Hot 100}} will generate {{BillboardURLbyName|artist=Shakira|chart=Hot 100}}. The chart name mapping is documented at {{tl|BillboardChartNum}}. The artist name must match the one used on the Billboard site ''precisely'': no allowances are made for cases like "&" vs. "and", and Billboard is extremely inconsistent about the use of leading "The" in a band's name.  
+
This template returns the URL for the page on the Billboard site showing a given artist's performance on a specific chart. For example, {{tlx|BillboardURLbyName|artist{{=}}Shakira{{!}}chart{{=}}Hot 100}} will generate {{BillboardURLbyName|artist=Shakira|chart=Hot 100}}. The chart name mapping is documented at {{tl|BillboardChartNum}}. The artist name must match the one used on the Billboard site ''precisely'': no allowances are made for cases like "&" vs. "and", and Billboard is extremely inconsistent about the use of a leading "The" in a band's name.  
  
 
The Billboard name may not match Wikipedia's naming: for example, an article about a song by [[Kesha]] needs to use {{tlx|BillboardURLbyName|artist{{=}}Ke$ha{{!}}chart{{=}}Hot 100}}, because Billboard uses "Ke$ha" for the artist's name. That generates {{BillboardURLbyName|artist=Ke$ha|chart=Hot 100}}, while {{tlx|BillboardURLbyName|artist{{=}}Kesha{{!}}chart{{=}}Hot 100}} will generate {{BillboardURLbyName|artist=Kesha|chart=Hot 100}}
 
The Billboard name may not match Wikipedia's naming: for example, an article about a song by [[Kesha]] needs to use {{tlx|BillboardURLbyName|artist{{=}}Ke$ha{{!}}chart{{=}}Hot 100}}, because Billboard uses "Ke$ha" for the artist's name. That generates {{BillboardURLbyName|artist=Ke$ha|chart=Hot 100}}, while {{tlx|BillboardURLbyName|artist{{=}}Kesha{{!}}chart{{=}}Hot 100}} will generate {{BillboardURLbyName|artist=Kesha|chart=Hot 100}}
 +
 +
This template is normally used within citations, i.e.
 +
 +
*<nowiki><ref>{{cite web |url={{BillboardURLbyName|artist=Jennifer Lopez|chart=Hot 100}}|title=Jennifer Lopez Album & Song Chart History|work=Billboard|publisher=Prometheus Global Media|accessdate=June 10, 2011}}</ref></nowiki><ref>{{cite web |url={{BillboardURLbyName|artist=Jennifer Lopez|chart=Hot 100}}|title=Jennifer Lopez Album & Song Chart History|work=Billboard|publisher=Prometheus Global Media|accessdate=June 10, 2011}}</ref>
 +
*<nowiki><ref>[{{BillboardURLbyName|artist=Jennifer Lopez|chart=Hot 100}} Jennifer Lopez Album & Song Chart History]</ref></nowiki><ref>[{{BillboardURLbyName|artist=Jennifer Lopez|chart=Hot 100}} Jennifer Lopez Album & Song Chart History]</ref>
 +
 +
{{reflist}}
 +
 
== See also ==
 
== See also ==
  

Revision as of 15:40, 7 February 2013

Usage

This template returns the URL for the page on the Billboard site showing a given artist's performance on a specific chart. For example, {{BillboardURLbyName|artist=Shakira|chart=Hot 100}} will generate https://www.billboard.com/music/shakira/chart-history/hot-100. The chart name mapping is documented at {{BillboardChartNum}}. The artist name must match the one used on the Billboard site precisely: no allowances are made for cases like "&" vs. "and", and Billboard is extremely inconsistent about the use of a leading "The" in a band's name.

The Billboard name may not match Wikipedia's naming: for example, an article about a song by Kesha needs to use {{BillboardURLbyName|artist=Ke$ha|chart=Hot 100}}, because Billboard uses "Ke$ha" for the artist's name. That generates https://www.billboard.com/music/ke$ha/chart-history/hot-100, while {{BillboardURLbyName|artist=Kesha|chart=Hot 100}} will generate https://www.billboard.com/music/kesha/chart-history/hot-100

This template is normally used within citations, i.e.

  • <ref>{{cite web |url={{BillboardURLbyName|artist=Jennifer Lopez|chart=Hot 100}}|title=Jennifer Lopez Album & Song Chart History|work=Billboard|publisher=Prometheus Global Media|accessdate=June 10, 2011}}</ref>[1]
  • <ref>[{{BillboardURLbyName|artist=Jennifer Lopez|chart=Hot 100}} Jennifer Lopez Album & Song Chart History]</ref>[2]
  1. "Jennifer Lopez Album & Song Chart History". Billboard. Prometheus Global Media. Retrieved June 10, 2011.
  2. Jennifer Lopez Album & Song Chart History

See also