Changes

Jump to navigation Jump to search
+filter
<!--

PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE AND INTERWIKIS IN WIKIDATA

-->
{{documentation subpage}}

'''This graph's main version resides at [https://www.mediawiki.org/wiki/Template:Graph:Population_history mediawiki Template:Graph:Population_history]. Please make all the changes there and copy it everywhere else (until the copying is automated)'''

{| class="wikitable"
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|Q84}}</nowiki><br>Show London's population history from Wikidata
|-
| {{{{BASEPAGENAME}}|Q84}}
|-
! style="text-align: left;" | <nowiki>{{</nowiki>{{BASEPAGENAME}}<br>
&#124; table=Wikidata/St.Petersburg.tab<br>
&#124; atable=Original/St.Petersburg population annotations.tab}}<br>Show population of St.Petersburg from the [[commons:Data:Wikidata/St.Petersburg.tab|table on Commons]], with [[commons:Data:Original/St.Petersburg population annotations.tab|annotations]]
|-
| {{{{BASEPAGENAME}}|table=Wikidata/St.Petersburg.tab|atable=Original/St.Petersburg population annotations.tab}}
|}

<templatedata>
{
"params": {
"1": {
"type": "string",
"default": "Q84",
"label": "City Wikidata ID",
"description": "Wikidata ID of the city or region"
},
"table": {
"type": "string",
"label": "Title of the data page on Commons",
"description": "Data page name on Commons, without the Data: prefix. The table must contain \"year\" and \"population\" columns."
},
"values": {
"label": "Raw values for this graph",
"description": "Supply all values as a list of JSON objects: {\"year\":1980, \"population\":1000}, {\"year\":1984, \"population\":1045}, ..."
},
"atable": {
"type": "string",
"label": "Title of the annotations data page on Commons",
"description": "Data page name on Commons, without the Data: prefix. The table must contain \"year\" column, and optional \"text\" and \"color\" columns."
},
"avalues": {
"label": "Raw annotation values",
"description": "Supply all annotation values as a list of JSON objects: {\"year\":1980, \"text\":\"Big event\"}, ..."
},
"filter": {
"label": "Filter expression",
"description": "Optionally, filter the data with an expression, e.g. datum.year >= 1900 && datum.year < 2000"
},
"color": {
"label": "Graph color",
"default": "#00f",
"example": "#f00",
"type": "string",
"description": "Shade with which to highlight the data in the chart"
},
"interpolate": {
"label": "Interpolate",
"default": "monotone",
"example": "linear",
"type": "string",
"description": "How data points should be connected, e.g. linear, step-before, step-after, basis, basis-open, cardinal, cardinal-open, monotone"
},
"scale": {
"label": "Graph scale",
"description": "Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold",
"default": "linear",
"example": "log",
"type": "string"
},
"max": {
"label": "Maximum Y value axis",
"description": "This optional value might be useful to align multiple graphs side-by-side",
"default": "Automatically scaled to the data.",
"example": "10000",
"type": "number"
},
"width": {
"label": "Width",
"description": "Width for the chart in pixels, if different from the default.",
"type": "number",
"default": "400"
},
"height": {
"label": "Height",
"description": "Height for the chart in pixels, if different from the default.",
"type": "number",
"default": "200"
}
},
"paramOrder": [
"1",
"table",
"values",
"atable",
"avalues",
"filter",
"color",
"interpolate",
"scale",
"max",
"width",
"height"
],
"format": "block",
"description": "Inserts a graph with the population history for the given city."
}
</templatedata>
Anonymous user

Navigation menu