Edge Rewrite
Jump to content

Module:Croatian population data graph/doc

From Wikipedia, the free encyclopedia

This module implements the {{Croatian population data graph}} template. It processes parameters in the format pYYYY=value taken from the template, and displays the population data as a bar chart. Here, YYYY represents a year and value the corresponding population. In older syntax, the template also accepts up to 99 of annum/population pairs: aN=YYYY | pN=value.

The chart is rendered as a table with bars made of <div>...</div> elements, having the heights proportional to each value for a given year YYYY.

Other parameters taken from the template (or module invocation) include, in Croatian (for historical reasons) or English:

EnglishCroatian
titlenaslov
entitypodručje
notenapomena
sourcesizvori
censuses=HRVpopisi=HRV

The following labels can be modified only from the module invocation:

parameterEnglish textCroatian text
trendPopulation trends Kretanje broja stanovnika od
trendsep– do
ordpopulationbroj stanovnika
nb'''Note: ''''''Napomena:'''
ref'''Sources: ''''''Izvori:'''
YYYYsuf.

Examples

[edit]
{{Croatian population data graph|p2001=1|p2011=3|p2021=5|title=Title|entity=Entity|note=Note|sources=Sources}}
{{Croatian population data graph|a1=2001|p1=1|a2=2011|p2=3|a3=2021|p3=5|title=Title|entity=Entity|note=Note|sources=Sources}}
Entity: Title
Note:Note Sources: Sources


When censuses=HRV only the years of the known Croatian population censuses are shown (1857, 1869, 1880, 1890, 1900, 1910, 1921, 1931, 1948, 1953, 1961, 1971, 1981, 1991, 2001, 2011, 2021), starting and ending with the years for which data are given. If unset, any years can be shown.

{{Croatian population data graph|censuses=|p2025=5|p2020=9|p2015=12|p2010=8|p2005=4|p2000=2|p1995=1|p1990=0|title=Title|entity=Entity|note=Note|sources=Sources}}
Entity: Title
Note:Note Sources: Sources