Difference between revisions of "Template:BillboardURLbyName/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(another one)
imported>MSGJ
Line 4: Line 4:
 
This template returns the URL for the page about the artist on the Billboard site.  
 
This template returns the URL for the page about the artist on the Billboard site.  
  
If called with the bio flag set to true, it will create a link to the artist's biography page, i.e. {{tlx|BillboardURLbyName|artist=Diddy|bio{{=}}true}} yields {{BillboardURLbyName|artist=Diddy|bio=true}}.
+
If called with the bio flag set to true, it will create a link to the artist's biography page, i.e. {{tlx|1=BillboardURLbyName|2=artist=Diddy|3=bio=true}} yields {{BillboardURLbyName|artist=Diddy|bio=true}}.
  
 
If the bio flag is not set, the chart paramenter will generate a link to the page showing the  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 is case insensitive, but, aside from that, 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.  
 
If the bio flag is not set, the chart paramenter will generate a link to the page showing the  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 is case insensitive, but, aside from that, 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.  

Revision as of 14:30, 11 January 2018

Usage

This template returns the URL for the page about the artist on the Billboard site.

If called with the bio flag set to true, it will create a link to the artist's biography page, i.e. {{BillboardURLbyName|artist=Diddy|bio=true}} yields https://www.billboard.com/music/diddy.

If the bio flag is not set, the chart paramenter will generate a link to the page showing the 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 is case insensitive, but, aside from that, 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.

If the chart is specified as "all", the link will be to the main chart page for the artist, using Billboards default "main chart". All charts are selectable from there.

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. Because the artist name is case insensitive, other strings that will work include "KE$HA", "ke$ha" and even "kE$hA".

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|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. Retrieved June 10, 2011.
  2. Jennifer Lopez Album & Song Chart History

Maintenance categories

This template will automatically categorize articles with invalid artist names in Category:Articles using Billboard ID with invalid artist. An invalid artist name is one that the template is unable to find in the {{BillboardID}} subtemplate corresponding to the first letter in that artist's name.

Articles with invalid chart names are placed in Category:Articles using BillboardChartNum with invalid chart name.

See also