قالب:Chart/doc

Usage

This template implements Wikipedia's #chart extension in a user-friendly manner. In articles and most other places, it should always be used instead of #chart, so that editors are provided with a link (under the chart) to the source data, in case they need to edit it.

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
}}

خطأ في الرسم البياني: يجب تحديد وسيط data.

other data source and border

{{Chart
| chart      = Monthly stream discharges.chart
| data       = GRDC-1530100 monthly discharge.tab
| border     = 1
}}

خطأ في الرسم البياني: تعذر تحميل Data:GRDC-1530100 monthly discharge.tab

thumbnail, caption, and source

{{Chart
| thumb
| caption = Autobahn network length.
| source  = Autobahn network length.tab
| chart   = Autobahn network length.Line.chart
}}

خطأ في الرسم البياني: تعذر تحميل Data:thumb.tab


aligned and fixed width

{{Chart
| chart      = Autobahn network length.Line.chart
| align      = right
| width      = 400px
}}

خطأ في الرسم البياني: يجب تحديد وسيط data.

aligned and fixed width thumbnail

{{Chart
| thumb
| chart      = Autobahn network length.Line.chart
| align      = left
| width      = 400px
}}

خطأ في الرسم البياني: تعذر تحميل Data:thumb.tab


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
}}

خطأ في الرسم البياني: يجب تحديد وسيط data.

TemplateData

This is the بيانات القالب documentation for this template used by المحرر المرئي وأدوات أخرى.

See the monthly error report for this template.

TemplateData for Chart

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

وسائط القالب

وسيطوصفنوعحالة
Display as thumbnailthumb 1

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

القيم المقترحة
thumb
مثال
thumb
سطراختياري
Alignmentalign 2

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

القيم المقترحة
left right center
سطراختياري
Widthwidth 3

Width in pixels or percent

القيم المقترحة
400px 600px 50% 100%
سطراختياري
Captioncaption 4

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

مثال
This is a chart caption.
نصاختياري
Chart definitionchart definition

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

مثال
Example.chart
سطرمطلوب
Chart datadata

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

مثال
Example.tab
سطرمقترح
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.tab
سطرمقترح
Borderborder

Set to "1" to enable a border

القيم المقترحة
1
مثال
1
بوليانياختياري
CSS stylesstyle

Additional CSS styles (beyond width and border)

مثال
border-width:5px;
سطراختياري
Hide sourcehideSource

Set to any value to disable linking to the source

القيم المقترحة
1
مثال
1
بوليانياختياري

Tracking categories

See also