Template:Infobox settlement: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Kotniski
trying to reduce population to one row when total_type is "empty"
meta>Kotniski
try again
Line 357: Line 357:
<tr class="mergedtoprow">
<tr class="mergedtoprow">
<td {{#ifeq:{{{total_type}}}|&nbsp;||colspan="2"}}>'''Population''' {{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{#if:{{{population_footnotes|}}}|{{{population_footnotes}}}}}</td>
<td {{#ifeq:{{{total_type}}}|&nbsp;||colspan="2"}}>'''Population''' {{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{#if:{{{population_footnotes|}}}|{{{population_footnotes}}}}}</td>
{{#ifeq:{{{total_type}}}|&nbsp;||</tr>
{{#ifeq:{{{total_type}}}|&nbsp;||</tr>}}
{{#if:{{{population_total|}}}|
{{#if:{{{population_total|}}}|
<tr class="mergedrow">
{{#ifeq:{{{total_type}}}|&nbsp;||<tr class="mergedrow">
<th>&nbsp;-&nbsp;{{#if:{{{total_type|}}}|{{{total_type}}}|{{#if:{{{population_metro|}}}{{{population_urban|}}}{{{area_metro_km2|}}}{{{area_metro_sq_mi|}}}{{{area_urban_km2|}}}{{{area_urban_sq_mi|}}}|{{#if:{{{settlement_type|}}}|{{{settlement_type}}}|City}}|Total}}}}</th>}}
<th>&nbsp;-&nbsp;{{#if:{{{total_type|}}}|{{{total_type}}}|{{#if:{{{population_metro|}}}{{{population_urban|}}}{{{area_metro_km2|}}}{{{area_metro_sq_mi|}}}{{{area_urban_km2|}}}{{{area_urban_sq_mi|}}}|{{#if:{{{settlement_type|}}}|{{{settlement_type}}}|City}}|Total}}}}</th>}}
<td>{{formatnum:{{{population_total}}}}}</td>
<td>{{formatnum:{{{population_total}}}}}</td>

Revision as of 12:43, 18 December 2007

{{{official_name}}}