Template:NationInfobox: Difference between revisions

From EarthMC
Jump to navigation Jump to search
>Fachanator
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="leader...")
 
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 {{{color|}}}; font-size:smaller; line-height:1.5"
  <title source="title1">
|-
    <default>{{PAGENAME}}</default>
|<div>
  </title>
{| border="0" cellpadding="4" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
  <image source="image1">
|-
    <caption source="caption1"/>
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">{{{title1}}}</font>}}}
  </image>
|- style="text-align:center;"
  <data source="leader">
|-
    <label>Leader</label>
{{#if:{{{image1<includeonly>|</includeonly>}}} |
  </data>
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image1}}}
  <data source="capital">
{{!}}-
    <label>Capital</label>
}}
  </data>
|-
  <data source="anthem">
| colspan="2" style="{{#if:{{{eras|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{eras|}}}
    <label>Anthem</label>
|-
  </data>
! colspan="2" style="{{#if:{{{hidecoat|}}}|display: none;| |}}{{#if:{{{image2|}}}| |display: none;|}} text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">Coat of Arms</font>}}}
  <data source="coat_of_arms">
|- style="text-align:center;"
    <label>Coat of Arms</label>
|-
  </data>
{{#if:{{{image2<includeonly>|</includeonly>}}} |
  <title source="title2"/>
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image2}}}
  <data source="political_system">
{{!}}-
    <label>Political System</label>
}}
  </data>
|-
  <data source="economic_system">
! colspan="2" style="{{#if:{{{hideteritory|}}}|display: none;| |}}{{#if:{{{image3|}}}| |display: none;|}} text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">Territory</font>}}}
    <label>Economic System</label>
|- style="text-align:center;"
  </data>
|-
  <data source="population">
{{#if:{{{image3<includeonly>|</includeonly>}}} |
    <label>Population</label>
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image3}}}
  </data>
{{!}}-
  <data source="largest_town">
}}
    <label>Largest town</label>
|-
  </data>
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''National Information'''
  <title source="title3"/>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <data source="map">
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Full Name'''
    <label>Map</label>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{full_name|}}}
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <data source="number_of_towns">
| style="{{#if:{{{national_anthem|}}}| |display: none;}}" valign="top" | '''National Anthem'''
    <label>Number of towns</label>
| style="{{#if:{{{national_anthem|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{national_anthem|}}}
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <data source="continent">
| style="{{#if:{{{name_in_towny|}}}| |display: none;}}" valign="top" | '''Name in Towny'''
    <label>Continent</label>
| style="{{#if:{{{name_in_towny|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{name_in_towny|}}}
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
</infobox>
| style="{{#if:{{{motto|}}}| |display: none;}}" valign="top" | '''Motto'''
| style="{{#if:{{{motto|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{motto|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{population|}}}| |display: none;}}" valign="top" | '''Population'''
| style="{{#if:{{{population|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{Population|Population={{{population}}}|Date={{{populationdate|}}}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{chunks|}}}| |display: none;}}" valign="top" | '''Chunks'''
| style="{{#if:{{{chunks|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{chunks|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{n_list_page|}}}| |display: none;}}" valign="top" | '''/n list page'''
| style="{{#if:{{{n_list_page|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{n_list_page|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{capital_city|}}}| |display: none;}}" valign="top" | '''Capital City'''
| style="{{#if:{{{capital_city|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{capital_city|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{largest_city|}}}| |display: none;}}" valign="top" | '''Largest City'''
| style="{{#if:{{{largest_city|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{largest_city|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{oldest_city|}}}| |display: none;}}" valign="top" | '''Oldest City'''
| style="{{#if:{{{oldest_city|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{oldest_city|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{established|}}}| |display: none;}}" valign="top" | '''Established'''
| style="{{#if:{{{established|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{established|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{disbanded|}}}| |display: none;}}" valign="top" | '''Disbanded'''
| style="{{#if:{{{disbanded|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{disbanded|}}}
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Government Information'''
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{leader|}}}| |display: none;}}" valign="top" | '''Leader'''
| style="{{#if:{{{leader|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{leader|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{chancellors|}}}| |display: none;}}" valign="top" | '''Chancellors'''
| style="{{#if:{{{chancellors|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{chancellors|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{prime_minister|}}}| |display: none;}}" valign="top" | '''Prime Minister'''
| style="{{#if:{{{prime_minister|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{prime_minister|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{political_system|}}}| |display: none;}}" valign="top" | '''Political System'''
| style="{{#if:{{{political_system|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{political_system|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{economic_system|}}}| |display: none;}}" valign="top" | '''Economic System'''
| style="{{#if:{{{economic_system|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{economic_system|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{official_language|}}}| |display: none;}}" valign="top" | '''Official Language'''
| style="{{#if:{{{official_language|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{official_language|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{official_religion|}}}| |display: none;}}" valign="top" | '''Official Religion'''
| style="{{#if:{{{official_religion|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{official_religion|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{army_size|}}}| |display: none;}}" valign="top" | '''Army Size'''
| style="{{#if:{{{army_size|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{army_size|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{dominions|}}}| |display: none;}}" valign="top" | '''Dominions'''
| style="{{#if:{{{dominions|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{dominions|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{part_of|}}}| |display: none;}}" valign="top" | '''Part of'''
| style="{{#if:{{{part_of|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{part_of|}}}
|-
! 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|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style='{{#if:{{{predecessor|}}}| |display: none;}}" valign="top" | '''Predecessor'''
| style='{{#if:{{{predecessor|}}}| |display:none;}}" class-infoboxcell' valign="top" | {{{predecessor|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style='{{#if:{{{successor|}}}| |display:none;}}" valign="top" | '''Successor'''
| style='{{#if:{{{successor|}}}| |display:none;}}" class-infoboxcell' valign="top" | {{{successor|}}}
|}</div>
|}
<noinclude>
<noinclude>
Example usage:<pre>
Example Usage:<pre>
{{NationInfobox
{{EnhancedNation
|color=Example
|eras={{Eras|0|1}}
|title1=Example
|title1=Example
|image1=Example
|image1=Example
|caption1=Example
|image2=Example
|image3=Example
|full_name=Example
|national_anthem=[[File:Example.ogg]]
|name_in_towny=Example
|motto=Example
|population=Example
|chunks=Example
|/n_list_page=Example
|capital_city=Example
|largest_city=Example
|oldest_city=Example
|established=Example
|disbanded=Example
|leader=Example
|leader=Example
|capital=Example
|chancellors=Example
|anthem=Example
|prime_minister=Example
|coat_of_arms=Example
|title2=Example
|political_system=Example
|political_system=Example
|economic_system=Example
|economic_system=Example
|population=Example
|official_language=Example
|largest_town=Example
|official_religion=Example
|title3=Example
|army_size=Example
|map=Example
|dominions=Example
|number_of_towns=Example
|part_of=Example
|continent=Example
|past_leaders=Example
|past_capitals=Example
|predecessor=Example
|successor=Example
}}
}}
</pre>
</pre>
</noinclude>
<templatedata>
{
"params": {
"color": {},
"name": {},
"title1": {},
"image1": {},
"hidecoat": {},
"image2": {},
"hideteritory": {},
"image3": {},
"eras": {},
"hideb": {},
"full_name": {},
"national_anthem": {},
"name_in_towny": {},
"motto": {},
"population": {},
"chunks": {},
"n_list_page": {},
"capital_city": {},
"largest_city": {},
"oldest_city": {},
"established": {},
"disbanded": {},
"leader": {},
"chancellors": {},
"prime_minister": {},
"political_system": {},
"economic_system": {},
"official_language": {},
"official_religion": {},
"army_size": {},
"dominions": {},
"part_of": {},
"past_leaders": {},
"past_capitals": {},
"predecessor": {},
"successor": {},
"populationdate": {}
},
"format": "block"
}
</templatedata></noinclude>

Revision as of 18:19, 11 May 2022

{{{title1}}}
{{{image1}}}
Coat of Arms
{{{image2}}}
Territory
{{{image3}}}
National Information
Full Name
National Anthem
Name in Towny
Motto
Population
Chunks
/n list page
Capital City
Largest City
Oldest City
Established
Disbanded
Government Information
Leader
Chancellors
Prime Minister
Political System
Economic System
Official Language
Official Religion
Army Size
Dominions
Part of
Historical Information
Past Leaders
Past Capitals
Predecessor
Successor

Example Usage:

{{EnhancedNation
|color=Example
|eras={{Eras|0|1}}
|title1=Example
|image1=Example
|image2=Example
|image3=Example
|full_name=Example
|national_anthem=[[File:Example.ogg]]
|name_in_towny=Example
|motto=Example
|population=Example
|chunks=Example
|/n_list_page=Example
|capital_city=Example
|largest_city=Example
|oldest_city=Example
|established=Example
|disbanded=Example
|leader=Example
|chancellors=Example
|prime_minister=Example
|political_system=Example
|economic_system=Example
|official_language=Example
|official_religion=Example
|army_size=Example
|dominions=Example
|part_of=Example
|past_leaders=Example
|past_capitals=Example
|predecessor=Example
|successor=Example
}}

<templatedata> { "params": { "color": {}, "name": {}, "title1": {}, "image1": {}, "hidecoat": {}, "image2": {}, "hideteritory": {}, "image3": {}, "eras": {}, "hideb": {}, "full_name": {}, "national_anthem": {}, "name_in_towny": {}, "motto": {}, "population": {}, "chunks": {}, "n_list_page": {}, "capital_city": {}, "largest_city": {}, "oldest_city": {}, "established": {}, "disbanded": {}, "leader": {}, "chancellors": {}, "prime_minister": {}, "political_system": {}, "economic_system": {}, "official_language": {}, "official_religion": {}, "army_size": {}, "dominions": {}, "part_of": {}, "past_leaders": {}, "past_capitals": {}, "predecessor": {}, "successor": {}, "populationdate": {} }, "format": "block" } </templatedata>