Template:Demografia/man

Da Xitpedia.
Vai alla navigazioneVai alla ricerca

Questo template serve a creare un grafico standard di dati demografici.

Il template supporta fino a 20 anni. Lasciare vuoti i valori di popolazione non disponibili. Per i numeri decimali, ad es. popolazioni misurate in migliaia, usare il punto (234.56).

Parametri

{{#if:;titolo:titolo del grafico. Valore predefinito: Abitanti censiti.

dimx
larghezza grafico. Valore predefinito: 455.
dimy
altezza grafico. Valore predefinito: 373.
popmax
valore massimo di popolazione sull'asse Y. Valore predefinito: 100000.
passo1
passo maggiore delle tacche sull'asse Y. Valore predefinito: 10000.
passo2
passo minore delle tacche sull'asse Y. Valore predefinito: 1000.
fonte
fonte da cui si sono presi i dati (appare come una nota al titolo)

aN
anno relativo al dato N-esimo
pN
popolazione relativa al dato N-esimo. Se è vuoto apparirà "n.d."
pNbis
eventuale seconda popolazione relativa al dato N-esimo. Da usare in casi particolari in cui si mostrano due serie insieme.|{| style="width:70%; clear:right; float:right; border:1px solid #CCC;"

|

titolo
titolo del grafico. Valore predefinito: Abitanti censiti.
dimx
larghezza grafico. Valore predefinito: 455.
dimy
altezza grafico. Valore predefinito: 373.
popmax
valore massimo di popolazione sull'asse Y. Valore predefinito: 100000.
passo1
passo maggiore delle tacche sull'asse Y. Valore predefinito: 10000.
passo2
passo minore delle tacche sull'asse Y. Valore predefinito: 1000.
fonte
fonte da cui si sono presi i dati (appare come una nota al titolo)

aN
anno relativo al dato N-esimo
pN
popolazione relativa al dato N-esimo. Se è vuoto apparirà "n.d."
pNbis
eventuale seconda popolazione relativa al dato N-esimo. Da usare in casi particolari in cui si mostrano due serie insieme.

|} }}(legenda colori)

{{Demografia{{#if:|titolo{{#if:|}} = {{#if:|<!-- -->}}
|dimx{{#if:|}} = {{#if:|<!-- -->}}
|dimy{{#if:|}} = {{#if:|<!-- -->}}
|popmax{{#if:|}} = {{#if:|<!-- -->}}
|passo1{{#if:|}} = {{#if:|<!-- -->}}
|passo2{{#if:|}} = {{#if:|<!-- -->}}
|fonte{{#if:|}} = {{#if:|<!-- -->}}


|a1{{#if:|}} = {{#if:|<!-- -->}}
|p1{{#if:|}} = {{#if:|<!-- -->}}
|a2{{#if:|}} = {{#if:|<!-- -->}}
|p2{{#if:|}} = {{#if:|<!-- -->}}
|a3{{#if:|}} = {{#if:|<!-- -->}}
|p3{{#if:|}} = {{#if:|<!-- -->}}
|a4{{#if:|}} = {{#if:|<!-- -->}}
|p4{{#if:|}} = {{#if:|<!-- -->}}
|a5{{#if:|}} = {{#if:|<!-- -->}}
|p5{{#if:|}} = {{#if:|<!-- -->}}
|a6{{#if:|}} = {{#if:|<!-- -->}}
|p6{{#if:|}} = {{#if:|<!-- -->}}
|a7{{#if:|}} = {{#if:|<!-- -->}}
|p7{{#if:|}} = {{#if:|<!-- -->}}
|a8{{#if:|}} = {{#if:|<!-- -->}}
|p8{{#if:|}} = {{#if:|<!-- -->}}
|a9{{#if:|}} = {{#if:|<!-- -->}}
|p9{{#if:|}} = {{#if:|<!-- -->}}
|a10{{#if:|}} = {{#if:|<!-- -->}}
|p10{{#if:|}} = {{#if:|<!-- -->}}
|a11{{#if:|}} = {{#if:|<!-- -->}}
|p11{{#if:|}} = {{#if:|<!-- -->}}
|a12{{#if:|}} = {{#if:|<!-- -->}}
|p12{{#if:|}} = {{#if:|<!-- -->}}
|a13{{#if:|}} = {{#if:|<!-- -->}}
|p13{{#if:|}} = {{#if:|<!-- -->}}
|a14{{#if:|}} = {{#if:|<!-- -->}}
|p14{{#if:|}} = {{#if:|<!-- -->}}
|a15{{#if:|}} = {{#if:|<!-- -->}}
|p15{{#if:|}} = {{#if:|<!-- -->}}
|a16{{#if:|}} = {{#if:|<!-- -->}}
|p16{{#if:|}} = {{#if:|<!-- -->}}
|a17{{#if:|}} = {{#if:|<!-- -->}}
|p17{{#if:|}} = {{#if:|<!-- -->}}
|a18{{#if:|}} = {{#if:|<!-- -->}}
|p18{{#if:|}} = {{#if:|<!-- -->}}
|a19{{#if:|}} = {{#if:|<!-- -->}}
|p19{{#if:|}} = {{#if:|<!-- -->}}
|a20{{#if:|}} = {{#if:|<!-- -->}}
|p20{{#if:|}} = {{#if:|<!-- -->}}
|
|titolo{{#if:|}} = {{#if:|<!-- -->}}
|dimx{{#if:|}} = {{#if:|<!-- -->}}
|dimy{{#if:|}} = {{#if:|<!-- -->}}
|popmax{{#if:|}} = {{#if:|<!-- -->}}
|passo1{{#if:|}} = {{#if:|<!-- -->}}
|passo2{{#if:|}} = {{#if:|<!-- -->}}
|fonte{{#if:|}} = {{#if:|<!-- -->}}


|a1{{#if:|}} = {{#if:|<!-- -->}}
|p1{{#if:|}} = {{#if:|<!-- -->}}
|a2{{#if:|}} = {{#if:|<!-- -->}}
|p2{{#if:|}} = {{#if:|<!-- -->}}
|a3{{#if:|}} = {{#if:|<!-- -->}}
|p3{{#if:|}} = {{#if:|<!-- -->}}
|a4{{#if:|}} = {{#if:|<!-- -->}}
|p4{{#if:|}} = {{#if:|<!-- -->}}
|a5{{#if:|}} = {{#if:|<!-- -->}}
|p5{{#if:|}} = {{#if:|<!-- -->}}
|a6{{#if:|}} = {{#if:|<!-- -->}}
|p6{{#if:|}} = {{#if:|<!-- -->}}
|a7{{#if:|}} = {{#if:|<!-- -->}}
|p7{{#if:|}} = {{#if:|<!-- -->}}
|a8{{#if:|}} = {{#if:|<!-- -->}}
|p8{{#if:|}} = {{#if:|<!-- -->}}
|a9{{#if:|}} = {{#if:|<!-- -->}}
|p9{{#if:|}} = {{#if:|<!-- -->}}
|a10{{#if:|}} = {{#if:|<!-- -->}}
|p10{{#if:|}} = {{#if:|<!-- -->}}
|a11{{#if:|}} = {{#if:|<!-- -->}}
|p11{{#if:|}} = {{#if:|<!-- -->}}
|a12{{#if:|}} = {{#if:|<!-- -->}}
|p12{{#if:|}} = {{#if:|<!-- -->}}
|a13{{#if:|}} = {{#if:|<!-- -->}}
|p13{{#if:|}} = {{#if:|<!-- -->}}
|a14{{#if:|}} = {{#if:|<!-- -->}}
|p14{{#if:|}} = {{#if:|<!-- -->}}
|a15{{#if:|}} = {{#if:|<!-- -->}}
|p15{{#if:|}} = {{#if:|<!-- -->}}
|a16{{#if:|}} = {{#if:|<!-- -->}}
|p16{{#if:|}} = {{#if:|<!-- -->}}
|a17{{#if:|}} = {{#if:|<!-- -->}}
|p17{{#if:|}} = {{#if:|<!-- -->}}
|a18{{#if:|}} = {{#if:|<!-- -->}}
|p18{{#if:|}} = {{#if:|<!-- -->}}
|a19{{#if:|}} = {{#if:|<!-- -->}}
|p19{{#if:|}} = {{#if:|<!-- -->}}
|a20{{#if:|}} = {{#if:|<!-- -->}}
|p20{{#if:|}} = {{#if:|<!-- -->}}
}}}}

Esempi d'uso

{{Demografia
|titolo = Abitanti censiti (migliaia)
|fonte = {{cita web|http://dati.istat.it/Index.aspx|Statistiche I.Stat|editore=[[Istituto nazionale di statistica|ISTAT]]|accesso=28 dicembre 2012}}
|dimx = 488
|dimy = 373
|popmax = 2000
|passo1 = 500
|passo2 = 100
|a1 = 1861|p1 = 267.618
|a2 = 1871|p2 = 290.514
|a3 = 1881|p3 = 354.041
|a4 = 1901|p4 = 538.478
|a5 = 1911|p5 = 701.401
|a6 = 1921|p6 = 818.148
|a7 = 1931|p7 = 960.660
|a8 = 1936|p8 = 1115.768
|a9 = 1951|p9 = 1274.154
|a10 = 1961|p10 = 1582.421
|a11 = 1971|p11 = 1732.000
|a12 = 1981|p12 = 1604.773
|a13 = 1991|p13 = 1369.231
|a14 = 2001|p14 = 1256.211
|a15 = 2011|p15 = 1242|p15bis = 1555
}}

{{#if:Abitanti censiti (migliaia)|Abitanti censiti (migliaia)|Abitanti censiti}}{{#if:Errore Lua: impossibile creare il processo: proc_open(/dev/null): Failed to open stream: Operation not permitted.|<ref>Errore Lua: impossibile creare il processo: proc_open(/dev/null): Failed to open stream: Operation not permitted.</ref>}}
<timeline> Colors=

id:lightgrey value:gray(0.9)
id:darkgrey  value:gray(0.7)
id:sfondo value:rgb(1,1,1)
id:barra value:rgb(0.6,0.7,0.8)
id:barra2 value:rgb(0.6,0.8,0.7)

ImageSize = width:{{#if:488|488|455}} height:{{#if:373|373|373}} PlotArea = left:50 bottom:{{#if:Errore Lua: impossibile creare il processo: proc_open(/dev/null): Failed to open stream: Operation not permitted.|40|20}} top:20 right:30 DateFormat = x.y Period = from:0 till:{{#if:2000|2000|100000}} TimeAxis = orientation:vertical AlignBars = justify ScaleMajor = gridcolor:darkgrey increment:{{#if:500|500|10000}} start:0 ScaleMinor = gridcolor:lightgrey increment:{{#if:100|100|1000}} start:0 BackgroundColors = canvas:sfondo

BarData=

{{#if:1861|bar:1861 text:1861}}
{{#if:1871|bar:1871 text:1871}}
{{#if:1881|bar:1881 text:1881}}
{{#if:1901|bar:1901 text:1901}}
{{#if:1911|bar:1911 text:1911}}
{{#if:1921|bar:1921 text:1921}}
{{#if:1931|bar:1931 text:1931}}
{{#if:1936|bar:1936 text:1936}}
{{#if:1951|bar:1951 text:1951}}
{{#if:1961|bar:1961 text:1961}}
{{#if:1971|bar:1971 text:1971}}
{{#if:1981|bar:1981 text:1981}}
{{#if:1991|bar:1991 text:1991}}
{{#if:2001|bar:2001 text:2001}}
{{#if:2011|bar:2011 text:2011}}
{{#if:|bar:{{{a16}}} text:{{{a16}}}}}
{{#if:|bar:{{{a17}}} text:{{{a17}}}}}
{{#if:|bar:{{{a18}}} text:{{{a18}}}}}
{{#if:|bar:{{{a19}}} text:{{{a19}}}}}
{{#if:|bar:{{{a20}}} text:{{{a20}}}}}

PlotData=

color:barra width:20 align:left
{{#if:1861|bar:1861 from:0 till: {{#if:267.618|267.618|0}}}}
{{#if:1871|bar:1871 from:0 till: {{#if:290.514|290.514|0}}}}
{{#if:1881|bar:1881 from:0 till: {{#if:354.041|354.041|0}}}}
{{#if:1901|bar:1901 from:0 till: {{#if:538.478|538.478|0}}}}
{{#if:1911|bar:1911 from:0 till: {{#if:701.401|701.401|0}}}}
{{#if:1921|bar:1921 from:0 till: {{#if:818.148|818.148|0}}}}
{{#if:1931|bar:1931 from:0 till: {{#if:960.660|960.660|0}}}}
{{#if:1936|bar:1936 from:0 till: {{#if:1115.768|1115.768|0}}}}
{{#if:1951|bar:1951 from:0 till: {{#if:1274.154|1274.154|0}}}}
{{#if:1961|bar:1961 from:0 till: {{#if:1582.421|1582.421|0}}}}
{{#if:1971|bar:1971 from:0 till: {{#if:1732.000|1732.000|0}}}}
{{#if:1981|bar:1981 from:0 till: {{#if:1604.773|1604.773|0}}}}
{{#if:1991|bar:1991 from:0 till: {{#if:1369.231|1369.231|0}}}}
{{#if:2001|bar:2001 from:0 till: {{#if:1256.211|1256.211|0}}}}
{{#if:2011|bar:2011 from:0 till: {{#if:1242|1242|0}}}}
{{#if:|bar:{{{a16}}} from:0 till: {{#if:|{{{p16}}}|0}}}}
{{#if:|bar:{{{a17}}} from:0 till: {{#if:|{{{p17}}}|0}}}}
{{#if:|bar:{{{a18}}} from:0 till: {{#if:|{{{p18}}}|0}}}}
{{#if:|bar:{{{a19}}} from:0 till: {{#if:|{{{p19}}}|0}}}}
{{#if:|bar:{{{a20}}} from:0 till: {{#if:|{{{p20}}}|0}}}}
{{#if:{{#if:1861|}}|bar:1861 from:267.618 till: {{{p1bis}}} color:barra2}}
{{#if:{{#if:1871|}}|bar:1871 from:290.514 till: {{{p2bis}}} color:barra2}}
{{#if:{{#if:1881|}}|bar:1881 from:354.041 till: {{{p3bis}}} color:barra2}}
{{#if:{{#if:1901|}}|bar:1901 from:538.478 till: {{{p4bis}}} color:barra2}}
{{#if:{{#if:1911|}}|bar:1911 from:701.401 till: {{{p5bis}}} color:barra2}}
{{#if:{{#if:1921|}}|bar:1921 from:818.148 till: {{{p6bis}}} color:barra2}}
{{#if:{{#if:1931|}}|bar:1931 from:960.660 till: {{{p7bis}}} color:barra2}}
{{#if:{{#if:1936|}}|bar:1936 from:1115.768 till: {{{p8bis}}} color:barra2}}
{{#if:{{#if:1951|}}|bar:1951 from:1274.154 till: {{{p9bis}}} color:barra2}}
{{#if:{{#if:1961|}}|bar:1961 from:1582.421 till: {{{p10bis}}} color:barra2}}
{{#if:{{#if:1971|}}|bar:1971 from:1732.000 till: {{{p11bis}}} color:barra2}}
{{#if:{{#if:1981|}}|bar:1981 from:1604.773 till: {{{p12bis}}} color:barra2}}
{{#if:{{#if:1991|}}|bar:1991 from:1369.231 till: {{{p13bis}}} color:barra2}}
{{#if:{{#if:2001|}}|bar:2001 from:1256.211 till: {{{p14bis}}} color:barra2}}
{{#if:{{#if:2011|1555}}|bar:2011 from:1242 till: 1555 color:barra2}}
{{#if:{{#if:|}}|bar:{{{a16}}} from:{{{p16}}} till: {{{p16bis}}} color:barra2}}
{{#if:{{#if:|}}|bar:{{{a17}}} from:{{{p17}}} till: {{{p17bis}}} color:barra2}}
{{#if:{{#if:|}}|bar:{{{a18}}} from:{{{p18}}} till: {{{p18bis}}} color:barra2}}
{{#if:{{#if:|}}|bar:{{{a19}}} from:{{{p19}}} till: {{{p19bis}}} color:barra2}}
{{#if:{{#if:|}}|bar:{{{a20}}} from:{{{p20}}} till: {{{p20bis}}} color:barra2}}

PlotData=

{{#if:1861|bar:1861 at: {{#if:267.618|267.618|0}} fontsize:S text: {{#if:267.618|{{#expr: 267,618 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1871|bar:1871 at: {{#if:290.514|290.514|0}} fontsize:S text: {{#if:290.514|{{#expr: 290,514 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1881|bar:1881 at: {{#if:354.041|354.041|0}} fontsize:S text: {{#if:354.041|{{#expr: 354,041 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1901|bar:1901 at: {{#if:538.478|538.478|0}} fontsize:S text: {{#if:538.478|{{#expr: 538,478 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1911|bar:1911 at: {{#if:701.401|701.401|0}} fontsize:S text: {{#if:701.401|{{#expr: 701,401 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1921|bar:1921 at: {{#if:818.148|818.148|0}} fontsize:S text: {{#if:818.148|{{#expr: 818,148 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1931|bar:1931 at: {{#if:960.660|960.660|0}} fontsize:S text: {{#if:960.660|{{#expr: 960,660 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1936|bar:1936 at: {{#if:1115.768|1115.768|0}} fontsize:S text: {{#if:1115.768|{{#expr: 1 115,768 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1951|bar:1951 at: {{#if:1274.154|1274.154|0}} fontsize:S text: {{#if:1274.154|{{#expr: 1 274,154 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1961|bar:1961 at: {{#if:1582.421|1582.421|0}} fontsize:S text: {{#if:1582.421|{{#expr: 1 582,421 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1971|bar:1971 at: {{#if:1732.000|1732.000|0}} fontsize:S text: {{#if:1732.000|{{#expr: 1 732,000 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1981|bar:1981 at: {{#if:1604.773|1604.773|0}} fontsize:S text: {{#if:1604.773|{{#expr: 1 604,773 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:1991|bar:1991 at: {{#if:1369.231|1369.231|0}} fontsize:S text: {{#if:1369.231|{{#expr: 1 369,231 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:2001|bar:2001 at: {{#if:1256.211|1256.211|0}} fontsize:S text: {{#if:1256.211|{{#expr: 1 256,211 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:2011|bar:2011 at: {{#if:1242|1242|0}} fontsize:S text: {{#if:1242|{{#expr: 1 242 round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:|bar:{{{a16}}} at: {{#if:|{{{p16}}}|0}} fontsize:S text: {{#if:|{{#expr: {{{p16}}} round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:|bar:{{{a17}}} at: {{#if:|{{{p17}}}|0}} fontsize:S text: {{#if:|{{#expr: {{{p17}}} round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:|bar:{{{a18}}} at: {{#if:|{{{p18}}}|0}} fontsize:S text: {{#if:|{{#expr: {{{p18}}} round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:|bar:{{{a19}}} at: {{#if:|{{{p19}}}|0}} fontsize:S text: {{#if:|{{#expr: {{{p19}}} round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:|bar:{{{a20}}} at: {{#if:|{{{p20}}}|0}} fontsize:S text: {{#if:|{{#expr: {{{p20}}} round 0}} shift:(-10,5)|n.d. shift:(-8,5)}}}}
{{#if:{{#if:1861|}}|bar:1861 at: {{{p1bis}}} fontsize:S text:{{#expr: {{{p1bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1871|}}|bar:1871 at: {{{p2bis}}} fontsize:S text:{{#expr: {{{p2bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1881|}}|bar:1881 at: {{{p3bis}}} fontsize:S text:{{#expr: {{{p3bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1901|}}|bar:1901 at: {{{p4bis}}} fontsize:S text:{{#expr: {{{p4bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1911|}}|bar:1911 at: {{{p5bis}}} fontsize:S text:{{#expr: {{{p5bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1921|}}|bar:1921 at: {{{p6bis}}} fontsize:S text:{{#expr: {{{p6bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1931|}}|bar:1931 at: {{{p7bis}}} fontsize:S text:{{#expr: {{{p7bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1936|}}|bar:1936 at: {{{p8bis}}} fontsize:S text:{{#expr: {{{p8bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1951|}}|bar:1951 at: {{{p9bis}}} fontsize:S text:{{#expr: {{{p9bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1961|}}|bar:1961 at: {{{p10bis}}} fontsize:S text:{{#expr: {{{p10bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1971|}}|bar:1971 at: {{{p11bis}}} fontsize:S text:{{#expr: {{{p11bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1981|}}|bar:1981 at: {{{p12bis}}} fontsize:S text:{{#expr: {{{p12bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:1991|}}|bar:1991 at: {{{p13bis}}} fontsize:S text:{{#expr: {{{p13bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:2001|}}|bar:2001 at: {{{p14bis}}} fontsize:S text:{{#expr: {{{p14bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:2011|1555}}|bar:2011 at: 1555 fontsize:S text:{{#expr: 1 555 round 0}} shift:(-10,5)}}
{{#if:{{#if:|}}|bar:{{{a16}}} at: {{{p16bis}}} fontsize:S text:{{#expr: {{{p16bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:|}}|bar:{{{a17}}} at: {{{p17bis}}} fontsize:S text:{{#expr: {{{p17bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:|}}|bar:{{{a18}}} at: {{{p18bis}}} fontsize:S text:{{#expr: {{{p18bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:|}}|bar:{{{a19}}} at: {{{p19bis}}} fontsize:S text:{{#expr: {{{p19bis}}} round 0}} shift:(-10,5)}}
{{#if:{{#if:|}}|bar:{{{a20}}} at: {{{p20bis}}} fontsize:S text:{{#expr: {{{p20bis}}} round 0}} shift:(-10,5)}}

</timeline>

<references />

Template:Progetto