Utilisation
Syntaxe
Simple
{{Chart|chart= }}
Complète
{{Chart
| chart =
| data =
| thumb =
| align =
| width =
| border =
| style =
| caption =
| source =
}}
Paramètres
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
Largeur complète
{{Chart
| chart = Autobahn network length.Line.chart
}}
Autre fichier de données et bordure
{{Chart
| chart = Monthly stream discharges.chart
| data = GRDC-1530100 monthly discharge.tab
| border = 1
}}
thumbnail, légende et source
{{Chart
| thumb
| caption = Autobahn network length.
| source = Autobahn network length.tab
| chart = Autobahn network length.Line.chart
}}
Aligné et largeur fixée
{{Chart
| chart = Autobahn network length.Line.chart
| align = right
| width = 400px
}}
Aligné et fixé avec thumbnail
{{Chart
| thumb
| chart = Autobahn network length.Line.chart
| align = left
| width = 400px
}}
Centré, largeur fixée, bordure, légende et source
{{Chart
| chart = Autobahn network length.Line.chart
| align = center
| width = 400px
| caption = Autobahn network length.
| source = Autobahn network length.tab
}}
La documentation de ce modèle est générée par le modèle {{Documentation}}.
Elle est incluse depuis sa sous-page de documentation. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (créer) et la page de test (créer).
Voir les statistiques d'utilisation du modèle sur l'outil wstat.