Template:RegionBox
Semantic Coded Template |
This template contains semantic coding. Do not use this template for anything other than its intended purpose. |
Template Documentation |
This documentation is transcluded from Template:RegionBox/doc. |
IntroThis template is part of the RegionBox Project, dedicated to providing customized, stylish region boxes to wiki users. This template is coded for automatic tagging of properties for the Semantic Wiki. This means that the wiki can interpret the information in the region box, and display it on other pages, or be used in queries. This template get almost all of its data using the new external data APIs. This means that information such as realm and duchy allegiance, local lord, etc. all come straight from the game itself. This info will change dynamically to always reflect the actual in-game values! No more manual updates of this basic info. This template will place your region in the appropriate island/region category. Do not add a "Regions" or "Realms" category to your page. ParametersThese parameters are used by the template. Required
Optional
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. UsageFor 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 SyntaxThis is all you have to provide to make a regionbox: {{RegionBox|world|regionid}} For example, for Libidizedd on Dwilight: {{RegionBox|8|200}} If you want to specify a title bar back color and text color, add two more parameters like this: {{RegionBox|world|regionid|titletextcolor|titlebackcolor}} For example, for Libidizedd on Dwilight, I use: {{RegionBox|8|200|white|#17375E}} Syntax for color customized region boxesIf 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 }} Displaying a Realm Banner in the RegionBoxA new feature of RegionBox is the ability to automatically display the banner of the realm to which the region is aligned. All it takes is for an appropriately named image to be uploaded, and all regions aligned to that realm that use the RegionBox template will show the banner. The image must be uploaded using a specific name. It should also follow some important guidelines. Remember that the region page is all about the region, and not the realm to which it is currently aligned. Therefore the banner should not be a big banner, nor should it overpower the RegionBox or the page overall.
If you don't follow these guidelines, you will probably end up with a very ugly RegionBox. |