Template:Chart table top/doc

From English Wikipedia @ Freddythechick

Generates table headers for chart listings on single and album articles. Designed for use with either {{Single chart}} or {{Album chart}}.

Usage

{{Chart table top|1|weekly=|embed=}}

Parameters

All parameters are optional except |1=.

  • |1= (unnamed): Year(s) during which the chart(s) listed were made.
  • |weekly=: Set to true or yes if the chart(s) listed are weekly. Replaces the title of the second column with "Peak position".
  • |embed=: If set to true or yes, allows the template to be used as part of another chart table. This is sometimes done when listing charts from more than one year.

Example usage

Chart information taken from Run Like Hell.

Code Result
<syntaxhighlight lang="wikitext">
Chart (1980) Peak
position
Canada Top Singles (RPM)[1] 15
West Germany (Official German Charts)[2] 46
New Zealand (Recorded Music NZ)[3] 30
Sweden (Sverigetopplistan)[4] 18
US Billboard Hot 100[5] 53
</syntaxhighlight>
Chart (1980) Peak
position
Canada Top Singles (RPM)[1] 15
West Germany (Official German Charts)[2] 46
New Zealand (Recorded Music NZ)[3] 30
Sweden (Sverigetopplistan)[4] 18
US Billboard Hot 100[5] 53