قالب:Graph:Population history/شرح
هذه صفحة توثيق قالب:Graph:Population history الفرعية، لشرح القالب وتصنيفه، وهي لا تدخل في استخدامه. |
هذا القالب يستعمل لوا: |
This graph's main version resides at mediawiki Template:Graph:Population_history. Please make all the changes there and copy it everywhere else (until the copying is automated)
استعمال
[عدل]{{Graph:Population history | debug = | width = | height = | table = | values = | 1 = | filter = | atable = | avalues = | scale = | max = | orient = | color = | interpolate = | title = }}
{{Graph:Population history|Q84}} Show London's population history from Wikidata | ||
---|---|---|
| ||
{{Graph:Population history | table=Wikidata/St.Petersburg.tab | ||
|
Inserts a graph with the population history for the given city.
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
City Wikidata ID | 1 | Wikidata ID of the city or region
| نص | اختياري |
Title of the data page on Commons | table | Data page name on Commons, without the Data: prefix. The table must contain "year" and "population" columns. | نص | اختياري |
Raw values for this graph | values | Supply all values as a list of JSON objects: {"year":1980, "population":1000}, {"year":1984, "population":1045}, ... | غير معروف | اختياري |
Title of the annotations data page on Commons | atable | Data page name on Commons, without the Data: prefix. The table must contain "year" column, and optional "text" and "color" columns. | نص | اختياري |
Raw annotation values | avalues | Supply all annotation values as a list of JSON objects: {"year":1980, "text":"Big event"}, ... | غير معروف | اختياري |
Filter expression | filter | Optionally, filter the data with an expression, e.g. datum.year >= 1900 && datum.year < 2000 | غير معروف | اختياري |
Graph color | color | Shade with which to highlight the data in the chart
| نص | اختياري |
Interpolate | interpolate | How data points should be connected, e.g. linear, step-before, step-after, basis, basis-open, cardinal, cardinal-open, monotone
| نص | اختياري |
Graph scale | scale | Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold
| نص | اختياري |
Maximum Y value axis | max | This optional value might be useful to align multiple graphs side-by-side
| رقم | اختياري |
Width | width | Width for the chart in pixels, if different from the default.
| رقم | اختياري |
Height | height | Height for the chart in pixels, if different from the default.
| رقم | اختياري |