Меню

Главная
Случайная статья
Настройки
Шаблон:Graph:Population history
Материал из https://ru.wikipedia.org

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|Q84}}
Show London's population history from Wikidata
График не отображается по техническим причинам. Чтобы исправить это, воспроизведите график в новом формате, если это возможно.
{{Graph:Population history

| table=Wikidata/St.Petersburg.tab
| atable=Original/St.Petersburg population annotations.tab}}
Show population of St.Petersburg from the table on Commons, with annotations

График не отображается по техническим причинам. Чтобы исправить это, воспроизведите график в новом формате, если это возможно.


Inserts a graph with the population history for the given city.

Параметры шаблона[Править данные шаблона]

Шаблон использует блочное форматирование параметров.

ПараметрОписаниеТипСтатус
City Wikidata ID1

Wikidata ID of the city or region

По умолчанию
Q84
Строковый (без форматирования)необязательный
Title of the data page on Commonstable

Data page name on Commons, without the Data: prefix. The table must contain "year" and "population" columns.

Строковый (без форматирования)необязательный
Raw values for this graphvalues

Supply all values as a list of JSON objects: {"year":1980, "population":1000}, {"year":1984, "population":1045}, ...

Неизвестнонеобязательный
Title of the annotations data page on Commonsatable

Data page name on Commons, without the Data: prefix. The table must contain "year" column, and optional "text" and "color" columns.

Строковый (без форматирования)необязательный
Raw annotation valuesavalues

Supply all annotation values as a list of JSON objects: {"year":1980, "text":"Big event"}, ...

Неизвестнонеобязательный
Graph colorcolor

Shade with which to highlight the data in the chart

По умолчанию
#00f
Пример
#f00
Строковый (без форматирования)необязательный
Graph scalescale

Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold

По умолчанию
linear
Пример
log
Строковый (без форматирования)необязательный
Maximum Y value axismax

This optional value might be useful to align multiple graphs side-by-side

По умолчанию
Automatically scaled to the data.
Пример
10000
Числонеобязательный
Widthwidth

Width for the chart in pixels, if different from the default.

По умолчанию
400
Числонеобязательный
Heightheight

Height for the chart in pixels, if different from the default.

По умолчанию
200
Числонеобязательный


См. также
Downgrade Counter