Modèle:Chart
Apparence
Utilisation
[modifier le code]Syntaxe
[modifier le code]Simple
[modifier le code]{{Chart|chart= }}
Complète
[modifier le code]{{Chart
| chart =
| data =
| thumb =
| align =
| width =
| border =
| style =
| caption =
| source =
}}
Paramètres
[modifier le code]Inclut un graphe avec l'indication de la source et la possibilité d'ajuster l'alignement, la largeur et la bordure.
Paramètre | Description | Type | État | |
---|---|---|---|---|
Display as thumbnail | thumb 1 | Set to any value to display in a gray box like an image thumbnail
| Ligne de texte | facultatif |
Alignment | align 2 | Chart alignment, either "left", "right", or "center"
| Ligne de texte | facultatif |
Width | width 3 | Width in pixels or percent
| Ligne de texte | facultatif |
Caption | caption 4 | Caption to display before the source information. Make sure to use ending punctuation.
| Chaîne | facultatif |
Chart definition | chart definition | Chart on Wikimedia Commons, without the "Data:" prefix
| Ligne de texte | obligatoire |
Chart data | data | .tab on Wikimedia Commons, without the "Data:" prefix (overrides the specification in the chart definition)
| Ligne de texte | suggéré |
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".
| Ligne de texte | suggéré |
Border | border | Set to "1" to enable a border
| Booléen | facultatif |
CSS styles | style | Additional CSS styles (beyond width and border)
| Ligne de texte | facultatif |
Hide source | hideSource | Set to any value to disable linking to the source
| Booléen | facultatif |
Exemples
[modifier le code]Largeur complète
[modifier le code]{{Chart
| chart = Autobahn network length.Line.chart
}}
Voir ou éditer la définition du graphe.
Autre fichier de données et bordure
[modifier le code]{{Chart
| chart = Monthly stream discharges.chart
| data = GRDC-1530100 monthly discharge.tab
| border = 1
}}
Voir ou éditer le jeu de données.
thumbnail, légende et source
[modifier le code]{{Chart
| thumb
| caption = Autobahn network length.
| source = Autobahn network length.tab
| chart = Autobahn network length.Line.chart
}}
Autobahn network length. Voir ou éditer le jeu de données.
Aligné et largeur fixée
[modifier le code]{{Chart
| chart = Autobahn network length.Line.chart
| align = right
| width = 400px
}}
Voir ou éditer la définition du graphe.
Aligné et fixé avec thumbnail
[modifier le code]{{Chart
| thumb
| chart = Autobahn network length.Line.chart
| align = left
| width = 400px
}}
Voir ou éditer la définition du graphe.
Centré, largeur fixée, bordure, légende et source
[modifier le code]{{Chart
| chart = Autobahn network length.Line.chart
| align = center
| width = 400px
| caption = Autobahn network length.
| source = Autobahn network length.tab
}}
Autobahn network length. Voir ou éditer le jeu de données.