Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Chart

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
CSSThis template usesTemplateStyles:
ChartThis template uses theChart extension with sources fromWikimedia Commons.

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}}
Length in kilometresYear03K6K9K12K15K1932195019851999200620132020ReichsautobahnBundesautobahn (West Germany)Bundesautobahn (Germany)Development of the length of the Reichsautob...

other data source and border

{{Chart| chart= Monthly stream discharges.chart| data= GRDC-1530100 monthly discharge.tab| border= 1}}
Discharge in m³/sMonth0100200300400500JanMarMayJulSepNovMinMeanMaxHydrograph: Monthly discharge

thumbnail, caption, and source

{{Chart| thumb| caption= Autobahn network length.| source= Autobahn network length.tab| chart= Autobahn network length.Line.chart}}
Length in kilometresYear03K6K9K12K15K1932195019851999200620132020ReichsautobahnBundesautobahn (West Germany)Bundesautobahn (Germany)Development of the length of the Reichsautob...
Autobahn network length. Viewsource data.

aligned and fixed width

{{Chart| chart= Autobahn network length.Line.chart| align= right| width= 400px}}
Length in kilometresYear03K6K9K12K15K1932195019851999200620132020ReichsautobahnBundesautobahn (West Germany)Bundesautobahn (Germany)Development of the length of the Reichsautob...

aligned and fixed width thumbnail

{{Chart| thumb| chart= Autobahn network length.Line.chart| align= left| width= 400px}}
Length in kilometresYear03K6K9K12K15K1932195019851999200620132020ReichsautobahnBundesautobahn (West Germany)Bundesautobahn (Germany)Development of the length of the Reichsautob...

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}}
Length in kilometresYear03K6K9K12K15K1932195019851999200620132020ReichsautobahnBundesautobahn (West Germany)Bundesautobahn (Germany)Development of the length of the Reichsautob...
Autobahn network length. Viewsource data.

TemplateData

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Chart in articles based on its TemplateData.

TemplateData for Chart

Includes a chart ([[Help:Charts]]) with source attribution and allows adjusting alignment, width, and border.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Display as thumbnailthumb1

Set to any value to display in a gray box like an image thumbnail

Suggested values
thumb
Example
thumb
Lineoptional
Alignmentalign2

Chart alignment, either "left", "right", or "center"

Suggested values
leftrightcenter
Lineoptional
Widthwidth3

Width in pixels or percent

Suggested values
400px600px50%100%
Lineoptional
Captioncaption4

Caption to display before the source information. Make sure to use ending punctuation.

Example
This is a chart caption.
Stringoptional
Chart definitionchartdefinition

Chart on Wikimedia Commons, without the "Data:" prefix

Example
Example.chart
Linerequired
Chart datadata

.tab on Wikimedia Commons, without the "Data:" prefix (overrides the specification in the chart definition)

Example
Example.tab
Linesuggested
Source attributionsource

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".

Example
Example.tab
Linesuggested
Borderborder

Set to "1" to enable a border

Suggested values
1
Example
1
Booleanoptional
CSS stylesstyle

Additional CSS styles (beyond width and border)

Example
border-width:5px;
Lineoptional
Hide sourcehideSource

Set to any value to disable linking to the source

Suggested values
1
Example
1
Booleanoptional

See also

The abovedocumentation istranscluded fromTemplate:Chart/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Chart&oldid=1312515899"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp