Template:Chart/doc: Difference between revisions

Content deleted Content added
use short name
 
(6 intermediate revisions by 3 users not shown)
Line 4:
'''Standard'''
 
{{tlx|ChartDisplayChart|chart{{=}}''.chart''}}
 
'''Full'''
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap;" copy>
{{Chart
{{ChartDisplay
| chart =
| data =
Line 23:
or
 
{{tlx|ChartDisplayChart|''thumb''|''align''|''width''|''caption''|chart{{=}}''.chart''|data{{=}}''.tab''|border{{=}}|style{{=}}|source{{=}}''.tab''}}
 
== Examples ==
=== full width ===
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap; overflow:auto;">
{{Chart
{{ChartDisplay
| chart = Autobahn network length.Line.chart
}}
</syntaxhighlight>
{{Chart
{{ChartDisplay
| chart = Autobahn network length.Line.chart
}}
Line 38:
=== other data source and border ===
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap; overflow:auto;">
{{Chart
{{ChartDisplay
| chart = Monthly stream discharges.chart
| data = GRDC-1530100 monthly discharge.tab
Line 44:
}}
</syntaxhighlight>
{{Chart
{{ChartDisplay
| chart = Monthly stream discharges.chart
| data = GRDC-1530100 monthly discharge.tab
Line 52:
=== thumbnail, caption, and source ===
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap; overflow:auto;">
{{Chart
{{ChartDisplay
| thumb
| caption = Autobahn network length.
Line 59:
}}
</syntaxhighlight>
{{Chart
{{ChartDisplay
| thumb
| caption = Autobahn network length.
Line 70:
=== aligned and fixed width ===
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap; overflow:auto;">
{{Chart
{{ChartDisplay
| chart = Autobahn network length.Line.chart
| align = right
Line 76:
}}
</syntaxhighlight>
{{Chart
{{ChartDisplay
| chart = Autobahn network length.Line.chart
| align = right
Line 84:
=== aligned and fixed width thumbnail ===
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap; overflow:auto;">
{{Chart
{{ChartDisplay
| thumb
| chart = Autobahn network length.Line.chart
Line 91:
}}
</syntaxhighlight>
{{Chart
{{ChartDisplay
| thumb
| chart = Autobahn network length.Line.chart
Line 102:
=== centered, fixed width, border, caption and source ===
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap; overflow:auto;">
{{Chart
{{ChartDisplay
| chart = Autobahn network length.Line.chart
| align = center
Line 110:
}}
</syntaxhighlight>
{{Chart
{{ChartDisplay
| chart = Autobahn network length.Line.chart
| align = center
Line 126:
"data": {
"label": "Chart data",
"description": "Data: .tab on Wikimedia Commons, without the \"Data:\" prefix (overrides the specification in the chart definition)",
"type": "wiki-file-nameline",
"suggested": true,
"example": "Data:Example.tab"
},
"width": {
Line 156:
"source": {
"label": "Source attribution",
"type": "wiki-file-nameline",
"description": "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": "Data:Example.tab",
"suggested": true
},
Line 172:
],
"label": "Chart definition",
"description": "Data: chartChart on Wikimedia Commons, without the \"Data:\" prefix",
"example": "Data:Example.chart",
"type": "wiki-file-nameline",
"required": true
},
Line 183:
"label": "Alignment",
"description": "Chart alignment, either \"left\", \"right\", or \"center\"",
"type": "stringline",
"suggestedvalues": [
"left",
Line 197:
"description": "Set to any value to display in a gray box like an image thumbnail",
"example": "thumb",
"type": "stringline",
"suggestedvalues": [
"thumb"
Line 209:
"description": "Caption to display before the source information. Make sure to use ending punctuation.",
"example": "This is a chart caption.",
"type": "linestring"
},
"hideSource": {
Line 215:
"description": "Set to any value to disable linking to the source",
"example": "1",
"type": "stringboolean",
"suggestedvalues": [
"1"
Line 239:
== See also ==
* [[Help:Charts]]
* {{tl|Image frame}}
 
<includeonly>{{Sandbox other||
[[Category:Chart formatting templates]]
}}</includeonly>