Difference between revisions of "Template:Village infobox"

From AchaeaWiki
Jump to navigation Jump to search
m
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;" style="margin:0 0 1em 1em; float:right; width:290px;"
<includeonly><table border="1" cellpadding="4" cellspacing="0" style="margin:0 0 1em 1em; float:right; width:290px;"><!--
|-
 
| style="font-size: larger;" align="center" colspan="2" bgcolor="peru" | '''{{{villagename}}}'''
  -->{{#if:{{{image|}}}|<!--
|-
  --><tr><td colspan="2" style="text-align: center"><!--
| align="right" bgcolor="burlywood" width=75 | '''Leader'''
      -->{{{image}}}<!--
| {{{leader|''None''}}}
    --></td>
|-
  </tr><!--
| align="right" bgcolor="burlywood" | '''Religion'''
  -->|}}<!--
| {{{patron|''None''}}}
|-
| align="right" bgcolor="burlywood" | '''Founder'''
| {{{founder|''Unknown''}}}
|-
| align="right" bgcolor="burlywood" | '''Discoverer'''
| {{{discoverer|''Unknown''}}}
|-
| align="right" bgcolor="burlywood" | '''Allies'''
| {{{allies|''None''}}}
|-
| align="right" bgcolor="burlywood" | '''Enemies'''
| {{{enemies|''None''}}}
|-
|}


[[Category:Infoboxes]]
  --><tr>
    <td colspan="2" style="font-size: larger; text-align: center; background-color: #3366CC; color: white;"><!--
      -->{{{villagename}}}<!--
    --></td>
  </tr><!--
 
  -->{{#if:{{{leader|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Leader'''<!--
    --></td>
    <td><!--
      -->{{{leader}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
  -->{{#if:{{{patron|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Religion'''<!--
    --></td>
    <td><!--
      -->{{{patron}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
  -->{{#if:{{{founder|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Founder'''<!--
    --></td>
    <td><!--
      -->{{{founder}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
  -->{{#if:{{{discoverer|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Discoverer'''<!--
    --></td>
    <td><!--
      -->{{{discoverer}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
  -->{{#if:{{{allies|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Allies'''<!--
    --></td>
    <td><!--
      -->{{{allies}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
  -->{{#if:{{{enemies|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Enemies'''<!--
    --></td>
    <td><!--
      -->{{{enemies}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
-->{{#if:{{{seamark|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Sea mark'''<!--
    --></td>
    <td><!--
      -->{{{seamark}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
 
  -->{{#if:{{{porttype|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Port type'''<!--
    --></td>
    <td><!--
      -->{{{porttype}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
  -->{{#if:{{{portsize|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Port size'''<!--
    --></td>
    <td><!--
      -->{{{portsize}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
 
  -->{{#if:{{{exports|}}}|<!--
  --><tr>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
      -->'''Exports'''<!--
    --></td>
    <td><!--
      -->{{{exports}}}<!--
    --></td>
  </tr><!--
  -->|}}<!--
 
 
--></table></includeonly>
<noinclude>
----
 
All fields except '''villagename''' are optional.
 
Example usage:
<pre>{{Village_infobox
| image        = ''image here''
| villagename  = Foo
| leader      = Bob
| patron      = Lord Foobarbaz of Filler Text
| founder      = F'baar
| discoverer  = Delphinus (who else?)
| allies      = Bar, Baz
| enemies      = The Commune of Lorem Ipsum
| porttype    = Man made
| portsize    = ∞
| seamark      = FooBarian
| exports      = foobincense, barrh
 
}}</pre>
 
[[Category:Infobox templates]]</noinclude>

Latest revision as of 21:12, 20 September 2011



All fields except villagename are optional.

Example usage:

{{Village_infobox
 | image        = ''image here''
 | villagename  = Foo
 | leader       = Bob
 | patron       = Lord Foobarbaz of Filler Text
 | founder      = F'baar
 | discoverer   = Delphinus (who else?)
 | allies       = Bar, Baz
 | enemies      = The Commune of Lorem Ipsum
 | porttype     = Man made
 | portsize     = ∞
 | seamark      = FooBarian
 | exports      = foobincense, barrh

}}