Шаблон:Singlechart

Поделись знанием:
Перейти к: навигация, поиск
[просмотр] [править] [история] [обновить]
 Документация

Шаблон Singleschart взят из английской Википедии для удобства создания и перевода статей о музыкальных релизах (синглы).

При помощи шаблона генерируется таблица музыкальных чартов с указанием чарта, ссылки на релиз, мечта в чарте; сноска на источник (чарт) появляется в разделе Примечания.

В отличие от английской весрии изменено оформление сносок, вместо английских названий стран даются флаги.

Для облегчённой версии - см {{singlechart2}}


Использование

Шаблон используется для отображения позиции в определённом чарте музыкального сингла, с автоматическим формированием ссылки на источник. Шаблоны должн быть вставлены в таблицу.

Заготовка для копирования (все параметры)
{{singlechart |chart= |peak= |song= |songid= |artist= |artistid= |url= |urltitle= |date= |year= |week= |note= |publishdate= |accessdate= |refname= |rowheader=}}

для любых чартов обязательными являются параметры назания чарта и места. Остальные параметры имогут являться обязательными в зависимости от того или иного чарта.

Рекомендуется всегда заполнять параметры "song=" и "artist=". Параметр artist используется по умолчанию для именования сноски, если она используется где-то ещё в статье.

rowheader по умолчанию отображается как false. Если поставить true, названия чартов будут заголовками.

Fields

The parameters publishdate, accessdate, and refname are optional. Whether the other parameters are required or not depend on the chart being referenced. See the tables in the Support section below.

  • chart (or first parameter, without name): Chart identifier. Must be one of the options listed under Chart ID in the tables of the Support section below. Often named as a country or nationality (e.g., Spain or Spanish), but sometimes named for a specific chart (e.g., Billboardjapanhot100). Some charts allow more than one identifier; the results produced are identical.
  • peak (or second parameter, without name): The number you found to be the peak postion achieved by the single on the specific chart to date. If the song has not appeared on the chart (due to low popularity or lack of release in a country), you can enter a dash (–, not a hyphen -). Usually, it's better to omit the template completely.
  • song: Title of the single. Made-up words, slang, "hip" spellings, tricky punctuation, etc., can make this parameter difficult to correctly determine. Make sure to check the resulting reference URL (Preview) before saving the definitive version of the article.
  • songid: Numeric identifier used by some chart listings (see UKchartstats below). Determined by performing a search at the chart listings' website for the single (or performer or album, then following a link through to the single's page). The songid can be found in the Web address (URL) by inspection. For example, the page for "Genie In A Bottle" at www.chartstats.com has the URL www.chartstats.com/songinfo.php?id=27705, so the songid to use is 27705.
  • artist: Name of the single's perfomer. As for the song parameter, odd spellings and clever stylings (e.g., Ke$ha) can make this parameter difficult to correctly determine. The German chart, for example, typically requires names in lastname,firstname format. Make sure to check the resulting reference URL (Preview) before saving the definitive version of the article. Also note that this parameter is required for all charts where you are reusing the references using the default naming (see Output section below). If you use the refname parameter, however, artist may not be absolutely necessary.
  • artistid: Numeric identifier used by some chart listings (see Billboard charts). Determined by performing a search at the chart listings' website for the artist (or single or album, then following a link through to the performer's page). The artistid can be found in the Web address (URL) by inspection. For example, the page for Eric Clapton at www.billboard.com has the URL www.billboard.com/#/artist/eric-clapton/50403, so the artistid to use is 50403.
  • url: The URL of the reference where you found the song's peak position for the chart. Used only for particular charts (see Support tables) where there is no indexing system, not necessary (or even used) for others.
  • urltitle: The title of the page for the reference where you found the song's peak position for the chart. Used in combination with the url parameter, and only for particular charts (see Support tables) where there is no indexing system, not necessary (or even used) for others.
  • date: Date of the chart in the format YYYYMMDD, an 8-digit number indicating year (Y), month (M) and day (D). Used only for certain charts (see Frenchdigital below); not necessary (or even used) for others. This date is used solely to create the reference URL to the download chart, and is not displayed textually in the references list. For general citation of any chart's publication date, use the optional publishdate parameter.
  • year: Four-digit year indicating the year being reported by the chart. Used in combination with the week parameter and only for certain charts; not necessary (or even used) for others. Not necessarily the same as the publication date referred to by publishdate.
  • week: Two-digit week indicating the week being reported by the chart. Week is a number from 01 to 53, with a leading 0 for weeks 01-09 (some charts do not require the leading zero; consult Support tables below). Used in combination with the year parameter and only for certain charts; not necessary (or even used) for others. Not necessarily related to the publication date referred to by publishdate.
  • note: For adding a note about a particular version of a song, e.g., note=extended dance mix, or {{singlechart|Australia|1|song=I'm the Urban Spaceman|artist=The Bonzo Dog Doo Dah Band|note=uncensored version}}.
  • publishdate: Date of publication of the reference generated by the template, in the same format as other dates in citations in the same article. Optional parameter.
  • accessdate: Date that the reference generated by the template was retrieved to determine peak position. Should be in the same format as other dates in citations in the same article. Optional parameter.
  • refname: Enables you to specify a name for the reference generated by the template. If no value is provided for refname the default reference name (in the form sc_Chartid_artist, see Output below) will be used. A reference with a name can be reused for claims elsewhere in the article. Optional parameter.

Output

The template's expansion results in two output items:

  • a row of output for a two-cell table row, and
  • a reference

The output row includes the piping character to divide the left cell from the right cell. The left cell includes the country and/or chart name, with wikilinks to the chart article(s), as well as the reference note[n] as if it were enclosed in <ref></ref> tags. Any note included with the note parameter is shown in the left cell as well. The right cell contains the peak position number, including the code to horizontally center the number in the table cell.

The citation generated by this template will appear in the list in place of <References/> or the {{reflist}} template, like any other references. The reference produced will be given a name in the form "sc_Chartid_artist" by default, i.e., if the article uses

{{singlechart|Australia|1|song=I'm the Urban Spaceman|artist=Bonzo Dog Doo Dah Band|note=album version}}

then the citation could be used to support other statements on the page using a reference as in

...some fact supported by the same source.<ref name="sc_Australia_Bonzo Dog Doo Dah Band"/>

Alternatively, the name can be overridden using the refname parameter, i.e.,

{{singlechart|Australia|1|song=I'm the Urban Spaceman|artist=Bonzo Dog Doo Dah Band|refname=bonzosinoz}}

which could then be used as a citation to support other statements on the page using a reference as in

...some fact supported by the same source.<ref name=bonzosinoz/>

Note that the refname parameter does not require the use of quotation marks, but names with spaces in them will necessitate quotation marks in the name parameter of <ref> (for example, you would need to use <ref name="bonzos in oz"/> if you used spaces in the name).

Примеры использования

Пример Код Итог (с <references/>)
Пример 1
{{singlechart
  |Australia
  |18
  |artist=Shakira
  |song=She Wolf}}
ARIA[1] 18
  1. [www.australian-charts.com/showitem.asp?interpret=Shakira&titel=She+Wolf&cat=s Australian-charts.com — Shakira — She Wolf]. ARIA Top 50 Singles. Hung Medien.
Пример 2
 {{singlechart
  |Billboardcanadianhot100
  |5
  |artist=Shakira
  |artistid=147604}}
Canadian Hot 100[1] 5
  1. [www.billboard.com/artist/278867/Shakira/chart?f=793 Shakira Album & Song Chart History] Canadian Hot 100 for Shakira.
Пример 3
 {{singlechart
  |Frenchdigital
  |4
  |artist=Shakira
  |song=She Wolf
  |date=20091017}}
SNEP Download Chart[1] 4
  1. [lescharts.com/weekchart.asp?cat=si&date=20091017 lescharts.com - Les charts français]  (фр.). French Singles Chart. Hung Medien.
Пример 4
 {{singlechart
  |Italy
  |3
  |artist=Shakira
  |song=Loba
  |note="Loba" (Spanish version)}}
|-
{{singlechart
  |Italy
  |11
  |artist=Shakira
  |song=She Wolf
  |note="She Wolf" (English version)}}
FIMI[1]
"Loba" (Spanish version)
3
FIMI[1]
"She Wolf" (English version)
11
  1. 1 2 [www.italiancharts.com/showitem.asp?interpret=Shakira&titel=Loba&cat=s Italiancharts.com — Shakira — Loba]  (итал.). Italian Singles Chart. Hung Medien. Ошибка в сносках?: Неверный тег <ref>: название «sc_Italy_Shakira» определено несколько раз для различного содержимого
Пример 5
{| class="wikitable sortable" border="1"
|-
! Chart (2009)
! Peak<br />position
|-
{{singlechart |Flanders|16
  |artist=Shakira |song=She Wolf}}
|-
{{singlechart |Wallonia|5
  |artist=Shakira |song=She Wolf}}
|-
|[[Brasil Hot 100 Airplay]]<ref>
"Brazil Hot 100 Airplay" (in Portuguese).
Billboard Brasil (Brazil: bpp) (2): 79. November 2009. 
ISSN 977-217605400-2</ref>
| style="text-align:center;"|1
|-
{{singlechart |Hungary|5|year=2009|week=14}}
|-
{{singlechart |Ireland|2 |year=2009 |week=40}}
|-
{{singlechart |Billboardjapanhot100|9
  |artist=Shakira |artistid=147604}}
|-
{{singlechart |UKchartstats|4
  |artist=Shakira|song=She Wolf|songid=34525}}
|}
Chart (2009) Peak
position
Ultratop Flanders[1] 16
Ultratop Wallonia[2] 5
Brasil Hot 100 Airplay[3] 1
Rádiós Top 40[4] 5
IRMA[5] 2
Japan Hot 100[6] 9
UK Singles Chart[7] 4
  1. [www.ultratop.be/nl/showitem.asp?interpret=Shakira&titel=She+Wolf&cat=s Ultratop.be — Shakira — She Wolf]  (нид.). Ultratop 50. ULTRATOP & Hung Medien / hitparade.ch.
  2. [www.ultratop.be/fr/showitem.asp?interpret=Shakira&titel=She+Wolf&cat=s Ultratop.be — Shakira — She Wolf]  (фр.). Ultratop 40. ULTRATOP & Hung Medien / hitparade.ch.
  3. "Brazil Hot 100 Airplay" (in Portuguese). Billboard Brasil (Brazil: bpp) (2): 79. November 2009. ISSN 977-217605400-2
  4. [www.mahasz.hu/?menu=slagerlistak&menu2=archivum&lista=radios&ev=2009&het=14&submit_=Keres%E9s Archívum — Slágerlisták — MAHASZ — Magyar Hanglemezkiadók Szövetsége]  (венг.). Rádiós Top 40 játszási lista. Magyar Hanglemezkiadók Szövetsége.
  5. "[www.chart-track.co.uk/index.jsp?c=p%2Fmusicvideo%2Fmusic%2Farchive%2Findex_test.jsp&ct=240001&arch=t&lyr=2009&year=2009&week=40 Chart Track: Week 40, 2009"]. Irish Singles Chart.
  6. [www.billboard.com/artist/278867/Shakira/chart?f=848 Shakira Album & Song Chart History] Japan Hot 100 for Shakira.
  7. [www.officialcharts.com/artist/_/Shakira Shakira: Artist Chart History] Official Charts Company.

Сообщения об ошибках

Сообщения об ошибках будут выглядеть так:

Rádiós Top 40YEAR AND WEEK MANDATORY FIELDS FOR HUNGARIAN CHARTS 19


Международные чарты

ID чарта Чарт Сайт-источник Необходимые параметры Примечания
Australia
Australian
ARIA www.australian-charts.com artist
song
Australiapandora ARIA pandora.nla.gov.au url
urltitle
artist*
Australiaurban ARIA pandora.nla.gov.au url
urltitle
artist*
Austria
Austrian
Ö3 Austria Top 40 www.austriancharts.at artist
song
Belgium (Wallonia)
Wallonia
Ultratop www.ultratop.be artist
song
Belgium (Flanders)
Belgium (Vlanders)
Flanders
Vlanders
Ultratop www.ultratop.be artist
song
Bulgaria
Bulgarian
IFPI at bamp-br.org www.bamp-br.org url
urltitle
artist*
urltitle должен совпадать с заголовком страницы.
Czech Republic IFPI at www.ifpicr.cz www.ifpicr.cz year
week
artist*
Year и week - необходимые параметры. Week - число 01 to 53, (с 0 для 01-09).
Danish
Denmark
Hitlisten www.danishcharts.com artist
song
www.hitlisten.nu artist
song
week
year
Denmark 2007 Hitlisten www.hitlisten.nu artist
song
week
year
Danish Airplay
Denmark Airplay
Hitlisten www.hitlisten.nu artist
song
week
year
Dutch100 Mega Single Top 100 www.dutchcharts.nl artist
song
Dutch40 Dutch Top 40 www.top40.nl artist
song
year
week
artist*
Year и week необходимые параметры. Week - номер от 1 to 53
Finnish
Finland
YLE www.finnishcharts.com artist
song
French
France
SNEP www.lescharts.com artist
song
Frenchdigital SNEP www.lescharts.com artist
song
date
date - 8-значное число YYYYMMDD
German
Germany
Media Control Charts www.musicline.de artist
song
Для artist - порядок фамилия, имя.
Hungary
Hungarian
Mahasz
(Rádiós Top 40)
www.mahasz.hu artist
song
year
week
Hungarytop10 Mahasz
(Single Top 10)
www.mahasz.hu artist
song
year
week
Hungarydance Mahasz
(Dance Top 40)
www.mahasz.hu artist
song
year
week
Ireland
Irish
IRMA www.chart-track.co.uk year
week
artist*
Параметр week - число от 1 to 53.
Italian
Italy
FIMI www.italiancharts.com artist
song
New Zealand RIANZ www.charts.org.nz artist
song
Norwegian
Norway
VG-lista www.norwegiancharts.com artist
song
Когда не вводятся параметры year и week, (требуются artist и song) ссылка будет вести на www.norwegiancharts.com.
lista.vg.no/ artist
song
week
year
Когда вводятся параметры year и week, ссылка будет вести на lista.vg.no/.
Scotland Official Charts Company www.officialchartcompany.com date
artist
song
Дата в формате yyyy-mm-dd
Slovakia
Slovakian
IFPI at www.ifpicr.cz www.ifpicr.cz year
week
artist*
Year и week - год и неделя определяются по тому году, когда песня вошла в чарт. Week - число от 01 до 53, ( с добавлением 0 для 01-09). Неделя необходима для показа нужного чарта.
Spain
Spanish
PROMUSICAE www.spanishcharts.com artist
song
Sweden
Swedish
Sverigetopplistan www.swedishcharts.com artist
song
Swiss
Switzerland
Schweizer Hitparade www.swisscharts.com artist
song
UK
United Kingdom
Official Charts Company
Main singles chart
www.officialchartcompany.com date
artist
song
Дата в формате yyyy-mm-dd. Из-з ограничений движка Wikimedia, опция "artist search" не может быть использована. Таким образом можно указать позиции 1-40, для 41-100 следует использоать UKchartstats.
UKchartstats Official Charts Company
Main singles chart
www.chartstats.com artist
song
songid
UKdance Official Charts Company
Dance singles chart
www.officialchartcompany.com date
artist
song
Дата в формате yyyy-mm-dd
UKdownload Official Charts Company
Download chart
www.officialchartcompany.com date
artist
song
Дата в формате yyyy-mm-dd
UKindependent
UKindie
Official Charts Company
Independent singles chart
www.officialchartcompany.com date
artist
song
Дата в формате yyyy-mm-dd
UKrandb Official Charts Company
R&B chart
www.officialchartcompany.com date
artist
song
Дата в формате yyyy-mm-dd
Другие международные чарты не поддерживаются шаблоном {{singlechart}} и источники придётся добавлять вручную (см. Бразильский чарт из примера выше).

* Параметр artist нужен для оформления сносок. Можно использовать refname, для того, чтобы использовать этот источник в нескольких местах. Использование параметров song и title настоятельно рекомендуется.

Чарты Billboard

Billboard требуют имя музыканта или название группы и id. Эти данные можно найти через поиск на www.billboard.com. Например Katy Perry на www.billboard.com - www.billboard.com/#/artist/katy-perry/958673 . 958673 - id Katy Perry. Это и есть параметр artistid в шаблоне. Например,

  • {{singlechart|Billboardhot100|1|artist=Katy Perry|artistid=958673}}ставит Кэти Перри на 1 место чарта Billboard Hot 100.
ID чарта Чарт Сайт-источник Необходимые параметры Примечания
Billboardcanadianhot100
Canada
Canadian Hot 100 www.billboard.com artist
artistid
Billboardeuropeanhot100 European Hot 100 Singles www.billboard.com artist
artistid
Billboardjapanhot100 Japan Hot 100 www.billboard.com artist
artistid
Billboardadultcontemporary Adult Contemporary www.billboard.com artist
artistid
Billboardalternativesongs Alternative Songs www.billboard.com artist
artistid
Billboardhot100 Billboard Hot 100 www.billboard.com artist
artistid
Billboardadultpopsongs Adult Top 40 www.billboard.com artist
artistid
Billboardcountrysongs Hot Country Songs www.billboard.com artist
artistid
Billboarddanceclubplay Hot Dance Club Songs www.billboard.com artist
artistid
Billboarddigitalsongs Hot Digital Songs www.billboard.com artist
artistid
Billboardlatinpopsongs Latin Pop Airplay www.billboard.com artist
artistid
Billboardregionalmexican Latin Regional Mexican Airplay www.billboard.com artist
artistid
Billboardlatintropical
Billboardtropicalsongs
Latin Tropical Airplay www.billboard.com artist
artistid
До 2009 чартов нет, см. Allmusic.
Billboardlatinsongs Hot Latin Songs www.billboard.com artist
artistid
Billboardpopsongs Mainstream Top 40 (Pop Songs) www.billboard.com artist
artistid
Billboardrandbhiphop Hot R&B/Hip-Hop Songs www.billboard.com artist
artistid
Billboardradiosongs Hot 100 Airplay www.billboard.com artist
artistid
Billboardrapsongs Rap Songs www.billboard.com artist
artistid
Другие чарты Billboard пока не включены в {{singlechart}} и источники придётся добавлять вручную (см. Бразильский чарт из примера выше).

Примеры таблиц чартов

Таблицы с другими данными

Пример таблицы с добалением {{singlechart}}:

{| class="wikitable sortable" border="1"
|-
! Чарт
! Позиция
|-
| row 1, cell 1
| row 1, cell 2
|-
| row 2, cell 1
| row 2, cell 2
|-
 {{singlechart|Australia|6|song=I'm the Urban Spaceman|artist=Bonzo Dog Doo Dah Band|note=Happy Meal edition}}
|-
 {{singlechart|Belgium (Wallonia)|4|song=I'm the Urban Spaceman|artist=Bonzo Dog Doo Dah Band}}
|}

<references/>

будет ыглядеть как:

Чарт Позиция
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
ARIA[1]
Happy Meal edition
6
Ultratop Wallonia[2] 4
  1. [www.australian-charts.com/showitem.asp?interpret=Bonzo+Dog+Doo+Dah+Band&titel=I%27m+the+Urban+Spaceman&cat=s Australian-charts.com — Bonzo Dog Doo Dah Band — I'm the Urban Spaceman]. ARIA Top 50 Singles. Hung Medien.
  2. [www.ultratop.be/fr/showitem.asp?interpret=Bonzo+Dog+Doo+Dah+Band&titel=I%27m+the+Urban+Spaceman&cat=s Ultratop.be — Bonzo Dog Doo Dah Band — I'm the Urban Spaceman]  (фр.). Ultratop 40. ULTRATOP & Hung Medien / hitparade.ch.

Пример с реальными данными

Пример взят из статьи «en:Doesn't Mean Anything» (песня Алишии Кис).

{|class="wikitable sortable"
|-
!Chart (2009)
!Peak<br />position
|-
{{singlechart|Australia|96|artist=Alicia Keys|song=Doesn't Mean Anything}}
|-
{{singlechart|Billboardcanadianhot100|66|artist=Alicia Keys|artistid=433721}}
|-
{{singlechart|Czech Republic|31|artist=Alicia Keys|song=Doesn't Mean Anything|year=2010|week=01}}
|-
{{singlechart|Billboardeuropeanhot100|10|artist=Alicia Keys|artistid=433721}}
|-
{{singlechart|Germany|8|artist=Keys,Alicia|song=Doesn't Mean Anything|note=Angela Merkel rap edition}}
|-
{{singlechart|Billboardjapanhot100|3|artist=Alicia Keys|artistid=433721}}
|-
{{singlechart|Dutch100|43|artist=Alicia Keys|song=Doesn't Mean Anything|accessdate=2010-02-28}}
|-
{{singlechart|New Zealand|22|artist=Alicia Keys|song=Doesn't Mean Anything}}
|-
{{singlechart|Slovakia|31|artist=Alicia Keys|song=Doesn't Mean Anything|week=52|year=2009}}
|-
{{singlechart|UKchartstats|8|artist=Alicia Keys|song=Doesn't Mean Anything|songid=34669}}
|-
{{singlechart|Billboardhot100|60|artist=Alicia Keys|artistid=433721}}
|-
{{singlechart|Billboardrandbhiphop|14|artist=Alicia Keys|artistid=433721}}
|}

<references/>

будет выглядеть как:

Чарт (2009) Лучший
результат
ARIA[1] 96
Canadian Hot 100[2] 66
IFPI[3] 31
European Hot 100 Singles[4] 10
Media Control AG[5]
Angela Merkel rap edition
8
Japan Hot 100[6] 3
Mega Single Top 100[7] 43
RIANZ[8] 22
IFPI[9] 31
UK Singles Chart[10] 8
Billboard Hot 100[11] 60
Hot R&B/Hip-Hop Songs (Billboard)[12] 14
  1. [www.australian-charts.com/showitem.asp?interpret=Alicia+Keys&titel=Doesn%27t+Mean+Anything&cat=s Australian-charts.com — Alicia Keys — Doesn't Mean Anything]. ARIA Top 50 Singles. Hung Medien.
  2. [www.billboard.com/artist/278600/Alicia+Keys/chart?f=793 Alicia Keys Album & Song Chart History] Canadian Hot 100 for Alicia Keys.
  3. [www.ifpicr.cz/hitparada/index.php?hitp=R ČNS IFPI]  (чешск.). Hitparáda — RADIO TOP100 Oficiální. IFPI Czech Republic. Примечание: вставьте в строку поиска 201001.
  4. [www.billboard.com/artist/278600/Alicia+Keys/chart?f=349 Alicia Keys Album & Song Chart History] European Hot 100 for Alicia Keys.
  5. [musicline.de/de/chartverfolgung_summary/title/Keys%2CAlicia/Doesn%27t+Mean+Anything/single Musicline.de — Chartverfolgung — Keys,Alicia — Doesn't Mean Anything]  (нем.). Media Control Charts. PhonoNet GmbH.
  6. [www.billboard.com/artist/278600/Alicia+Keys/chart?f=848 Alicia Keys Album & Song Chart History] Japan Hot 100 for Alicia Keys.
  7. [www.dutchcharts.nl/showitem.asp?interpret=Alicia+Keys&titel=Doesn%27t+Mean+Anything&cat=s Dutchcharts.nl — Alicia Keys — Doesn't Mean Anything]  (нид.). Mega Single Top 100. Hung Medien / hitparade.ch. Проверено 2010-02-28.
  8. [www.charts.org.nz/showitem.asp?interpret=Alicia+Keys&titel=Doesn%27t+Mean+Anything&cat=s Charts.org.nz — Alicia Keys — Doesn't Mean Anything]. Top 40 Singles. Hung Medien.
  9. [www.ifpicr.cz/hitparadask/index.php?hitp=R SNS IFPI]  (слов.). Hitparáda — RADIO TOP100 Oficiálna. IFPI Czech Republic. Примечание: вставьте в строку поиска 200952.
  10. [www.officialcharts.com/artist/_/Alicia%20Keys Alicia Keys: Artist Chart History] Official Charts Company.
  11. [www.billboard.com/artist/278600/Alicia+Keys/chart?f=379 Alicia Keys Album & Song Chart History] Billboard Hot 100 for Alicia Keys.
  12. [www.billboard.com/artist/278600/Alicia+Keys/chart?f=367 Alicia Keys Album & Song Chart History] Billboard R&B/Hip-Hop Songs for Alicia Keys.

Во избежание поломок страниц, использующих данный шаблон, желательно экспериментировать в своём личном пространстве.