Template:CityInfobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
<infobox>
| name    = {{{name|{{PAGENAME}}}}}
  <title source="name">
| image    = {{#if:{{{image|}}}|[[File:{{{image|}}}|300px]]}}
    <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>
| label2 = Label 2
  </data>
|  data2 = Data 2
  <data source="affiliation">
| label3 = Label 3
     <label>Affiliation</label>
|  data3 = Data 3
  </data>
| label5 = Label 5
  <data source="ruler">
|  data5 = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
     <label>Ruler</label>
|belowstyle =
  </data>
|below = Below text
  <data source="government">
}}
     <label>Government</label>
 
  </data>
<div class="infobox">
  <data source="demonym">
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
     <label>Demonym</label>
 
  </data>
{{#if:{{{image|}}}|
  <data source="adjective">
<div class="infobox-image">[[File:{{{image}}}|300px]]
     <label>Adjective</label>
{{#if:{{{image_desc|}}}|
  </data>
<i>{{{image_desc}}}</i>
  <data source="population">
}}
     <label>Population</label>
</div>}}
  </data>
{{#if:{{{image2|}}}|
  <data source="demographics">
<div class="infobox-image">[[File:{{{image2}}}|300px]]
     <label>Demographics</label>
{{#if:{{{image2_desc|}}}|
  </data>
<i>{{{image2_desc}}}</i>
</infobox>
}}
</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