Template:NationInfobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<infobox>
<div class="infobox-title">{{{nation|{{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="capital">
<tr colspan="2">Nation</tr>
     <label>Capital</label>
{{#if:{{{title|}}}|<tr>
  </data>
    <th>Title</th>
  <data source="ruler">
     <td>{{{title}}}</td>
     <label>Ruler</label>
</tr>}}
  </data>
 
  <data source="government">
{{#if:{{{capital|}}}|<tr>
     <label>Government</label>
     <th>Capital</th>
  </data>
    <td>{{{capital}}}</td>
  <data source="demonym">
</tr>}}
     <label>Demonym</label>
 
  </data>
{{#if:{{{ruler|}}}|<tr>
  <data source="adjective">
     <th>Ruler</th>
     <label>Adjective</label>
    <td>{{{ruler}}}</td>
  </data>
</tr>}}
  <data source="languages">
 
     <label>Languages</label>
{{#if:{{{demonym|}}}|<tr>
  </data>
     <th>Demonym</th>
  <data source="religions">
    <td>{{{demonym}}}</td>
     <label>Religions</label>
</tr>}}
  </data>
 
</infobox>
{{#if:{{{adjective|}}}|<tr>
     <th>Adjective</th>
    <td>{{{adjective}}}</td>
</tr>}}
 
{{#if:{{{languages|}}}|<tr>
     <th>Languages</th>
    <td>{{{languages}}}</td>
</tr>}}
 
{{#if:{{{religions|}}}|<tr>
     <th>Religions</th>
    <td>{{{religions}}}</td>
</tr>}}
 
</table>
</div>

Latest revision as of 23:50, 26 November 2023