Template:Chart table top

From blackwiki
Revision as of 17:36, 7 December 2019 by imported>Philroc (Created page with '{{#ifeq:{{yesno|{{{embed|}}}}} |yes |{{!}}- |{{(}}{{!}} class="wikitable sortable plainrowheaders" style="text-align:center;"}} |- !scope="col"| Chart (<includeo...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Chart () Position
Template documentation[view] [edit] [history] [purge]

Generates table headers for chart listings on single and album articles. Designed to be used 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 charts listed were made.
  • |weekly=: Set to true or yes if the charts being 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
  {{Chart table top|1980|weekly=true}}
  {{single chart|Canadatopsingles|15|chartid=7835a|rowheader=true}}
  |-
  {{single chart|West Germany|46|artist=Pink Floyd|song=Run Like Hell|songid=38317|rowheader=true}}
  |-
  {{single chart|New Zealand|30|artist=Pink Floyd|song=Run Like Hell|rowheader=true}}
  |-
  {{single chart|Sweden|18|artist=Pink Floyd|song=Run Like Hell|rowheader=true}}
  |-
  {{single chart|Billboardhot100|53|artist=Pink Floyd|rowheader=true}}
  |-
  |}
Template:Single chartTemplate:Single chartTemplate:Single chartTemplate:Single chartTemplate:Single chart
Chart (1980) Peak
position