Difference between revisions of "Template:Village infobox"

From AchaeaWiki
Jump to navigation Jump to search
(Adding "test case". Excuse the dust.)
m
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| 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;"><!--
{{#if:{{{image|}}}|
 
{{!}}-
  -->{{#if:{{{image|}}}|<!--
{{!}} align="center" colspan=2 {{!}} {{{image}}}
  --><tr><td colspan="2" style="text-align: center"><!--
|}}
      -->{{{image}}}<!--
|-
    --></td>
| style="font-size: larger;" align="center" colspan=2 bgcolor="#3366CC" | <font color=white>'''{{{villagename}}}'''</font>
  </tr><!--
|-
  -->|}}<!--
| align="right" bgcolor="#7094DB" width=75 | <font color=white>'''Leader'''</font>
 
| bgcolor="#F5FAFF" | {{{leader|''None''}}}
  --><tr>
|-
    <td colspan="2" style="font-size: larger; text-align: center; background-color: #3366CC; color: white;"><!--
| align="right" bgcolor="#7094DB" | <font color=white>'''Religion'''</font>
      -->{{{villagename}}}<!--
| bgcolor="#F5FAFF" | {{{patron|''None''}}}
    --></td>
|-
  </tr><!--
| align="right" bgcolor="#7094DB" | <font color=white>'''Founder'''</font>
 
| bgcolor="#F5FAFF" | {{{founder|''Unknown''}}}
  -->{{#if:{{{leader|}}}|<!--
|-
  --><tr>
| align="right" bgcolor="#7094DB" | <font color=white>'''Discoverer'''</font>
    <td style="width: 75px; text-align: right; background-color: #7094DB; color: white;"><!--
| bgcolor="#F5FAFF" | {{{discoverer|''Unknown''}}}
      -->'''Leader'''<!--
|-
    --></td>
| align="right" bgcolor="#7094DB" | <font color=white>'''Allies'''</font>
    <td><!--
| bgcolor="#F5FAFF" | {{{allies|''None''}}}
      -->{{{leader}}}<!--
|-
    --></td>
| align="right" bgcolor="#7094DB" | <font color=white>'''Enemies'''</font>
  </tr><!--
| bgcolor="#F5FAFF" | {{{enemies|''None''}}}
  -->|}}<!--
|-
 
|}</includeonly>
  -->{{#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>
<noinclude>
{{Village_infobox
----
|image=http://i14.photobucket.com/albums/a315/DelphinusW/Zanzibaar.jpg
 
|villagename=Zanzibaar
All fields except '''villagename''' are optional.
|leader=[[Djulsan]], King of Zanzibaar
 
|discoverer=Delphinus Windancer, Jaizsur Ta'sa, Tiax Drac'Kal, Kaise Le'rac, Kriby, Misty Ta'sa, and Istiria Aristata
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>
[[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

}}