Template:CityInfobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(11 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]]</div>}}
  <image source="image">
 
    <caption source="image_desc" />
 
  </image>
<table>
  <data source="nation">
 
     <label>Nation</label>
{{#if:{{{nation|}}}|<tr>
  </data>
     <th>Nation</th>
  <data source="affiliation">
     <td>{{{nation}}}</td>
     <label>Affiliation</label>
</tr>}}
  </data>
 
  <data source="ruler">
{{#if:{{{ruler|}}}|<tr>
     <label>Ruler</label>
     <th>Ruler</th>
  </data>
    <td>{{{ruler}}}</td>
  <data source="government">
</tr>}}
     <label>Government</label>
 
  </data>
{{#if:{{{government|}}}|<tr>
  <data source="demonym">
     <th>Government</th>
     <label>Demonym</label>
    <td>{{{government}}}</td>
  </data>
</tr>}}
  <data source="adjective">
 
     <label>Adjective</label>
{{#if:{{{demonym|}}}|<tr>
  </data>
     <th>Demonym</th>
  <data source="population">
    <td>{{{demonym}}}</td>
     <label>Population</label>
</tr>}}
  </data>
 
  <data source="demographics">
{{#if:{{{adjective|}}}|<tr>
     <label>Demographics</label>
     <th>Adjective</th>
  </data>
    <td>{{{adjective}}}</td>
</infobox>
</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