Difference between revisions of "Template:Infobox region"

From BattleMaster Wiki
Jump to navigation Jump to search
(initial setup - no guarantees that it's perfect already.)
Line 1: Line 1:
 
{| class="infobox" border="1" style="float: right; width: 315px; border-spacing: 2px; font-size: 95%; text-align: left; border-collapse: collapse; margin-left: 1em;"
 
{| class="infobox" border="1" style="float: right; width: 315px; border-spacing: 2px; font-size: 95%; text-align: left; border-collapse: collapse; margin-left: 1em;"
|-
 
! colspan="2" style="background: darkgray; text-align: center;" | {{{region name}}}
 
 
|-
 
|-
| colspan="2" style="text-align:center;" | [[Image:{{{image}}}|300px| ]]<br>{{{caption}}}
+
| colspan="2" style="text-align:center;" | http://battlemaster.org/maps-{{{image}}}.jpg
|-
 
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Lord'''
 
| width="50%" style="text-align:center;" | [[has lord::{{{lord|}}}]]
 
 
|-
 
|-
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Region Type'''
+
| style="background: lightsteelblue; font-weight:bold;" | Continent
| width="50%" style="text-align:center;" | [[is regiontype::{{{type|}}}]]
+
| [[located on::{{{continent|}}}]]
|-
 
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Location'''
 
| width="50%" style="text-align:center;" | {{{location|}}}
 
|-
 
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Population'''
 
| width="50%" style="text-align:center;" | [[population::{{{population|}}}]]
 
|-
 
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Geography'''
 
| width="50%" style="text-align:center;" | {{{geography|}}}
 
|-
 
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Recruitable Units'''
 
| width="50%" style="text-align:center;" | {{{units|}}}
 
 
|-
 
|-
 +
| style="background: lightsteelblue; font-weight:bold;" | Region Type
 +
| [[is regiontype::{{{type|}}}]]
 +
|-
 +
| style="background: lightsteelblue; font-weight:bold;" | Population
 +
| [[population::{{{population|}}}]]
 +
|-
 +
| style="background: lightsteelblue; font-weight:bold;" | Realm {{#if:{{{duchy|}}} |/ Duchy|}}
 +
| [[part of::{{{realm|}}}]] {{#if:{{{duchy|}}} | / [[part of::{{{duchy}}}]] |}}
 +
{{#if:{{{lord|}}} |
 +
{{!}}-
 +
{{!}} style="background: lightsteelblue; font-weight:bold;" {{!}} Lord
 +
{{!}} [[has lord::{{{lord}}}]]
 +
|}}
 
|}
 
|}
  
<noinclude>The infobox should be added using the Infobox realm template, as shown below:
+
<noinclude>
 +
This is the "official" region infobox. It is simple, but it does contain all required data. You can copy it and create a new template base on it, but every other region infobox '''must''' include at least these pieces of information and their correct semantic notations.
 +
 
 +
The infobox should be added as shown below:
  
 
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 
{{Infobox region
 
{{Infobox region
|region name=
+
|continent  =
|image=
+
|image     =
|caption=
+
|regtype    =
|lord=
+
|population =
|type=
+
|realm      =
|location=
 
|population=
 
|geography=
 
|units=
 
 
}}
 
}}
 
</pre></div>
 
</pre></div>
 +
 +
You can also, if you like, add the following optional parameters. These lines will only be shown if the parameters are set:
 +
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 +
|duchy      =
 +
|lord      =
 +
</pre></div>
 +
 +
The correct parameter for "image" is a URL path that you should leave unchanged.
  
 
</noinclude>
 
</noinclude>

Revision as of 13:47, 16 February 2009

http://battlemaster.org/maps-{{{image}}}.jpg
Continent
Region Type
Population
Realm


This is the "official" region infobox. It is simple, but it does contain all required data. You can copy it and create a new template base on it, but every other region infobox must include at least these pieces of information and their correct semantic notations.

The infobox should be added as shown below:

{{Infobox region
|continent  =
|image      =
|regtype    =
|population =
|realm      =
}}

You can also, if you like, add the following optional parameters. These lines will only be shown if the parameters are set:

|duchy      =
|lord       =

The correct parameter for "image" is a URL path that you should leave unchanged.