Difference between revisions of "Template:RegionBox/doc"

From BattleMaster Wiki
Jump to navigation Jump to search
m (new documentation)
m (oops... typo)
Line 40: Line 40:
 
<pre><nowiki>{{RegionBox
 
<pre><nowiki>{{RegionBox
 
| World =  
 
| World =  
| RegionId =  
+
| Region =  
 
| BorderStyle =  
 
| BorderStyle =  
 
| BackColor =  
 
| BackColor =  
Line 52: Line 52:
 
<pre><nowiki>{{RegionBox
 
<pre><nowiki>{{RegionBox
 
| World = 8
 
| World = 8
| RegionId = 200
+
| Region = 200
 
| TitleBackColor = #17375E
 
| TitleBackColor = #17375E
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  
 
[[Category:RealmBox]]
 
[[Category:RealmBox]]

Revision as of 17:57, 25 March 2009

Gtk-dialog-info.svg Page Information
This is a documentation subpage for the RegionBox template.
It contains usage information, categories and other content that is not part of the original template page.

Intro

This template is part of the RegionBox Project, dedicated to providing customized, stylish

This is a template designed to place a regional infobox on a region page. It is coded for automatic tagging of properties for the Semantic Wiki. You can use this template by simply copying and pasting the sample given below.

This template will place your region in the appropriate island/region category. Do not add a "Regions" category to your page.

Parameters

These parameters are used by the template. Some information is required to be included, and is noted in the description.

Required

  • World - (required) The world number of the region: EC = 1, AT = 2, Colonies = 3, BT = 4, FEI = 7, Dwilight = 8.
  • Region - (required) The region ID of the region you want to show. You can get this from the URL of the region map in the game, or from the link to the region in the region listing.

Optional

  • TitleBackColor - The color code for the title bar backgrounds. Defaults to #000000 (black).
  • TitleTextColor - The color code of the title bar text. Defaults to #FFFFFF (white).
  • BackColor - The background color for the regionbox. Defaults to #DDDDDD (light gray).
  • BorderStyle - The style of the box borders. Defaults to "hidden". Change to "single" to display the borders. (May not work quite right. Probably best to leave it as "hidden" until I figure it out.)
  • BorderColor - The color of the borders. Defaults to #000000 (black)
  • Gold - The approximate gold production of the region.
  • Food - The approximate food production of the region.

Note that the food and gold values may be obsolete with the implementation of the New Economy. If this happens, they will be removed from the template. For now I will leave them here, and they will be displayed if provided.

Usage

For a super-basic, no frills region box, use the super-basic syntax. If you want to color=customize your region box, see the second sample.

Super-Basic Syntax

This is all you have to provide to make a regionbox:

{{RegionBox|world|regionid}}

For example, for Libidizedd on Dwilight:

{{RegionBox|8|200}}


Syntax for color customized region boxes

If you want the region box to have a specific color scheme, you can add some extra parameters, like this. See the parameter descriptions for details. Leave out anything you want, and the defaults will be used.

{{RegionBox
| World = 
| Region = 
| BorderStyle = 
| BackColor = 
| TitleBackColor = 
| TitleTextColor = 
| Gold = 
| Food = 
}}

For example, for Libidizedd, a region of Astrum on Dwilight:

{{RegionBox
| World = 8
| Region = 200
| TitleBackColor = #17375E
}}