Template:Infobox settlement: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Kotniski m nbsp |
meta>Kotniski trying to reduce population to one row when total_type is "empty" |
||
| Line 356: | Line 356: | ||
{{#if:{{{population_total|}}}{{{population_urban|}}}{{{population_metro|}}}{{{population_blank1|}}}{{{population_blank2|}}}| | {{#if:{{{population_total|}}}{{{population_urban|}}}{{{population_metro|}}}{{{population_blank1|}}}{{{population_blank2|}}}| | ||
<tr class="mergedtoprow"> | <tr class="mergedtoprow"> | ||
<td colspan="2">'''Population''' {{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{#if:{{{population_footnotes|}}}|{{{population_footnotes}}}}}</td> | <td {{#ifeq:{{{total_type}}}| ||colspan="2"}}>'''Population''' {{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{#if:{{{population_footnotes|}}}|{{{population_footnotes}}}}}</td> | ||
</tr> | {{#ifeq:{{{total_type}}}| ||</tr> | ||
{{#if:{{{population_total|}}}| | {{#if:{{{population_total|}}}| | ||
<tr class="mergedrow"> | <tr class="mergedrow"> | ||
<th> - {{#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> - {{#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> | ||
</tr> | </tr> | ||