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

Content deleted Content added
छो 10 revisions imported from en:Template:Show_data
लाइन 20:
|<code>code description</code>||{{#if:{{{code description|}}}|<code>{{{code description}}}</code>}}||code description
|-
|<code>continent</code>||<!-- {{#if:{{{continent|}}}|<code>{{#ifeq:[[ifexist: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==
Wikipedia}}{{#if:{{{continentcountry|}}}|*{{#ifeq:[[ifexist:Template:Data {{{continentcountry}}}]]|{{[[Template:Data {{{continent}}country}}}]]|[{{fullurl:Template:Data {{{continentcountry}}}|action=edit&preload=Template:Data/preload}} {{{continentcountry}}}]|[[Template:Data {{{continent}}}]]}}}}
}}{{#if:{{{countryprovince|}}}|*{{#ifeq:[[ifexist:Template:Data {{{countryprovince}}}]]|{{[[Template:Data {{{country}}province}}}]]|[{{fullurl:Template:Data {{{countryprovince}}}|action=edit&preload=Template:Data/preload}} {{{countryprovince}}}]|[[Template:Data {{{country}}}]]}}
}}
{{#if:{{{province|}}}|*{{#ifeq:[[:Template:Data {{{province}}}]]|{{Template:Data {{{province}}}}}|[{{fullurl:Template:Data {{{province}}}|action=edit&preload=Template:Data/preload}} {{{province}}}]|[[Template:Data {{{province}}}]]}}}}
 
==Derived data==
{{#if:{{{popbase|}}}|{{#if:{{{popinc|}}}|{{#if:{{{popbaseyear|}}}|
{{if||{{{popinc|}}}|The population today is {{formatnum:{{#expr:{{data {{{1}}}|poptoday}}round-4}}}}.<ref>Estimated by extrapolation.</ref>
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||:{{{total area|}}}|The total area is {{convert|{{{total area}}}|km2}}., Itwhich is {{ppm|{{sigdig|({{{total area}}}/{{data world|pst2|land area}})|3}}}} of the land area of the world.{{if|eq|{{{type}}}|country| It is {{#exprif:({{{totalland area}}})/{{data {{{continent|}}}|pst2|totalThe water area}}*100round1}}% of that of {{{continent}}}.}}{{if|eq|{{{type}}}|province| It is {{#expr:(1-{{{totalland area}}})/{{data {{{country}}}|pst2|total area}}})*100round1}}% of thatthe of {{{country}}}.}}{{if|eq|{{{type}}}|municipality| It is {{#expr:{{{total area.}}}/{{data {{{province}}}|pst2|total area}}*100round1}}% of that of {{{province}}}.}}
}}{{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:{{{popbase|}}}|{{#if:{{{popinc|}}}|{{#if:{{{popbaseyear|}}}|
}}{{if||{{{total area|}}}|The total area is {{convert|{{{total area}}}|km2}}. It is {{ppm|{{sigdig|({{{total area}}}/{{data world|pst2|land area}})|3}}}} of the land area of the world.{{if|eq|{{{type}}}|country| It is {{#expr:({{{total area}}})/{{data {{{continent}}}|pst2|total area}}*100round1}}% of that of {{{continent}}}.}}{{if|eq|{{{type}}}|province| It is {{#expr:({{{total area}}})/{{data {{{country}}}|pst2|total area}}*100round1}}% of that of {{{country}}}.}}{{if|eq|{{{type}}}|municipality| It is {{#expr:{{{total area}}}/{{data {{{province}}}|pst2|total area}}*100round1}}% of that of {{{province}}}.}}
|{{#if||:{{{totalland area|}}}|The population density is {{convert|{{#expr:({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{{totalland area}}}round1}}|/km2|1}} totalland area.}}
 
}}{{#if||:{{{landtotal area|}}}|The waterpopulation areadensity is {{convert|{{#expr:(1-{{{landpopbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age areain days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{{total area}}})*100round1round1}}|/km2|1}}% 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||{{{total area|}}}|The population density is {{convert|{{#expr:({{{popbase}}}{{#if:{{{popinc|}}}|+{{{popinc}}}*{{age in days|{{{popbaseyear}}}|{{{popbasemonth}}}|{{{popbaseday}}}}}}})/{{{total area}}}round1}}|/km2|1}} total area.
 
}}}}}}