Difference between revisions of "Template:Village infobox"

From AchaeaWiki
Jump to navigation Jump to search
(attributes)
m
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| border="1" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; 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="#3366CC" | <font color=white>'''{{{villagename}}}'''</font>
  -->{{#if:{{{image|}}}|<!--
|-
  --><tr><td colspan="2" style="text-align: center"><!--
| align="right" bgcolor="#7094DB" width=75 | <font color=white>'''Leader'''</font>
      -->{{{image}}}<!--
| bgcolor="#F5FAFF" | {{{leader|''None''}}}
    --></td>
|-
  </tr><!--
| align="right" bgcolor="#7094DB" | <font color=white>'''Religion'''</font>
  -->|}}<!--
| bgcolor="#F5FAFF" | {{{patron|''None''}}}
|-
| align="right" bgcolor="#7094DB" | <font color=white>'''Founder'''</font>
| bgcolor="#F5FAFF" | {{{founder|''Unknown''}}}
|-
| align="right" bgcolor="#7094DB" | <font color=white>'''Discoverer'''</font>
| bgcolor="#F5FAFF" | {{{discoverer|''Unknown''}}}
|-
| align="right" bgcolor="#7094DB" | <font color=white>'''Allies'''</font>
| bgcolor="#F5FAFF" | {{{allies|''None''}}}
|-
| align="right" bgcolor="#7094DB" | <font color=white>'''Enemies'''</font>
| bgcolor="#F5FAFF" | {{{enemies|''None''}}}
|-
|}


<noinclude>[[Category:Infobox templates]]</noinclude>
  --><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

}}