Difference between revisions of "Template:Infobox RegionData"

From BattleMaster Wiki
Jump to navigation Jump to search
m
Line 16: Line 16:
 
|-
 
|-
 
| style="background: #ddf; font-weight:bold;" | Continent
 
| style="background: #ddf; font-weight:bold;" | Continent
| [[located on::{{{continent|}}}]]
+
| [[located on::{{#external_value:continent}}]]
 
|-
 
|-
 
| style="background: #ddf; font-weight:bold;" | Region Type
 
| style="background: #ddf; font-weight:bold;" | Region Type
| [[is regiontype::{{{regtype|}}}]]
+
| [[is regiontype::{{#external_value:regtype}}]]
 
|-  
 
|-  
 
| style="background: #ddf; font-weight:bold;" | Geographic Area
 
| style="background: #ddf; font-weight:bold;" | Geographic Area
| {{{area|}}}
+
| {{#external_value:area}}
 
|-  
 
|-  
 
| style="background: #ddf; font-weight:bold;" | Population
 
| style="background: #ddf; font-weight:bold;" | Population
| [[population::{{{population|}}}]]
+
| [[population::{{#external_value:population}}]]
 
|-  
 
|-  
 
| style="background: #ddf; font-weight:bold;" | Economy
 
| style="background: #ddf; font-weight:bold;" | Economy
| {{{economy|}}}
+
| {{#external_value:economy}}
 
|-
 
|-
 
| colspan="2" style="background: #cce; text-align:center; font-weight:bold;" | Politics
 
| colspan="2" style="background: #cce; text-align:center; font-weight:bold;" | Politics
 
|-  
 
|-  
| style="background: #ddf; font-weight:bold;" | Realm {{#if:{{{duchy|}}} |/ Duchy|}}
+
| style="background: #ddf; font-weight:bold;" | Realm {{#if:{{#external_value:duchy|}} |/ Duchy|}}
| [[part of::{{{realm|}}}]] {{#if:{{{duchy|}}} | / [[part of::{{{duchy}}}]] |}}
+
| [[part of::{{#external_value:realm}}]] {{#if:{{#external_value:duchy|}} | / [[part of::{{#external_value:duchy}}]] |}}
{{#if:{{{lord|}}} |  
+
{{#if:{{#external_value:lord|}} |  
 
{{!}}-  
 
{{!}}-  
 
{{!}} style="background: #ddf; font-weight:bold;" {{!}} Local Lord
 
{{!}} style="background: #ddf; font-weight:bold;" {{!}} Local Lord
{{!}} [[has lord::{{{lord}}}]]
+
{{!}} [[has lord::{{#external_value:lord}}]]
 
|}}
 
|}}
 
|}
 
|}
<includeonly>[[Category:{{{continent}}} Regions]]</includeonly>
+
<includeonly>[[Category:{{#external_value:continent}} Regions]]</includeonly>
 
<noinclude>
 
<noinclude>
 
This is the "official" region infobox. It is intended to be used on the official region page for a region. It should not be used on any other page, including realm subpages and user pages.
 
This is the "official" region infobox. It is intended to be used on the official region page for a region. It should not be used on any other page, including realm subpages and user pages.

Revision as of 00:34, 25 March 2009

{{#get_external_data:http://battlemaster.org/data/region.php?World={{{1}}}&ID={{{2}}}%7Cxml |continent=continent |regtype=type |area=area |population=population |economy=economy |realm=realm |duchy=duchy |lord=lord }}

http://battlemaster.org/maps-{{{1}}}/{{{2}}}.jpg
Region Details
Continent
Region Type
Geographic Area
Population
Economy
Politics
Realm


This is the "official" region infobox. It is intended to be used on the official region page for a region. It should not be used on any other page, including realm subpages and user pages.

This infobox uses semantic codes and fetches its data from the game itself, so it is guaranteed to always show correct values.

The infobox should be added as shown below:

{{Infobox RegionData|(world-id)|(region-id)}}


Template-info.svg Semantic Coded Template
This template contains semantic coding. Do not use this template for anything other than its intended purpose.

Notes

  • The template also puts the region into the Category:Regions and the appropriate island category.
  • This template is currently experimental, please do not yet use it on actual region pages