Difference between revisions of "Template:Country population"

From blackwiki
Jump to navigation Jump to search
imported>Guarapiranga
m (took out too much)
imported>Guarapiranga
(This works and didn't increase overhead)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
-->{{#if: {{{growth|}}}
 
-->{{#if: {{{growth|}}}
 
       |{{formatnum: {{#if: {{{raw|}}}  
 
       |{{formatnum: {{#if: {{{raw|}}}  
         |{{#expr: {{formatnum: {{#lst: List of countries by population (United Nations)|{{{1}}}_1}}|R}} / {{formatnum: {{#lst: List of countries by population (United Nations)|{{{1}}}_0}}|R}} - 1 round 4}}  
+
         |{{#expr: {{formatnum: {{#lst: List of countries by population (United Nations)|{{country code|{{{1}}}}}_1}}|R}} / {{formatnum: {{#lst: List of countries by population (United Nations)|{{country code|{{{1}}}}}_0}}|R}} - 1 round 4}}  
         |{{#expr: {{formatnum: {{#lst: List of countries by population (United Nations)|{{{1}}}_1}}|R}} / {{formatnum: {{#lst: List of countries by population (United Nations)|{{{1}}}_0}}|R}} * 100 - 100 round 2}}%
+
         |{{#expr: {{formatnum: {{#lst: List of countries by population (United Nations)|{{country code|{{{1}}}}}_1}}|R}} / {{formatnum: {{#lst: List of countries by population (United Nations)|{{country code|{{{1}}}}}_0}}|R}} * 100 - 100 round 2}}%
 
       }}}}
 
       }}}}
       |{{formatnum: {{#expr: {{formatnum: {{#lst: List of countries by population (United Nations)|{{{1}}}_0}}|R}}^(1-{{a.y|{{#lst: List of countries by population (United Nations)|date}}|suffix=}}) * {{formatnum: {{#lst: List of countries by population (United Nations)|{{{1}}}_1}}|R}}^{{a.y|{{#lst: List of countries by population (United Nations)|date}}|suffix=}} round 0}}|{{#if: {{{raw|}}}|R|}}}}
+
       |{{formatnum: {{#expr: {{formatnum: {{#lst: List of countries by population (United Nations)|{{country code|{{{1}}}}}_0}}|R}}^(1-{{a.y|{{#lst: List of countries by population (United Nations)|date}}|suffix=}}) * {{formatnum: {{#lst: List of countries by population (United Nations)|{{country code|{{{1}}}}}_1}}|R}}^{{a.y|{{#lst: List of countries by population (United Nations)|date}}|suffix=}} round 0}}|{{#if: {{{raw|}}}|R|}}}}
 
     }}<!--
 
     }}<!--
legacy option:-->{{#if: {{{date|}}}|{{!!}}{{TODAY}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
legacy option:-->{{#if: {{{date|}}}|{{!!}}{{TODAY}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 00:26, 6 December 2019

Template documentation[view] [edit] [history] [purge]

Template:Template rating Template for referencing a country's (or territory's) population at List of countries and dependencies by population.

Usage

{{Country population | country ISO 3-letter code}} for latest population estimate

or

{{Country population | country ISO 3-letter code|formatnum=yes}} for number formatted with commas

or

{{Country population | country ISO 3-letter code|date=yes}} for population and date in adjacent cells

Examples

{{Country population | CHN}}Expression error: Unrecognized punctuation character "{".

{{Country population | IDN}}Expression error: Unrecognized punctuation character "{".