Template:ChartDisplay
Appearance
Copy templates
[edit]Standard
{{ChartDisplay|chart=.chart}}
Full
{{ChartDisplay
| chart =
| data =
| thumb =
| align =
| width =
| border =
| style =
| caption =
| source =
}}
or
{{ChartDisplay|thumb|align|width|caption|chart=.chart|data=.tab|border=|style=|source=.tab}}
Examples
[edit]full width
[edit]{{ChartDisplay
| chart = Autobahn network length.Line.chart
}}
See or edit chart definition.
other data source and border
[edit]{{ChartDisplay
| chart = Monthly stream discharges.chart
| data = GRDC-1530100 monthly discharge.tab
| border = 1
}}
See or edit source data.
thumbnail, caption, and source
[edit]{{ChartDisplay
| thumb
| caption = Autobahn network length.
| source = Autobahn network length.tab
| chart = Autobahn network length.Line.chart
}}
Autobahn network length. See or edit source data.
aligned and fixed width
[edit]{{ChartDisplay
| chart = Autobahn network length.Line.chart
| align = right
| width = 400px
}}
See or edit chart definition.
aligned and fixed width thumbnail
[edit]{{ChartDisplay
| thumb
| chart = Autobahn network length.Line.chart
| align = left
| width = 400px
}}
See or edit chart definition.
centered, fixed width, border, caption and source
[edit]{{ChartDisplay
| chart = Autobahn network length.Line.chart
| align = center
| width = 400px
| caption = Autobahn network length.
| source = Autobahn network length.tab
}}
Autobahn network length. See or edit source data.
TemplateData
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ChartDisplay in articles based on its TemplateData.
TemplateData for ChartDisplay
Includes a chart ([[Help:Charts]]) with source attribution and allows adjusting alignment, width, and border.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Display as thumbnail | thumb 1 | Set to any value to display in a gray box like an image thumbnail
| Line | optional |
Alignment | align 2 | Chart alignment, either "left", "right", or "center"
| Line | optional |
Width | width 3 | Width in pixels or percent
| Line | optional |
Caption | caption 4 | Caption to display before the source information. Make sure to use ending punctuation.
| String | optional |
Chart definition | chart definition | Chart on Wikimedia Commons, without the "Data:" prefix
| Line | required |
Chart data | data | .tab on Wikimedia Commons, without the "Data:" prefix (overrides the specification in the chart definition)
| Line | suggested |
Source attribution | source | Source .tab file to be linked at the bottom, without the "Data:" prefix. If not specified, it will fallback to displaying the value of "data" or "chart".
| Line | suggested |
Border | border | Set to "1" to enable a border
| Boolean | optional |
CSS styles | style | Additional CSS styles (beyond width and border)
| Line | optional |
Hide source | hideSource | Set to any value to disable linking to the source
| Boolean | optional |