Template:Town: Difference between revisions

Jump to navigation Jump to search
>PrestusHood
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="row1">..."
>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 {{{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="row1">
|-
    <label>Label</label>
{{#if:{{{image1<includeonly>|</includeonly>}}} |
  </data>
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image1}}}
  <data source="row2">
{{!}}-
    <label>Label</label>
}}
  </data>
|-
</infobox>
| colspan="2" style="{{#if:{{{eras|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{eras|}}}
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Town Information'''
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Full Name'''
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{full_name|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{name_in_towny|}}}| |display: none;}}" valign="top" | '''Name in Towny'''
| style="{{#if:{{{name_in_towny|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{name_in_towny|}}}
|- 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:{{{nation|}}}| |display: none;}}" valign="top" | '''Nation'''
| style="{{#if:{{{nation|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{nation|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{mayor||}}}| |display: none;}}" valign="top" | '''Mayor'''
| style="{{#if:{{{mayor||}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{mayor|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{councillor|}}}| |display: none;}}" valign="top" | '''Councillor'''
| style="{{#if:{{{councillor|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{councillor|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{residents|}}}| |display: none;}}" valign="top" | '''Residents'''
| style="{{#if:{{{residents|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{residents|}}}
|- 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:{{{continent|}}}| |display: none;}}" valign="top" | '''Continent'''
| style="{{#if:{{{continent|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{continent|}}}
|-
! 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:{{{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|}}}
|-
! 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_nations|}}}| |display: none;}}" valign="top" | '''Past Nations'''
| style="{{#if:{{{past_nations|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{past_nations|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{past_mayors|}}}| |display: none;}}" valign="top" | '''Past Mayors'''
| style="{{#if:{{{past_mayors|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{past_mayors|}}}
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{past_councillors|}}}| |display: none;}}" valign="top" | '''Past Councillors'''
| style="{{#if:{{{past_councillors|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{past_councillors|}}}
|}</div>
|}
<noinclude>
<noinclude>
Example usage:<pre>
Example Usage:<pre>
{{EnhancedTown
{{EnhancedTown
|color=Example
|eras={{Eras|beta|beginning|hype|decline|crepuscular}}
|title1=Example
|title1=Example
|image1=Example
|image1=Example
|caption1=Example
|full_name=Example
|row1=Example
|name_in_towny=Example
|row2=Example
|established=Example
|nation=Example
|mayor=Example
|councillor=Example
|chunks=Example
|continent=Example
|official_language=Example
|official_religion=Example
|army_size=Example
|past_nations=Example
|past_mayors=Example
|past_councillors=Example
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>