Template:Infobox settlement: Difference between revisions

work around invalid input to formatnum in population_est and other population figures. Numbers using commas as decimal separators, in contravention of MOS:DECIMAL, will probably break. An error-tracking category could be set up for those.
(work around invalid input to formatnum in population_total)
(work around invalid input to formatnum in population_est and other population figures. Numbers using commas as decimal separators, in contravention of MOS:DECIMAL, will probably break. An error-tracking category could be set up for those.)
Line 519:
| label85 = Population<div style="font-weight:normal;display:inline;">{{#if:{{{population_as_of|}}}|{{nbsp}}({{{population_as_of}}})}}{{{population_footnotes|}}}</div>
| data85 = {{#if:{{{population|}}}
| {{formatnum:{{replace|{{{population}}}|,|}}}}
| {{#ifeq:{{{total_type}}}|&nbsp;
| {{#if:{{{population_total|}}}
| {{formatnum:{{replace|{{{population_total}}}|,|}}}}
}}
}}
Line 545:
|
|{{#if:{{{population_total|}}}
| {{formatnum:{{replace|{{{population_total}}}|,|}}}}
}}
}}
Line 552:
| rowclass88 = mergedrow
| label88 = &nbsp;•&nbsp;Estimate&nbsp;<div style="font-weight:normal;display:inline;">({{{pop_est_as_of}}}){{{pop_est_footnotes|}}}</div>
| data88 = {{#if:{{{population_est|}}}|{{formatnum:{{replace|{{{population_est}}}|,|}}}} }}
 
<!-- ***Population rank*** -->
Line 582:
| rowclass92 = mergedrow
| label92 = &nbsp;•&nbsp;[[Urban area|Urban]]<div style="font-weight:normal;display:inline;">{{{population_urban_footnotes|}}}</div>
| data92 = {{#if:{{{population_urban|}}}| {{formatnum:{{replace|{{{population_urban}}}|,|}}}} }}
 
| rowclass93 = mergedrow
Line 602:
| rowclass94 = mergedrow
| label94 = &nbsp;•&nbsp;[[Rural area|Rural]]<div style="font-weight:normal;display:inline;">{{{population_rural_footnotes|}}}</div>
| data94 = {{#if:{{{population_rural|}}}|{{formatnum:{{replace|{{{population_rural}}}|,|}}}}}}
 
| rowclass95 = mergedrow
Line 622:
| rowclass96 = mergedrow
| label96 =&nbsp;•&nbsp;[[Metropolitan area|Metro]]<div style="font-weight:normal;display:inline;">{{{population_metro_footnotes|}}}</div>
| data96 = {{#if:{{{population_metro|}}}| {{formatnum:{{replace|{{{population_metro}}}|,|}}}} }}
 
| rowclass97 = mergedrow
Line 642:
| rowclass98 = mergedrow
| label98 = &nbsp;•&nbsp;{{{population_blank1_title|}}}<div style="font-weight:normal;display:inline;">{{{population_blank1_footnotes|}}}</div>
| data98 = {{#if:{{{population_blank1|}}}|{{formatnum:{{replace|{{{population_blank1}}}|,|}}}}}}
 
| rowclass99 = mergedrow
Line 662:
| rowclass100 = mergedrow
| label100 = &nbsp;•&nbsp;{{{population_blank2_title|}}}<div style="font-weight:normal;display:inline;">{{{population_blank2_footnotes|}}}</div>
| data100 = {{#if:{{{population_blank2|}}}|{{formatnum:{{replace|{{{population_blank2}}}|,|}}}}}}
 
| rowclass101 = mergedrow
Anonymous user