Template:RealmBox: Difference between revisions
m (parameter fix) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{RBTop}} | <includeonly>{{RBTop}} | ||
{{RBTitle|TextColor = {{{TitleTextColor|Black}}}|BackColor = {{{TitleBackColor|#aabbcc}}}|Text = {{ | {{RBTitle|TextColor = {{{TitleTextColor|Black}}}|BackColor = {{{TitleBackColor|#aabbcc}}}|Text = {{{Realm}}}{{#if: {{{Flag|}}} | <br>[[Image:{{{Flag}}}]]{{#if: {{{FlagCaption|}}} | <br><div style="text-align: center; font-size: 75%; color: {{{TitleTextColor|Black}}}; font-weight:normal; font-style: oblique;">{{{FlagCaption}}}</div>|}}|}}{{#if: {{{World|}}} | <br>http://battlemaster.org/maps-{{{World}}}/Realm-{{{Realm}}}.jpg |}}}} | ||
{{RBDouble | {{RBDouble | ||
|Left = <b>Island<br>Capital<br>Largest City<br>Government{{#if: {{{StateReligion|}}} | <br>State Religion|}}<br>Duchies<br>Regions{{#if: {{{Nobles|}}} | <br>Nobles|}}{{#if: {{{Food|}}} | <br>Food|}}{{#if: {{{Gold|}}} | <br>Gold|}}<br>Population</b> | |Left = <b>Island<br>Capital<br>Largest City<br>Government{{#if: {{{StateReligion|}}} | <br>State Religion|}}<br>Duchies<br>Regions{{#if: {{{Nobles|}}} | <br>Nobles|}}{{#if: {{{Food|}}} | <br>Food|}}{{#if: {{{Gold|}}} | <br>Gold|}}<br>Population</b> | ||
|Right = [[Located on::{{{Island|{{c|red|"Island"}}}}}]]<br>{{#ask: [[capital of::{{ | |Right = [[Located on::{{{Island|{{c|red|"Island"}}}}}]]<br>{{#ask: [[capital of::{{{Realm}}}]]| default=Unknown}}<br>{{#ask: [[part of::{{{Realm}}}]] [[is regiontype::Stronghold||City]] | limit = 1 | sort = population | order = desc | searchlabel= | default=Unknown}}<br>[[government type is::{{{Government|{{c|red|"Government"}}}}}]]{{#if: {{{StateReligion|}}} | <br>[[has state religion::{{{StateReligion}}}]]|}}<br>{{#ask: [[part of::{{{Realm}}}]] [[is regiontype::Stronghold||City]] | format = count | default=Unknown}}<br>{{#ask: [[part of::{{{Realm}}}]] [[is regiontype::+]] | format = count | default=Unknown}}{{#if: {{{Nobles|}}} | <br>{{{Nobles|Unknown}}}|}}{{#if: {{{Food|}}} | <br>{{{Food|Unknown}}}|}}{{#if: {{{Gold|}}} | <br>{{{Gold|Unknown}}}|}}<br>{{#ask: [[part of::{{{Realm}}}]] | ?population | format = sum | default = 0}}}} | ||
{{RBTitle|TextColor = {{{TitleTextColor|black}}}|BackColor = {{{TitleBackColor|#aabbcc}}}|Text = Council}} | {{RBTitle|TextColor = {{{TitleTextColor|black}}}|BackColor = {{{TitleBackColor|#aabbcc}}}|Text = Council}} | ||
{{RBDouble|BackColor = #CCCCCC|Left = {{{RulerTitle|Ruler}}}|Right = [[has ruler::{{{RulerName|{{c|red|"RulerName"}}}}}]]}} | {{RBDouble|BackColor = #CCCCCC|Left = {{{RulerTitle|Ruler}}}|Right = [[has ruler::{{{RulerName|{{c|red|"RulerName"}}}}}]]}} | ||
{{RBDouble|Left = <b>{{{GeneralTitle|General}}}<br>{{{BankerTitle|Banker}}}<br>{{{JudgeTitle|Judge}}}</b>|Right = [[has general::{{{GeneralName|{{c|red|"GeneralName"}}}}}]]<br>[[has banker::{{{BankerName|{{c|red|"BankerName"}}}}}]]<br>[[has judge::{{{JudgeName|{{c|red|"JudgeName"}}}}}]]}} | {{RBDouble|Left = <b>{{{GeneralTitle|General}}}<br>{{{BankerTitle|Banker}}}<br>{{{JudgeTitle|Judge}}}</b>|Right = [[has general::{{{GeneralName|{{c|red|"GeneralName"}}}}}]]<br>[[has banker::{{{BankerName|{{c|red|"BankerName"}}}}}]]<br>[[has judge::{{{JudgeName|{{c|red|"JudgeName"}}}}}]]}} | ||
{{RBTitle |BackColor = {{{TitleBackColor|#aabbcc}}} |TextColor = {{{TitleTextColor|black}}} |Text = Regions }} | {{RBTitle |BackColor = {{{TitleBackColor|#aabbcc}}} |TextColor = {{{TitleTextColor|black}}} |Text = Regions }} | ||
{{RBSingle|CellAlign=center|Text = {{#ask: [[part of::{{ | {{RBSingle|CellAlign=center|Text = {{#ask: [[part of::{{{Realm}}}]] | mainlabel=region | ?has lord=Lord | format = broadtable | headers = hide | default=Unknown}} }} | ||
{{RBBottom}} | {{RBBottom}} | ||
[[Category:Realms]]</includeonly><noinclude>{{Documentation}}[[Category:RealmBox]]</noinclude> | [[Category:Realms]]</includeonly><noinclude>{{Documentation}}[[Category:RealmBox]]</noinclude> |
Revision as of 18:53, 27 February 2009
Template Documentation |
This documentation is transcluded from Template:RealmBox/doc. |
IntroThis template is part of the RealmBox Project. It is enabled for importing of the game's external data feed, and for semantic coding of the included data. This template uses all available semantic coding at the realm level, with the exception of the realm founding date and realm founder.
NOTE: The template includes the realm category, Category:Realms, and the appropriate island category. If you use this template, you do not need to manually add these categories to your page. Using the TemplateCopy one of the blank templates provided at the bottom of this page. Special Considerations
ParametersThis section lists all the available parameters for use with the template. It is split into two sections; "Required" and "Optional". RequiredThis is a listing of the required parameters.
Optional
TemplateYou can copy/paste the following guide into your page, then add the values. Minimal RealmBoxThis provides the minimum parameters needed to add a RealmBox to your realm page. {{RealmBox |World = |RealmID = }} Full RealmBoxThis provides the complete list of parameters that can be used with RealmBox. You can pick and choose which one you want, so long as you provide the two required parameters. {{RealmBox |World = |RealmID = |TitleColor = |TitleTextColor = |MapName = |Flag = |FlagCaption = |Nobles = |Food = |Gold = }} Alternate MethodRealmBox supports inline parameters for basic usage, like this: {{RealmBox|(World)|(RealmID)|(TitleColor)|(TitleTextColor)}} Just replace the items in parentheses with the actual values. For example, the RealmBox for Astrum could be specified as: {{RealmBox|8|12|Blue|White}} Note that with this method, you can only provide the Four listed parameters. Known Issues
|