Template:Infobox settlement: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Plastikspork
Use more uniform table markup <th> for labels, and <td> for data, see if this addresses the issue raised on the talk page
meta>Plastikspork
Update per talk page
Line 304: Line 304:
<th>{{{established_title3}}}</th>
<th>{{{established_title3}}}</th>
<td>{{{established_date3}}}</td>
<td>{{{established_date3}}}</td>
</tr>
}}{{#if:{{{established_title4|}}}|
<tr class="mergedrow">
<th>{{{established_title4}}}</th>
<td>{{{established_date4}}}</td>
</tr>
</tr>
}}{{#if:{{{extinct_title|}}}|
}}{{#if:{{{extinct_title|}}}|
Line 338: Line 343:
{{#if:{{{government_type|}}}{{{governing_body|}}}{{{leader_title|}}}{{{leader_title1|}}}{{{leader_title2|}}}{{{leader_title3|}}}{{{leader_title4|}}}|
{{#if:{{{government_type|}}}{{{governing_body|}}}{{{leader_title|}}}{{{leader_title1|}}}{{{leader_title2|}}}{{{leader_title3|}}}{{{leader_title4|}}}|
<tr class="mergedtoprow"><!-- ***Government*** -->
<tr class="mergedtoprow"><!-- ***Government*** -->
<td colspan="2">'''Government'''{{{government_footnotes|}}}</td>
<th colspan="2">Government<span style="font-weight:normal">{{{government_footnotes|}}}</span></th>
</tr>
</tr>
{{#if:{{{government_type|}}}|
{{#if:{{{government_type|}}}|
Line 378: Line 383:
{{#if:{{{area_total_km2|}}}{{{area_total_ha|}}}{{{area_total_acre|}}}{{{area_total_sq_mi|}}}{{{area_total_dunam|}}}{{{area_land_km2|}}}{{{area_land_ha|}}}{{{area_land_acre|}}}{{{area_land_sq_mi|}}}{{{area_water_km2|}}}{{{area_water_ha|}}}{{{area_water_acre|}}}{{{area_water_sq_mi|}}}{{{area_urban_km2|}}}{{{area_urban_ha|}}}{{{area_urban_acre|}}}{{{area_urban_sq_mi|}}}{{{area_rural_sq_mi|}}}{{{area_rural_ha|}}}{{{area_rural_acre|}}}{{{area_rural_km2|}}}{{{area_metro_km2|}}}{{{area_metro_ha|}}}{{{area_metro_acre|}}}{{{area_blank1_km2|}}}{{{area_blank1_ha|}}}{{{area_blank1_acre|}}}{{{area_metro_sq_mi|}}}{{{area_blank1_sq_mi|}}}|
{{#if:{{{area_total_km2|}}}{{{area_total_ha|}}}{{{area_total_acre|}}}{{{area_total_sq_mi|}}}{{{area_total_dunam|}}}{{{area_land_km2|}}}{{{area_land_ha|}}}{{{area_land_acre|}}}{{{area_land_sq_mi|}}}{{{area_water_km2|}}}{{{area_water_ha|}}}{{{area_water_acre|}}}{{{area_water_sq_mi|}}}{{{area_urban_km2|}}}{{{area_urban_ha|}}}{{{area_urban_acre|}}}{{{area_urban_sq_mi|}}}{{{area_rural_sq_mi|}}}{{{area_rural_ha|}}}{{{area_rural_acre|}}}{{{area_rural_km2|}}}{{{area_metro_km2|}}}{{{area_metro_ha|}}}{{{area_metro_acre|}}}{{{area_blank1_km2|}}}{{{area_blank1_ha|}}}{{{area_blank1_acre|}}}{{{area_metro_sq_mi|}}}{{{area_blank1_sq_mi|}}}|
<tr class="mergedtoprow"><!-- ***Area*** -->
<tr class="mergedtoprow"><!-- ***Area*** -->
<td {{#ifeq:{{{total_type}}}|&nbsp;||colspan="2"}}>'''Area'''{{{area_footnotes|}}}</td>
<th {{#ifeq:{{{total_type}}}|&nbsp;||colspan="2"}}>Area<span style="font-weight:normal">{{{area_footnotes|}}}</span></th>
{{#ifeq:{{{total_type}}}|&nbsp;||</tr>}}
{{#ifeq:{{{total_type}}}|&nbsp;||</tr>}}
{{#if:{{{area_total_km2|}}}{{{area_total_ha|}}}{{{area_total_acre|}}}{{{area_total_sq_mi|}}}{{{area_total_dunam|}}}|
{{#if:{{{area_total_km2|}}}{{{area_total_ha|}}}{{{area_total_acre|}}}{{{area_total_sq_mi|}}}{{{area_total_dunam|}}}|
Line 532: Line 537:
{{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|
{{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|
<tr class="mergedtoprow">
<tr class="mergedtoprow">
<td>'''Elevation'''{{{elevation_footnotes|}}}</td>
<th>Elevation<span style="font-weight:normal">{{{elevation_footnotes|}}}</span></th>
<td>{{infobox_settlement/lengthdisp
<td>{{infobox_settlement/lengthdisp
       |m  ={{{elevation_m|}}}
       |m  ={{{elevation_m|}}}
Line 573: Line 578:
{{#if:{{{population|}}}{{{population_total|}}}{{{population_urban|}}}{{{population_rural|}}}{{{population_metro|}}}{{{population_blank1|}}}{{{population_blank2|}}}{{{population_est|}}}|
{{#if:{{{population|}}}{{{population_total|}}}{{{population_urban|}}}{{{population_rural|}}}{{{population_metro|}}}{{{population_blank1|}}}{{{population_blank2|}}}{{{population_est|}}}|
<tr class="mergedtoprow">
<tr class="mergedtoprow">
{{#if:{{{population|}}}|
{{#if:{{{population|}}}
<td>'''Population''' {{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{{population_footnotes|}}}</td>
|<th>Population <span style="font-weight:normal">{{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{{population_footnotes|}}}</span></th>
<td>{{formatnum:{{{population}}}}}</td>
<td>{{formatnum:{{{population}}}}}</td>
|<td {{#ifeq:{{{total_type}}}|&nbsp;||colspan="2"}}>'''Population''' {{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{{population_footnotes|}}}</td>
|<th {{#ifeq:{{{total_type}}}|&nbsp;||colspan="2"}}>Population <span style="font-weight:normal">{{#if:{{{population_as_of|}}}|({{{population_as_of}}})}}{{{population_footnotes|}}}</span></th>
}}
}}
{{#ifeq:{{{total_type}}}|&nbsp;||</tr>}}
{{#ifeq:{{{total_type}}}|&nbsp;||</tr>}}
Line 586: Line 591:
}}{{#if:{{{population_est|}}}|
}}{{#if:{{{population_est|}}}|
<tr class="mergedrow">
<tr class="mergedrow">
<th>&nbsp;•&nbsp;Estimate&nbsp;<span style="font-weight:normal">({{{pop_est_as_of}}})</span></th>
<th>&nbsp;•&nbsp;Estimate&nbsp;<span style="font-weight:normal">({{{pop_est_as_of}}}){{{pop_est_footnotes|}}}</span></th>
<td>{{formatnum:{{{population_est}}}}}</td>
<td>{{formatnum:{{{population_est}}}}}</td>
</tr>
</tr>
Line 791: Line 796:
}}{{#if:{{{population_demonym|}}}|
}}{{#if:{{{population_demonym|}}}|
<tr class="mergedtoprow">
<tr class="mergedtoprow">
<td>'''[[Demonym]]'''</td>
<th>[[Demonym]]</th>
<td>{{{population_demonym}}}</td>
<td>{{{population_demonym}}}</td>
</tr>
</tr>
}}{{#if:{{{demographics_type1|}}}|
}}{{#if:{{{demographics_type1|}}}|
<tr class="mergedrow"><!-- ***Demographics 1*** -->
<tr class="mergedrow"><!-- ***Demographics 1*** -->
<td colspan="2">'''{{{demographics_type1}}}'''{{{demographics1_footnotes|}}}</td>
<th colspan="2">{{{demographics_type1}}}<span style="font-weight:normal">{{{demographics1_footnotes|}}}</span></th>
</tr>
</tr>
{{#if:{{{demographics1_title1|}}}|
{{#if:{{{demographics1_title1|}}}|
Line 825: Line 830:
}}{{#if:{{{demographics_type2|}}}|
}}{{#if:{{{demographics_type2|}}}|
<tr class="mergedrow"><!-- ***Demographics 2*** -->
<tr class="mergedrow"><!-- ***Demographics 2*** -->
<td colspan="2">'''{{{demographics_type2}}}'''{{{demographics2_footnotes|}}}</td>
<th colspan="2">{{{demographics_type2}}}<span style="font-weight:normal">{{{demographics2_footnotes|}}}</span></th>
</tr>
</tr>
{{#if:{{{demographics2_title1|}}}|
{{#if:{{{demographics2_title1|}}}|

Revision as of 20:15, 1 June 2013

Infobox settlement