Template:CityInfobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 3: Line 3:
| image    = {{#if:{{{image|}}}|[[File:{{{image|}}}|300px]]}}
| image    = {{#if:{{{image|}}}|[[File:{{{image|}}}|300px]]}}
| caption = {{{image_desc|}}}
| caption = {{{image_desc|}}}
| image2    = {{{image2|}}}
| image2    = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|300px]]}}
| caption2 = {{{image2_desc|}}}
| caption2 = {{{image2_desc|}}}
|header1 =  
|header1 =  
| label1 = Label 1
| label1 = Nation
|  data1 = Data 1
|  data1 = {{{nation|}}}
| label2 = Label 2
| label2 = Affiliation
|  data2 = Data 2
|  data2 = {{{affiliation|}}}
| label3 = Label 3
| label3 = Ruler
|  data3 = Data 3
|  data3 = {{{ruler|}}}
| label5 = Label 5
| label5 = Government
|  data5 = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|  data5 = {{{government|}}}
|belowstyle =  
| label6 = Demonym
|below = Below text
|  data6 = {{{demonym|}}}
| label7 = Adjective
|  data7 = {{{adjective|}}}
| label8 = Population
| data8 = {{{population|}}}
| label9 = Demographics
|  data9 = {{{demographics|}}}
}}
}}
<div class="infobox">
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{{image}}}|300px]]
{{#if:{{{image_desc|}}}|
<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>

Revision as of 16:22, 28 July 2022