Template:CityInfobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(6 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" />
|header1 =
  </image>
| label1 = Label 1
  <data source="nation">
|  data1 = Data 1
     <label>Nation</label>
|header2 =
  </data>
| label2 = Label 2
  <data source="affiliation">
|  data2 = Data 2
     <label>Affiliation</label>
|header3 =
  </data>
| label3 = Label 3
  <data source="ruler">
|  data3 = Data 3
     <label>Ruler</label>
|header4 = Header 4
  </data>
| label4 =
  <data source="government">
|  data4 =
     <label>Government</label>
|header5 =
  </data>
| label5 = Label 5
  <data source="demonym">
|  data5 = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
     <label>Demonym</label>
 
  </data>
|belowstyle =
  <data source="adjective">
|below = Below text
     <label>Adjective</label>
}}
  </data>
 
  <data source="population">
<div class="infobox">
     <label>Population</label>
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
  </data>
 
  <data source="demographics">
{{#if:{{{image|}}}|
     <label>Demographics</label>
<div class="infobox-image">[[File:{{{image}}}|300px]]
  </data>
{{#if:{{{image_desc|}}}|
</infobox>
<i>{{{image_desc}}}</i>
}}
</div>}}
{{#if:{{{image2|}}}|
<div class="infobox-image">[[File:{{{image2}}}|300px]]
{{#if:{{{image2_desc|}}}|
<i>{{{image2_desc}}}</i>
}}
</div>}}
<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