模板:Chart
外觀
| 本模板使用以下模板樣式: |
注:{{Chart}}曾是系譜圖模板,已於2019年同英維移動至{{Tree chart}}。之後英維將{{Chart}}提刪,但其在中維被保留,故此後很長一段時間其為{{Tree chart}}的重定向。2025年,英維將{{Chart}}重建為圖表模板,如今中維也已同步。故若您想要繪製系譜圖,請使用{{Tree chart}},不要再誤用本模板。
Copy templates
Standard
{{Chart|chart=.chart}}
Full
{{Chart
| chart =
| data =
| thumb =
| align =
| width =
| border =
| style =
| caption =
| source =
}}
or
{{Chart|thumb|align|width|caption|chart=.chart|data=.tab|border=|style=|source=.tab}}
Examples
full width
{{Chart
| chart = Autobahn network length.Line.chart
}}
查看圖表定義。
other data source and border
{{Chart
| chart = Monthly stream discharges.chart
| data = GRDC-1530100 monthly discharge.tab
| border = 1
}}
查看源數據。
thumbnail, caption, and source
{{Chart
| thumb
| caption = Autobahn network length.
| source = Autobahn network length.tab
| chart = Autobahn network length.Line.chart
}}
Autobahn network length. 查看源數據。
aligned and fixed width
{{Chart
| chart = Autobahn network length.Line.chart
| align = right
| width = 400px
}}
查看圖表定義。
aligned and fixed width thumbnail
{{Chart
| thumb
| chart = Autobahn network length.Line.chart
| align = left
| width = 400px
}}
查看圖表定義。
centered, fixed width, border, caption and source
{{Chart
| chart = Autobahn network length.Line.chart
| align = center
| width = 400px
| caption = Autobahn network length.
| source = Autobahn network length.tab
}}
Autobahn network length. 查看源數據。
TemplateData
Includes a chart ([[Help:Charts]]) with source attribution and allows adjusting alignment, width, and border.
| 參數 | 描述 | 類型 | 狀態 | |
|---|---|---|---|---|
| Display as thumbnail | thumb 1 | Set to any value to display in a gray box like an image thumbnail
| 行 | 非必填 |
| Alignment | align 2 | Chart alignment, either "left", "right", or "center"
| 行 | 非必填 |
| Width | width 3 | Width in pixels or percent
| 行 | 非必填 |
| Caption | caption 4 | Caption to display before the source information. Make sure to use ending punctuation.
| 字串 | 非必填 |
| Chart definition | chart definition | Chart on Wikimedia Commons, without the "Data:" prefix
| 行 | 必填 |
| Chart data | data | .tab on Wikimedia Commons, without the "Data:" prefix (overrides the specification in the chart definition)
| 行 | 建議 |
| 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".
| 行 | 建議 |
| Border | border | Set to "1" to enable a border
| 布林值 | 非必填 |
| CSS styles | style | Additional CSS styles (beyond width and border)
| 行 | 非必填 |
| Hide source | hideSource | Set to any value to disable linking to the source
| 布林值 | 非必填 |