Saltar ao contido

Modelo:Change

Na Galipedia, a Wikipedia en galego.
Indicacións de uso do modelo

Este modelo calcula o porcentaxe de variación entre dous números reais e mostra o resultado nun formato ordenable. A sintaxe para este modelo é a seguinte:
{{change|1st No.|2nd No.|dec=rounding|pre=prefix|suf=suffix|sort=on/off|italics=on/off|bold=on/off|invert=on/off|disp=row/out|rowspan=rowspan|align=alignment|bgcolour=background colour}}


Se escribimos este código:

{| class="wikitable sortable"
!Posición
!Provincia/Territorio
!2014 estimada
!2011 censo
!Variación
|-
|align=center|{{nts|1}}
|align="left"| [[Nunavut]]
| {{change|invert=on|36687|31906}}
|-
|align=center|{{nts|2}}
|align="left"| [[Alberta]]
| {{change|invert=on|4145992|3645257}}
|-
|align=center|{{nts|3}}
|align="left"| [[Saskatchewan]]
| {{change|invert=on|1129899|1033381}}
|-
|align=center|{{nts|4}}
|align="left"| [[Yukon]]
| {{change|invert=on|36758|33897}}
|-
|align=center|{{nts|5}}
|align="left"| [[Ontario]]
| {{change|invert=on|13730187|12851821}}
|-
|align=center|{{nts|6}}
|align="left"| [[Manitoba]]
| {{change|invert=on|1286323|1208268}}
|-
|align=center|{{nts|7}}
|align="left"| [[British Columbia]]
| {{change|invert=on|4657947|4400057}}
|-
|align=center|{{nts|8}}
|align="left"| [[Territorios do Noroeste]]
| {{change|invert=on|43795|41462}}
|-
|align=center|{{nts|9}}
|align="left"| [[Illa do Príncipe Eduardo]]
| {{change|invert=on|146524|140204}}
|-
|align=center|{{nts|10}}
|align="left"| [[Quebec]]
| {{change|invert=on|8236310|7903001}}
|-
|align=center|{{nts|11}}
|align="left"| [[Nova Scotia]]
| {{change|invert=on|943932|921727}}
|-
|align=center|{{nts|12}}
|align="left"| [[Terra Nova e Labrador]]
| {{change|invert=on|526837|514536}}
|-
|align=center|{{nts|13}}
|align="left"| [[New Brunswick]]
| {{change|invert=on|754643|751171}}
|-class="sortbottom"
|bgcolor="gold" | '''Total'''
|bgcolor="gold" align="left"| {{CAN}}
| {{change|invert=on|35675834|33476688|bgcolour=gold}}
|}

Obtemos:

Posición Provincia/Territorio 2014 estimada 2011 censo Variación
70001000000000000001 Nunavut 36.687 31.906 +14,98%
70002000000000000002 Alberta 4.145.992 3.645.257 +13,74%
70003000000000000003 Saskatchewan 1.129.899 1.033.381 +9,34%
70004000000000000004 Yukon 36.758 33.897 +8,44%
70005000000000000005 Ontario 13.730.187 12.851.821 +6,83%
70006000000000000006 Manitoba 1.286.323 1.208.268 +6,46%
70007000000000000007 British Columbia 4.657.947 4.400.057 +5,86%
70008000000000000008 Territorios do Noroeste 43.795 41.462 +5,63%
70009000000000000009 Illa do Príncipe Eduardo 146.524 140.204 +4,51%
700110000000000000010 Quebec 8.236.310 7.903.001 +4,22%
700111000000000000011 Nova Scotia 943.932 921.727 +2,41%
700112000000000000012 Terra Nova e Labrador 526.837 514.536 +2,39%
700113000000000000013 New Brunswick 754.643 751.171 +0,46%
Total Canadá 35.675.834 33.476.688 +6,57%
Este recadro non aparecerá no artigo.
Esta documentación está transcluída desde Modelo:Change/uso. Os editores poden probar cambios no mesmo en Modelo:Change/probas.
Por favor, engade as categorías na subpáxina de documentación e os interwikis no Wikidata. Ver as subpáxinas deste modelo.