टेम्पलेट:Show data: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
No edit summary
छो सफाई
लाइन 20:
|<code>code description</code>||{{#if:{{{code description|}}}|<code>{{{code description}}}</code>}}||code description
|-
|<code>continent</code>||<!-- {{#if:{{{continent|}}}|<code>{{#ifexistifeq:[[:Template:Data {{{continent}}}]]|[[:{{Template:Data {{{continent}}}}}|[[{{{continent}}}]]|[[{{data {{{continent}}}]]|linkd}}}}</code>}} -->||continent, if ''type'' is lower than "continent"
|-
|<code>country</code>||{{#if:{{{country|}}}|<code>{{data {{{country}}}|linkd}}</code>}}||country, if ''type'' is lower than "country"
लाइन 75:
 
==Related data templates==
{{#if:{{{continent|}}}|*{{#ifexistifeq:[[:Template:Data {{{continent}}}]]|[[{{Template:Data {{{continent}}}]]}}|[{{fullurl:Template:Data {{{continent}}}|action=edit&preload=Template:Data/preload}} {{{continent}}}]|[[Template:Data {{{continent}}}]]}}}}
}}{{#if:{{{country|}}}|*{{#ifexistifeq:[[:Template:Data {{{country}}}]]|[[{{Template:Data {{{country}}}]]}}|[{{fullurl:Template:Data {{{country}}}|action=edit&preload=Template:Data/preload}} {{{country}}}]|[[Template:Data {{{country}}}]]}}}}
}}{{#if:{{{province|}}}|*{{#ifexistifeq:[[:Template:Data {{{province}}}]]|[[{{Template:Data {{{province}}}]]}}|[{{fullurl:Template:Data {{{province}}}|action=edit&preload=Template:Data/preload}} {{{province}}}]|[[Template:Data {{{province}}}]]}}}}
}}
 
==Derived data==
{{if||{{{popinc|}}}|The population today is {{formatnum:{{#expr:{{data {{{1}}}|poptoday}}round-4}}}}.<ref>Estimated by extrapolation.</ref>
{{#if:{{{popbase|}}}|{{#if:{{{popinc|}}}|{{#if:{{{popbaseyear|}}}|
As of {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}, the population is approximately {{formatnum:{{#expr:({{{popbase}}}+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}})round(5-floor(ln{{{popbase}}}/ln10))}}}} (estimated by extrapolation), which is {{#expr:({{{popbase}}}+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}})/{{worldpop}}*100round(-floor(ln({{{popbase}}}/{{worldpop}})/ln10))}}% of the world's population.}}}}}}
 
}}{{if||{{{popbase|}}}|The population is {{ppm|{{sigdig|({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{worldpop}}|3}}}} of that of the world.{{if|eq|{{{type}}}|country| It is {{#expr:({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{data {{{continent}}}|{{#if:{{data {{{continent}}}|pst2|popinc}}|{{#ifeq:{{padleft:|1|{{data {{{continent}}}|pst2|popinc}}}}|{|pst2|poptoday}}|pst2}}|popbase}}*100round1}}% of that of {{{continent}}}.}}{{if|eq|{{{type}}}|province| It is {{#expr:({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{#iferror:{{data {{{country}}}|poptoday}}|{{data {{{country}}}|pst2|popbase}}}}*100round1}}% of that of {{{country}}}.}}{{if|eq|{{{type}}}|municipality| It is {{#expr:{{{popbase}}}/{{data {{{province}}}|pst2|popbase}}*100round1}}% of that of {{{province}}}.}}
{{#if:{{{total area|}}}|The total area is {{convert|{{{total area}}}|km2}}, which is {{ppm|{{sigdig|({{{total area}}}/{{data world|pst2|land area}})|3}}}} of the land area of the world. {{#if:{{{land area|}}}|The water area is {{#expr:(1-{{{land area}}}/{{{total area}}})*100round1}}% of the total area.}} }}
 
}}{{#if:||{{{total area|}}}|The total area is {{convert|{{{total area}}}|km2}},. whichIt is {{ppm|{{sigdig|({{{total area}}}/{{data world|pst2|land area}})|3}}}} of the land area of the world.{{if|eq|{{{type}}}|country| It is {{#ifexpr:({{{landtotal area|}}})/{{data {{{continent}}}|The waterpst2|total area}}*100round1}}% of that of {{{continent}}}.}}{{if|eq|{{{type}}}|province| It is {{#expr:(1-{{{landtotal area}}})/{{data {{{country}}}|pst2|total area}}})*100round1}}% of thethat of {{{country}}}.}}{{if|eq|{{{type}}}|municipality| It is {{#expr:{{{total area.}}}/{{data {{{province}}}|pst2|total area}}*100round1}}% of that of {{{province}}}.}}
{{#if:{{{popbase|}}}|{{#if:{{{popinc|}}}|{{#if:{{{popbaseyear|}}}|
 
{{#if:{{{land area|}}}|The population density is {{convert|{{#expr:({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{{land area}}}round1}}|/km2|1}} land area.}}
}}{{#if:||{{{totalland area|}}}|The populationwater densityarea is {{convert|{{#expr:(1-{{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{ageland in days|{{{popbaseyeararea}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{{total area}}}round1}}|/km2|1)*100round1}}% of the total area.}}
 
}}{{if||{{{popbase|}}}|{{if||{{{land area|}}}|The population density is {{convert|{{#expr:({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{{land area}}}round1}}|/km2|1}} land area.
 
|{{#if:||{{{landtotal area|}}}|The population density is {{convert|{{#expr:({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{{landtotal area}}}round1}}|/km2|1}} landtotal area.}}
 
}}}}}}