Template:CityInfobox: Difference between revisions

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