Параметры шаблона[Править данные шаблона]
Шаблон использует блочное форматирование параметров.
Параметр | Описание | Тип | Статус |
---|
City Wikidata ID | 1 | Wikidata ID of the city or region - По умолчанию
- Q84
| Строковый (без форматирования) | необязательный |
---|
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"}, ...
| Неизвестно | необязательный |
---|
Graph color | color | Shade with which to highlight the data in the chart - По умолчанию
- #00f
- Пример
- #f00
| Строковый (без форматирования) | необязательный |
---|
Graph scale | scale | Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold - По умолчанию
- linear
- Пример
- log
| Строковый (без форматирования) | необязательный |
---|
Maximum Y value axis | max | This optional value might be useful to align multiple graphs side-by-side - По умолчанию
- Automatically scaled to the data.
- Пример
- 10000
| Число | необязательный |
---|
Width | width | Width for the chart in pixels, if different from the default. - По умолчанию
- 400
| Число | необязательный |
---|
Height | height | Height for the chart in pixels, if different from the default. - По умолчанию
- 200
| Число | необязательный |
---|