Template:Nation: Difference between revisions

>CorruptedGreed
m CorruptedGreed moved page Template:EnhancedNation to Template:Enhanced Nation: Infobox Builder: template renamed
>PrestusHood
No edit summary
Line 1: Line 1:
<infobox>
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width:280px; background: border-collapse:collapse; border:3.5px solid #008721; font-size:smaller; line-height:1.5"
  <title source="title1"/>
|-
  <image source="image1">
|<div>
    <caption source="caption1"/>
{| border="0" cellpadding="4" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
  </image>
|-
  <group>
| colspan="2" style="{{#if:{{{eras|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{eras|}}}
    <header>Coat of arms</header>
|-
    <image source="image2">
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">{{{title1}}}</font>}}}
      <caption source="caption2"/>
|- style="text-align:center;"
    </image>
|-
  </group>
{{#if:{{{image1<includeonly>|</includeonly>}}} |
  <group>
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image1}}}
    <header>Territory</header>
{{!}}-
    <image source="image3">
}}
      <caption source="caption3"/>
|-
    </image>
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">Coat of Arms</font>}}}
  </group>
|- style="text-align:center;"
  <group collapse="open">
|-
    <header>National info</header>
{{#if:{{{image1<includeonly>|</includeonly>}}} |
    <data source="full_name">
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image2}}}
      <label>Full name</label>
{{!}}-
    </data>
}}
    <data source="national_anthem">
|-
      <label>National anthem</label>
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">Territory</font>}}}
    </data>
|- style="text-align:center;"
    <data source="name_in_towny">
|-
      <label>Name in towny</label>
{{#if:{{{image1<includeonly>|</includeonly>}}} |
    </data>
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image3}}}
    <data source="motto">
{{!}}-
      <label>Motto</label>
}}
    </data>
|-
    <data source="/n_list_page">
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''National Information'''
      <label>/n list page</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Full Name'''
    <data source="capital_city">
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{full_name|}}}
      <label>Capital city</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{national_anthem|}}}| |display: none;}}" valign="top" | '''National Anthem'''
    <data source="largest_city">
| style="{{#if:{{{national_anthem|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{national_anthem|}}}
      <label>Largest city</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{name_in_towny|}}}| |display: none;}}" valign="top" | '''Name in Towny'''
    <data source="oldest_city">
| style="{{#if:{{{name_in_towny|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{name_in_towny|}}}
      <label>Oldest city</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{motto|}}}| |display: none;}}" valign="top" | '''Motto'''
    <data source="established">
| style="{{#if:{{{motto|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{motto|}}}
      <label>Established</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{n_list_page|}}}| |display: none;}}" valign="top" | '''/n list page'''
  </group>
| style="{{#if:{{{n_list_page|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{n_list_page|}}}
  <group collapse="open">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    <header>Government Info</header>
| style="{{#if:{{{capital_city|}}}| |display: none;}}" valign="top" | '''Capital City'''
    <data source="leader">
| style="{{#if:{{{capital_city|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{capital_city|}}}
      <label>Leader</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{largest_city|}}}| |display: none;}}" valign="top" | '''Largest City'''
    <data source="chancellors">
| style="{{#if:{{{largest_city|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{largest_city|}}}
      <label>Chancellors</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{oldest_city|}}}| |display: none;}}" valign="top" | '''Oldest City'''
    <data source="prime_minister">
| style="{{#if:{{{oldest_city|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{oldest_city|}}}
      <label>Prime Minister </label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    </data>
| style="{{#if:{{{established|}}}| |display: none;}}" valign="top" | '''Established'''
    <data source="political_system">
| style="{{#if:{{{established|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{established|}}}
      <label>Political system</label>
|-
    </data>
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Government Information'''
    <data source="economic_system">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
      <label>Economic system</label>
| style="{{#if:{{{leader|}}}| |display: none;}}" valign="top" | '''Leader'''
    </data>
| style="{{#if:{{{leader|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{leader|}}}
    <data source="official_language">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
      <label>Official language</label>
| style="{{#if:{{{chancellors|}}}| |display: none;}}" valign="top" | '''Chancellors'''
    </data>
| style="{{#if:{{{chancellors|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{chancellors|}}}
    <data source="official_religion">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
      <label>Official religion</label>
| style="{{#if:{{{prime_minister|}}}| |display: none;}}" valign="top" | '''Prime Minister'''
    </data>
| style="{{#if:{{{prime_minister|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{prime_minister|}}}
    <data source="army_size">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
      <label>Army Size</label>
| style="{{#if:{{{political_system|}}}| |display: none;}}" valign="top" | '''Political System'''
    </data>
| style="{{#if:{{{political_system|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{political_system|}}}
    <data source="dominions">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
      <label>Dominions</label>
| style="{{#if:{{{economic_system|}}}| |display: none;}}" valign="top" | '''Economic System'''
    </data>
| style="{{#if:{{{economic_system|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{economic_system|}}}
  </group>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <group collapse="open">
| style="{{#if:{{{official_language|}}}| |display: none;}}" valign="top" | '''Official Language'''
    <header>History</header>
| style="{{#if:{{{official_language|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{official_language|}}}
    <data source="past_leaders">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
      <label>Past leaders</label>
| style="{{#if:{{{official_religion|}}}| |display: none;}}" valign="top" | '''Official Religion'''
    </data>
| style="{{#if:{{{official_religion|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{official_religion|}}}
    <data source="past_capitals">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
      <label>Past capitals</label>
| style="{{#if:{{{army_size|}}}| |display: none;}}" valign="top" | '''Army Size'''
    </data>
| style="{{#if:{{{army_size|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{army_size|}}}
  </group>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
</infobox>
| style="{{#if:{{{dominions|}}}| |display: none;}}" valign="top" | '''Dominions'''
| style="{{#if:{{{dominions|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{dominions|}}}
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Historical Information'''
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{past_leaders|}}}| |display: none;}}" valign="top" | '''Past Leaders'''
| style="{{#if:{{{past_leaders|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{past_leaders|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{past_capitals|}}}| |display: none;}}" valign="top" | '''Past Capitals'''
| style="{{#if:{{{past_capitals|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{past_capitals|}}}
|}</div>
|}
<noinclude>
<noinclude>
Example usage:<pre>
Example Usage:<pre>
{{EnhancedNation
{{EnhancedNation
|eras={{Eras|beta|beginning|hype|decline|crepuscular}}
|title1=Example
|title1=Example
|image1=Example
|image1=Example
|caption1=Example
|image2=Example
|image2=Example
|caption2=Example
|image3=Example
|image3=Example
|caption3=Example
|full_name=Example
|full_name=Example
|national_anthem=[[File:Example.ogg]]
|national_anthem=[[File:Example.ogg]]