Template:Infobox nation: Difference between revisions

Created page with "<!-- Template:Infobox nation (HTML-safe, auto-links, collapsible lists) --> <table class="infobox infobox-nation"> <tr> <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th> </tr> <!-- Flag --> {{#if: {{{flag|}}} | <tr> <td class="infobox-image mw-no-invert" colspan="2"> [[File:{{{flag}}}|{{{flagsize|260px}}}|alt={{{flag_alt|Flag of {{{name|{{PAGENAME}}}}}}}}|center]] {{#if: {{{flag_caption|}}} | <div class="infobox-caption">{{..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
   </tr>
   </tr>


   <!-- Flag -->
<!-- Flag -->
   {{#if: {{{flag|}}} |
{{#if: {{{flag|}}} |
<tr>
   <td class="infobox-image mw-no-invert" colspan="2">
    [[File:{{{flag}}}|{{{flagsize|260px}}}|alt={{{flag_alt|}}}|center]]
    {{#if: {{{flag_caption|}}} | <div class="infobox-caption">{{{flag_caption}}}</div> }}
  </td>
</tr>
}}
 
<!-- Coat of Arms -->
{{#if: {{{coa|}}} |
<tr>
   <td class="infobox-image mw-no-invert" colspan="2">
    [[File:{{{coa}}}|{{{coasize|220px}}}|alt={{{coa_alt|}}}|center]]
    {{#if: {{{flag|}}} | | {{#pageimage:{{{coa}}}}} }}  <!-- only if no flag -->
    {{#if: {{{coa_caption|}}} | <div class="infobox-caption">{{{coa_caption}}}</div> }}
  </td>
</tr>
}}
 
 
  <!-- Core facts -->
  {{#if: {{{nation_type|}}} |
   <tr>
   <tr>
     <td class="infobox-image mw-no-invert" colspan="2">
     <th scope="row">Nation type</th>
      [[File:{{{flag}}}|{{{flagsize|260px}}}|alt={{{flag_alt|Flag of {{{name|{{PAGENAME}}}}}}}}|center]]
    <td>{{{nation_type}}}</td>
      {{#if: {{{flag_caption|}}} | <div class="infobox-caption">{{{flag_caption}}}</div> }}
      {{#pageimage:{{{flag}}}}} <!-- sets the PageImages lead image for search -->
    </td>
   </tr>
   </tr>
   }}
   }}


  <!-- Coat of arms -->
   {{#if: {{{government|}}} |
   {{#if: {{{coa|}}} |
   <tr>
   <tr>
     <td class="infobox-image mw-no-invert" colspan="2">
     <th scope="row">Form of government</th>
      [[File:{{{coa}}}|{{{coasize|220px}}}|alt={{{coa_alt|Coat of arms of {{{name|{{PAGENAME}}}}}}}}|center]]
    <td>{{{government}}}</td>
      {{#if: {{{coa_caption|}}} | <div class="infobox-caption">{{{coa_caption}}}</div> }}
    </td>
   </tr>
   </tr>
   }}
   }}


  <!-- Overview -->
   {{#if: {{{anthem|}}} |
   {{#if: {{{nation_type|}}} |
   <tr>
   <tr>
     <th scope="row">Nation type</th>
     <th scope="row">National anthem</th>
     <td>{{{nation_type}}}</td>
     <td>[[{{{anthem}}}]]</td>
   </tr>
   </tr>
   }}
   }}


   {{#if: {{{government_form|}}} |
   {{#if: {{{motto|}}} |
   <tr>
   <tr>
     <th scope="row">Form of government</th>
     <th scope="row">Motto</th>
     <td>{{{government_form}}}</td>
     <td><i>{{{motto}}}</i></td>
   </tr>
   </tr>
   }}
   }}


   {{#if: {{{alliance|}}}{{{alliance1|}}}{{{alliance2|}}}{{{alliance3|}}} |
   {{#if: {{{currency|}}} |
   <tr>
   <tr>
     <th scope="row">Alliances</th>
     <th scope="row">Currency</th>
     <td>
     <td>[[{{{currency}}}]]</td>
      <ul>
        {{#if: {{{alliance|}}}  | <li>[[{{{alliance}}}]]</li> }}
        {{#if: {{{alliance1|}}} | <li>[[{{{alliance1}}}]]</li> }}
        {{#if: {{{alliance2|}}} | <li>[[{{{alliance2}}}]]</li> }}
        {{#if: {{{alliance3|}}} | <li>[[{{{alliance3}}}]]</li> }}
      </ul>
    </td>
   </tr>
   </tr>
   }}
   }}


   <!-- Leadership section -->
<!-- Languages -->
   {{#if: {{{head_of_state|}}}{{{head_of_government|}}} |
{{#if: {{{language1|}}}{{{language2|}}}{{{language3|}}}{{{language4|}}}{{{language5|}}}{{{language6|}}} |
   <tr>
<tr>
    <th class="infobox-section" colspan="2">Leadership</th>
  <th scope="row">Languages</th>
  </tr>
   <td>[[{{{language1|}}}]]{{#if: {{{language2|}}} |, [[{{{language2}}}]]}}{{#if: {{{language3|}}} |, [[{{{language3}}}]]}}{{#if: {{{language4|}}} |, [[{{{language4}}}]]}}{{#if: {{{language5|}}} |, [[{{{language5}}}]]}}{{#if: {{{language6|}}} |, [[{{{language6}}}]]}}</td>
</tr>
}}
 
<!-- Alliances -->
{{#if: {{{alliance1|}}}{{{alliance2|}}}{{{alliance3|}}}{{{alliance4|}}}{{{alliance5|}}}{{{alliance6|}}} |
<tr>
  <th scope="row">Alliances</th>
  <td>[[{{{alliance1|}}}]]{{#if: {{{alliance2|}}} |, [[{{{alliance2}}}]]}}{{#if: {{{alliance3|}}} |, [[{{{alliance3}}}]]}}{{#if: {{{alliance4|}}} |, [[{{{alliance4}}}]]}}{{#if: {{{alliance5|}}} |, [[{{{alliance5}}}]]}}{{#if: {{{alliance6|}}} |, [[{{{alliance6}}}]]}}</td>
</tr>
}}
 
  <!-- Separator -->
   {{#if: {{{hos|}}}{{{hog|}}} |
   <tr><th class="infobox-section" colspan="2">Leadership</th></tr>
   }}
   }}


   {{#if: {{{head_of_state|}}} |
   {{#if: {{{hos|}}} |
   <tr>
   <tr>
     <th scope="row">Head of state</th>
     <th scope="row">Head of state</th>
     <td>[[{{{head_of_state}}}]]</td>
     <td>[[{{{hos}}}]]</td>
   </tr>
   </tr>
   }}
   }}


   {{#if: {{{head_of_government|}}} |
   {{#if: {{{hog|}}} |
   <tr>
   <tr>
     <th scope="row">Head of government</th>
     <th scope="row">Head of government</th>
     <td>[[{{{head_of_government}}}]]</td>
     <td>[[{{{hog}}}]]</td>
   </tr>
   </tr>
   }}
   }}


   <!-- Demographics / Geography -->
   <!-- Separator -->
   {{#if: {{{population|}}}{{{capital|}}}{{{major1|}}}{{{prov1|}}} |
   {{#if: {{{population|}}}{{{capital|}}}{{{city1|}}}{{{province1|}}} |
   <tr>
   <tr><th class="infobox-section" colspan="2">Territory & population</th></tr>
    <th class="infobox-section" colspan="2">Territory & population</th>
  </tr>
   }}
   }}


Line 98: Line 118:


   <!-- Major cities (collapsible) -->
   <!-- Major cities (collapsible) -->
   {{#if: {{{major1|}}}{{{major2|}}}{{{major3|}}}{{{major4|}}}{{{major5|}}}{{{major6|}}}{{{major7|}}}{{{major8|}}}{{{major9|}}}{{{major10|}}} |
   {{#if: {{{city1|}}}{{{city2|}}}{{{city3|}}}{{{city4|}}}{{{city5|}}}{{{city6|}}}{{{city7|}}}{{{city8|}}}{{{city9|}}}{{{city10|}}} |
  <tr>
    <th class="infobox-sub" colspan="2">Major cities</th>
  </tr>
   <tr>
   <tr>
     <td colspan="2">
     <td colspan="2">
       <div class="mw-collapsible mw-collapsed">
       <div class="mw-collapsible mw-collapsed">
        <strong>Major cities</strong>
         <ul>
         <ul>
           {{#if: {{{major1|}}}  | <li>[[{{{major1}}}]]</li> }}
           {{#if: {{{city1|}}}  | <li>[[{{{city1}}}]]</li> }}
           {{#if: {{{major2|}}}  | <li>[[{{{major2}}}]]</li> }}
           {{#if: {{{city2|}}}  | <li>[[{{{city2}}}]]</li> }}
           {{#if: {{{major3|}}}  | <li>[[{{{major3}}}]]</li> }}
           {{#if: {{{city3|}}}  | <li>[[{{{city3}}}]]</li> }}
           {{#if: {{{major4|}}}  | <li>[[{{{major4}}}]]</li> }}
           {{#if: {{{city4|}}}  | <li>[[{{{city4}}}]]</li> }}
           {{#if: {{{major5|}}}  | <li>[[{{{major5}}}]]</li> }}
           {{#if: {{{city5|}}}  | <li>[[{{{city5}}}]]</li> }}
           {{#if: {{{major6|}}}  | <li>[[{{{major6}}}]]</li> }}
           {{#if: {{{city6|}}}  | <li>[[{{{city6}}}]]</li> }}
           {{#if: {{{major7|}}}  | <li>[[{{{major7}}}]]</li> }}
           {{#if: {{{city7|}}}  | <li>[[{{{city7}}}]]</li> }}
           {{#if: {{{major8|}}}  | <li>[[{{{major8}}}]]</li> }}
           {{#if: {{{city8|}}}  | <li>[[{{{city8}}}]]</li> }}
           {{#if: {{{major9|}}}  | <li>[[{{{major9}}}]]</li> }}
           {{#if: {{{city9|}}}  | <li>[[{{{city9}}}]]</li> }}
           {{#if: {{{major10|}}} | <li>[[{{{major10}}}]]</li> }}
           {{#if: {{{city10|}}} | <li>[[{{{city10}}}]]</li> }}
         </ul>
         </ul>
       </div>
       </div>
Line 121: Line 143:


   <!-- Provinces (collapsible) -->
   <!-- Provinces (collapsible) -->
   {{#if: {{{prov1|}}}{{{prov2|}}}{{{prov3|}}}{{{prov4|}}}{{{prov5|}}}{{{prov6|}}}{{{prov7|}}}{{{prov8|}}}{{{prov9|}}}{{{prov10|}}} |
   {{#if: {{{province1|}}}{{{province2|}}}{{{province3|}}}{{{province4|}}}{{{province5|}}}{{{province6|}}}{{{province7|}}}{{{province8|}}}{{{province9|}}}{{{province10|}}} |
  <tr>
    <th class="infobox-sub" colspan="2">Provinces</th>
  </tr>
   <tr>
   <tr>
     <td colspan="2">
     <td colspan="2">
       <div class="mw-collapsible mw-collapsed">
       <div class="mw-collapsible mw-collapsed">
        <strong>Provinces</strong>
         <ul>
         <ul>
           {{#if: {{{prov1|}}}  | <li>[[{{{prov1}}}]]</li> }}
           {{#if: {{{province1|}}}  | <li>[[{{{province1}}}]]</li> }}
           {{#if: {{{prov2|}}}  | <li>[[{{{prov2}}}]]</li> }}
           {{#if: {{{province2|}}}  | <li>[[{{{province2}}}]]</li> }}
           {{#if: {{{prov3|}}}  | <li>[[{{{prov3}}}]]</li> }}
           {{#if: {{{province3|}}}  | <li>[[{{{province3}}}]]</li> }}
           {{#if: {{{prov4|}}}  | <li>[[{{{prov4}}}]]</li> }}
           {{#if: {{{province4|}}}  | <li>[[{{{province4}}}]]</li> }}
           {{#if: {{{prov5|}}}  | <li>[[{{{prov5}}}]]</li> }}
           {{#if: {{{province5|}}}  | <li>[[{{{province5}}}]]</li> }}
           {{#if: {{{prov6|}}}  | <li>[[{{{prov6}}}]]</li> }}
           {{#if: {{{province6|}}}  | <li>[[{{{province6}}}]]</li> }}
           {{#if: {{{prov7|}}}  | <li>[[{{{prov7}}}]]</li> }}
           {{#if: {{{province7|}}}  | <li>[[{{{province7}}}]]</li> }}
           {{#if: {{{prov8|}}}  | <li>[[{{{prov8}}}]]</li> }}
           {{#if: {{{province8|}}}  | <li>[[{{{province8}}}]]</li> }}
           {{#if: {{{prov9|}}}  | <li>[[{{{prov9}}}]]</li> }}
           {{#if: {{{province9|}}}  | <li>[[{{{province9}}}]]</li> }}
           {{#if: {{{prov10|}}} | <li>[[{{{prov10}}}]]</li> }}
           {{#if: {{{province10|}}} | <li>[[{{{province10}}}]]</li> }}
         </ul>
         </ul>
       </div>
       </div>
Line 144: Line 168:


</table>
</table>
<includeonly>{{#ifeq:{{NAMESPACE}}| | {{#if:{{{nocat|}}}| | [[Category:Nations]]}} }}</includeonly>


<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
   "description": "Nation infobox for Mundus. Enter image filenames (no \"File:\" prefix). Nation type/government are free text; most others auto-link.",
   "description": "Nation infobox for Mundus. Enter page names (no [[ ]]) for linked fields.",
   "params": {
   "params": {
     "name":         { "label": "Name", "type": "string", "example": "Directionland" },
     "name":       { "label": "Name", "type": "string", "example": "Directionland" },
 
    "flag":        { "label": "Flag image filename", "type": "string", "example": "Directionland_Flag.png" },
    "flagsize":    { "label": "Flag size", "type": "string", "default": "260px" },
    "flag_alt":    { "label": "Flag alt text", "type": "string" },
    "flag_caption":{ "label": "Flag caption", "type": "string" },


     "flag":         { "label": "Flag filename", "type": "string", "example": "Directionland_flag.png" },
     "coa":         { "label": "Coat of Arms image filename", "type": "string", "example": "Directionland_CoA.png" },
     "flagsize":     { "label": "Flag size", "type": "string", "default": "260px" },
     "coasize":     { "label": "CoA size", "type": "string", "default": "220px" },
     "flag_alt":     { "label": "Flag alt text", "type": "string" },
     "coa_alt":     { "label": "CoA alt text", "type": "string" },
     "flag_caption": { "label": "Flag caption", "type": "string" },
     "coa_caption": { "label": "CoA caption", "type": "string" },


     "coa":           { "label": "Coat of Arms filename", "type": "string", "example": "Directionland_CoA.png" },
     "nation_type": { "label": "Nation type", "type": "string",
    "coasize":      { "label": "Coat of Arms size", "type": "string", "default": "220px" },
                    "suggestedvalues": ["Empire","Kingdom","Republic","Tribal Confederation","City-state","Federation","Protectorate"] },
    "coa_alt":      { "label": "Coat of Arms alt text", "type": "string" },
    "coa_caption":  { "label": "Coat of Arms caption", "type": "string" },


     "nation_type":   { "label": "Nation type", "type": "string",
     "government": { "label": "Form of government (page name)", "type": "string", "example": "Constitutional monarchy" },
                      "suggestedvalues": ["Empire","Kingdom","Republic","Confederation","Commonwealth","City-state","Tribal federation","Protectorate"] },
    "anthem":     { "label": "National anthem (page name)", "type": "string", "example": "Our Sacred Land" },
    "motto":      { "label": "Motto", "type": "string", "example": "Unity, Wisdom, Mercy" },
    "currency":    { "label": "Currency (page name)", "type": "string", "example": "Directian crown" },


     "government_form": { "label": "Form of government", "type": "string",
     "language1":   { "label": "Language 1 (page name)", "type": "string", "example": "Directian" },
                        "suggestedvalues": ["Constitutional monarchy","Absolute monarchy","Republic","Theocracy","Council rule","Military junta","Elective monarchy"] },
    "language2":  { "label": "Language 2 (page name)", "type": "string", "example": "Ruulden" },
    "language3":  { "label": "Language 3 (page name)", "type": "string" },
    "language4":  { "label": "Language 4 (page name)", "type": "string" },
    "language5":  { "label": "Language 5 (page name)", "type": "string" },
    "language6":  { "label": "Language 6 (page name)", "type": "string" },


     "alliance":     { "label": "Alliance (page name)", "type": "string" },
     "alliance1":   { "label": "Alliance 1 (page name)", "type": "string" },
     "alliance1":     { "label": "Alliance 2 (page name)", "type": "string" },
     "alliance2":   { "label": "Alliance 2 (page name)", "type": "string" },
     "alliance2":    { "label": "Alliance 3 (page name)", "type": "string" },
     "alliance3":  { "label": "Alliance 3 (page name)", "type": "string" },
     "alliance3":    { "label": "Alliance 4 (page name)", "type": "string" },
     "alliance4":  { "label": "Alliance 4 (page name)", "type": "string" },
     "alliance5":  { "label": "Alliance 5 (page name)", "type": "string" },
     "alliance6":  { "label": "Alliance 6 (page name)", "type": "string" },


     "head_of_state":   { "label": "Head of state (page name)", "type": "string" },
     "hos":         { "label": "Head of state (page name)", "type": "string", "example": "Emperor Alexander XVII" },
     "head_of_government": { "label": "Head of government (page name)", "type": "string" },
     "hog":         { "label": "Head of government (page name)", "type": "string", "example": "Ser Marcus" },


     "population":   { "label": "Estimated population", "type": "string", "example": " ~ 12 million" },
     "population": { "label": "Estimated population", "type": "string", "example": "≈ 14,500,000" },
     "capital":       { "label": "Capital (page name)", "type": "string" },
     "capital":     { "label": "Capital (page name)", "type": "string", "example": "God's Landing" },


     "major1": { "label": "Major city 1 (page name)", "type": "string" },
     "city1":       { "label": "Major city 1 (page name)", "type": "string" },
     "major2": { "label": "Major city 2 (page name)", "type": "string" },
     "city2":       { "label": "Major city 2 (page name)", "type": "string" },
     "major3": { "label": "Major city 3 (page name)", "type": "string" },
     "city3":       { "label": "Major city 3 (page name)", "type": "string" },
     "major4": { "label": "Major city 4 (page name)", "type": "string" },
     "city4":       { "label": "Major city 4 (page name)", "type": "string" },
     "major5": { "label": "Major city 5 (page name)", "type": "string" },
     "city5":       { "label": "Major city 5 (page name)", "type": "string" },
     "major6": { "label": "Major city 6 (page name)", "type": "string" },
     "city6":       { "label": "Major city 6 (page name)", "type": "string" },
     "major7": { "label": "Major city 7 (page name)", "type": "string" },
     "city7":       { "label": "Major city 7 (page name)", "type": "string" },
     "major8": { "label": "Major city 8 (page name)", "type": "string" },
     "city8":       { "label": "Major city 8 (page name)", "type": "string" },
     "major9": { "label": "Major city 9 (page name)", "type": "string" },
     "city9":       { "label": "Major city 9 (page name)", "type": "string" },
     "major10": { "label": "Major city 10 (page name)", "type": "string" },
     "city10":     { "label": "Major city 10 (page name)", "type": "string" },


     "prov1":  { "label": "Province 1 (page name)", "type": "string" },
     "province1":  { "label": "Province 1 (page name)", "type": "string" },
     "prov2":  { "label": "Province 2 (page name)", "type": "string" },
     "province2":  { "label": "Province 2 (page name)", "type": "string" },
     "prov3":  { "label": "Province 3 (page name)", "type": "string" },
     "province3":  { "label": "Province 3 (page name)", "type": "string" },
     "prov4":  { "label": "Province 4 (page name)", "type": "string" },
     "province4":  { "label": "Province 4 (page name)", "type": "string" },
     "prov5":  { "label": "Province 5 (page name)", "type": "string" },
     "province5":  { "label": "Province 5 (page name)", "type": "string" },
     "prov6":  { "label": "Province 6 (page name)", "type": "string" },
     "province6":  { "label": "Province 6 (page name)", "type": "string" },
     "prov7":  { "label": "Province 7 (page name)", "type": "string" },
     "province7":  { "label": "Province 7 (page name)", "type": "string" },
     "prov8":  { "label": "Province 8 (page name)", "type": "string" },
     "province8":  { "label": "Province 8 (page name)", "type": "string" },
     "prov9":  { "label": "Province 9 (page name)", "type": "string" },
     "province9":  { "label": "Province 9 (page name)", "type": "string" },
     "prov10":  { "label": "Province 10 (page name)", "type": "string" }
     "province10":  { "label": "Province 10 (page name)", "type": "string" }
   },
   },
   "paramOrder": ["name","flag","flagsize","flag_alt","flag_caption","coa","coasize","coa_alt","coa_caption","nation_type","government_form","alliance","alliance1","alliance2","alliance3","head_of_state","head_of_government","population","capital","major1","major2","major3","major4","major5","major6","major7","major8","major9","major10","prov1","prov2","prov3","prov4","prov5","prov6","prov7","prov8","prov9","prov10"]
   "paramOrder": ["name","flag","flagsize","flag_alt","flag_caption","coa","coasize","coa_alt","coa_caption","nation_type","government","anthem","motto","currency","language1","language2","language3","language4","language5","language6","alliance1","alliance2","alliance3","alliance4","alliance5","alliance6","hos","hog","population","capital","city1","city2","city3","city4","city5","city6","city7","city8","city9","city10","province1","province2","province3","province4","province5","province6","province7","province8","province9","province10"]
}
}
</templatedata>
</templatedata>
Line 208: Line 245:
<pre>
<pre>
{{Infobox nation
{{Infobox nation
| name             = Directionland
| name         = Directionland
| flag             = Directionland_flag.png
| flag         = Directionland_Flag.png
| flag_caption     = Banner of the Four Lions
| flag_caption = The Four Lions banner
| coa             = Directionland_CoA.png
| coa         = Directionland_CoA.png
| nation_type     = Empire
| nation_type = Empire
| government_form  = Constitutional monarchy
| government  = Constitutional monarchy
| alliance        = Imperial Union
| anthem      = Our Sacred Land
| head_of_state   = Emperor Alexander XVII
| motto        = Unity, Wisdom, Mercy
| head_of_government = Ser Marcus
| currency    = Directian crown
| population       = ~ 12 million
| language1    = Directian
| capital         = Simonville
| language2    = Ruulden
| major1 = Ironwood City
| alliance1   = League of the North
| major2 = St. Stylinson
| hos          = Emperor Alexander XVII
| major3 = God's Landing
| hog          = Ser Marcus
| prov1  = Gandry
| population   = ≈ 14,500,000
| prov2  = Ironwood
| capital     = God's Landing
| prov3  = Grelian
| city1        = Simonville
| city2        = St. Stylinson
| city3        = Ironwood
| province1    = Gandry
| province2    = Ironwood
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>