Difference between revisions of "Template:BillboardURLbyName"
imported>Trappist the monk m (noinclude around TfM notice because that notice breaks cs1|2 citations when this template used in |url=;) |
imported>Jo-Jo Eumerus (Wikipedia:Templates for discussion/Log/2019 April 19#Template:BillboardURL closed as merge (XFDcloser)) |
||
| Line 1: | Line 1: | ||
| − | + | <includeonly>https://www.billboard.com/music/{{#invoke:WLink|ansiPercent|{{#invoke:String|replace|{{#invoke:String2|lower|{{{artist}}}}}|&|%26}}|space=-}}{{#if:{{{chart|}}} | |
| − | |||
|/chart-history/{{#ifeq:{{{chart}}}|all||{{#invoke:WLink|ansiPercent|{{#invoke:String|replace|{{#invoke:String2|lower|{{{chart}}}}}|&|%26}}|space=-}}}} | |/chart-history/{{#ifeq:{{{chart}}}|all||{{#invoke:WLink|ansiPercent|{{#invoke:String|replace|{{#invoke:String2|lower|{{{chart}}}}}|&|%26}}|space=-}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:09, 6 May 2019
This template returns a billboard.com URL for an artist's history on a particular chart.
Contents
Examples
Script error: No such module "aligned table".
Usage
This template is normally used within citations, e.g.
| Markup | Renders as |
|---|---|
It reached no. 2 on the Billboard Modern Rock Tracks chart.<ref>{{cite web | url={{BillboardURLbyName|artist=the breeders|chart=alternative songs}} | title=The Breeders Chart History | accessdate=2007-07-31 | work=[[Billboard (magazine)|Billboard]]}}</ref>
|
It reached no. 2 on the Billboard Alternative Songs chart.[1] |
- ↑ "The Breeders Chart History". Billboard. Retrieved 2007-07-31.
Notes
The artist name used by Billboard may not match Wikipedia's naming. Be especially mindful of artists whose names contain special characters. For example, an article about a song by P!nk needs to use {{BillboardURLbyName|artist=pnk|chart=Hot 100}} to match Billboard's url scheme. Billboard is also inconsistent about the use of a leading "The" in a band's name. For this reason, it's usually a good idea to test any urls generated by this template before adding them to an article.
TemplateData
Generates billboard.com URLs for the chart history of a given artist.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Artist name | artist | The name of the artist, as it appears in billboard.com URLs
| String | required |
| Chart name | chart | The name of the Billboard chart
| String | suggested |
| Bio | bio | Deprecated. No effect. | String | deprecated |
See also
| The above documentation is transcluded from Template:BillboardURLbyName/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |