Template:CityInfobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
<infobox>
| name    = {{{name|{{PAGENAME}}}}}
  <title source="name">
| image    = {{{image|}}}
    <default>{{PAGENAME}}</default>
| caption = {{{image_desc|}}}
  </title>
| image2    = {{{image2|}}}
  <image source="image">
| caption2 = {{{image2_desc|}}}
    <caption source="image_desc" />
 
  </image>
| label1  = Former names
  <data source="nation">
|  data1  = {{{former_names|}}}
     <label>Nation</label>
 
  </data>
| header2  = General information
  <data source="affiliation">
 
     <label>Affiliation</label>
| label3  = Status
  </data>
|  data3  = {{{status|}}}
  <data source="ruler">
... <!-- etc. -->
     <label>Ruler</label>
}}
  </data>
 
  <data source="government">
<div class="infobox">
     <label>Government</label>
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
  </data>
 
  <data source="demonym">
{{#if:{{{image|}}}|
     <label>Demonym</label>
<div class="infobox-image">[[File:{{{image}}}|300px]]
  </data>
{{#if:{{{image_desc|}}}|
  <data source="adjective">
<i>{{{image_desc}}}</i>
     <label>Adjective</label>
}}
  </data>
</div>}}
  <data source="population">
{{#if:{{{image2|}}}|
     <label>Population</label>
<div class="infobox-image">[[File:{{{image2}}}|300px]]
  </data>
{{#if:{{{image2_desc|}}}|
  <data source="demographics">
<i>{{{image2_desc}}}</i>
     <label>Demographics</label>
}}
  </data>
</div>}}
</infobox>
<table>
{{#if:{{{nation|}}}|<tr>
     <th>Nation</th>
    <td>{{{nation}}}</td>
</tr>}}
 
{{#if:{{{affiliation|}}}|<tr>
     <th>Affiliation</th>
    <td>{{{affiliation}}}</td>
</tr>}}
 
{{#if:{{{ruler|}}}|<tr>
     <th>Ruler</th>
    <td>{{{ruler}}}</td>
</tr>}}
 
{{#if:{{{government|}}}|<tr>
     <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