Template:CityInfobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<infobox>
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
  <title source="name">
 
    <default>{{PAGENAME}}</default>
{{#if:{{{image|}}}|
  </title>
<div class="infobox-image">[[File:{{{image}}}|300px]]
  <image source="image">
{{#if:{{{image_desc|}}}|
    <caption source="image_desc" />
<i>{{{image_desc}}}</i>
  </image>
}}
  <data source="nation">
</div>}}
     <label>Nation</label>
{{#if:{{{image2|}}}|
  </data>
<div class="infobox-image">[[File:{{{image2}}}|300px]]
  <data source="affiliation">
{{#if:{{{image2_desc|}}}|
     <label>Affiliation</label>
<i>{{{image2_desc}}}</i>
  </data>
}}
  <data source="ruler">
</div>}}
     <label>Ruler</label>
<table>
  </data>
{{#if:{{{nation|}}}|<tr>
  <data source="government">
     <th>Nation</th>
     <label>Government</label>
    <td>{{{nation}}}</td>
  </data>
</tr>}}
  <data source="demonym">
 
     <label>Demonym</label>
{{#if:{{{affiliation|}}}|<tr>
  </data>
     <th>Affiliation</th>
  <data source="adjective">
    <td>{{{affiliation}}}</td>
     <label>Adjective</label>
</tr>}}
  </data>
 
  <data source="population">
{{#if:{{{ruler|}}}|<tr>
     <label>Population</label>
     <th>Ruler</th>
  </data>
    <td>{{{ruler}}}</td>
  <data source="demographics">
</tr>}}
     <label>Demographics</label>
 
  </data>
{{#if:{{{government|}}}|<tr>
</infobox>
     <th>Government</th>
    <td>{{{government}}}</td>
</tr>}}
 
{{#if:{{{demonym|}}}|<tr>
     <th>Demonym</th>
    <td>{{{demonym}}}</td>
</tr>}}
 
{{#if:{{{adjective|}}}|<tr>
     <th>Adjective</th>
    <td>{{{adjective}}}</td>
</tr>}}
 
{{#if:{{{population|}}}|<tr>
     <th>Population</th>
    <td>{{{population}}}</td>
</tr>}}
 
{{#if:{{{demographics|}}}|<tr>
     <th>Demographics</th>
    <td>{{{demographics}}}</td>
</tr>}}
</table>
</div>

Latest revision as of 23:54, 26 November 2023