Difference between revisions of "Template:RealmBox/Sandbox"

From BattleMaster Wiki
Jump to navigation Jump to search
m
m
Line 18: Line 18:
 
|Right = [[Located on::{{#external_value:Island}}]]<br>{{#ask: [[capital of::{{#external_value:Realm}}]]| default=Unknown}}<br>{{#ask: [[part of::{{#external_value:Realm}}]] [[is regiontype::Stronghold||City]] | limit = 1 | sort = population | order = desc | searchlabel= | default=Unknown}}<br>[[government type is::{{#external_value:Government}}]]{{#if: {{{StateReligion|}}} | <br>[[has state religion::{{{StateReligion}}}]]|}}<br>{{#ask: [[part of::{{#external_value:Realm}}]] [[is regiontype::Stronghold||City]] | format = count | default=Unknown}}<br>{{#ask: [[part of::{{#external_value: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::{{#external_value:Realm}}]] | ?population | format = sum | default = 0}}}}
 
|Right = [[Located on::{{#external_value:Island}}]]<br>{{#ask: [[capital of::{{#external_value:Realm}}]]| default=Unknown}}<br>{{#ask: [[part of::{{#external_value:Realm}}]] [[is regiontype::Stronghold||City]] | limit = 1 | sort = population | order = desc | searchlabel= | default=Unknown}}<br>[[government type is::{{#external_value:Government}}]]{{#if: {{{StateReligion|}}} | <br>[[has state religion::{{{StateReligion}}}]]|}}<br>{{#ask: [[part of::{{#external_value:Realm}}]] [[is regiontype::Stronghold||City]] | format = count | default=Unknown}}<br>{{#ask: [[part of::{{#external_value: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::{{#external_value:Realm}}]] | ?population | format = sum | default = 0}}}}
 
{{RBTitle|TextColor = {{{TitleTextColor|{{{3|Black}}}}}}|BackColor = {{#external_value:TitleBackColor}}|Text = Council}}
 
{{RBTitle|TextColor = {{{TitleTextColor|{{{3|Black}}}}}}|BackColor = {{#external_value:TitleBackColor}}|Text = Council}}
{{RBDouble|BackColor = #CCCCCC|LeftTextWeight = bold|Left = {{{RulerTitle|Ruler}}}|Right = [[has ruler::{{#external_value:RulerName}}]]}}
+
{{RBDouble|BackColor = #CCCCCC|LeftTextWeight = bold|Left = {{#external_value:RulerTitle}}|Right = [[has ruler::{{#external_value:RulerName}}]]}}
 
{{RBDouble|LeftTextWeight = bold|Left = {{#external_value:GeneralTitle}}<br>{{#external_value:BankerTitle}}<br>{{#external_value:JudgeTitle}}|Right = [[has general::{{#external_value:GeneralName}}]]<br>[[has banker::{{#external_value:BankerName}}]]<br>[[has judge::{{#external_value:JudgeName}}]]}}
 
{{RBDouble|LeftTextWeight = bold|Left = {{#external_value:GeneralTitle}}<br>{{#external_value:BankerTitle}}<br>{{#external_value:JudgeTitle}}|Right = [[has general::{{#external_value:GeneralName}}]]<br>[[has banker::{{#external_value:BankerName}}]]<br>[[has judge::{{#external_value:JudgeName}}]]}}
 
{{RBTitle |BackColor = {{#external_value:TitleBackColor}} |TextColor = {{{TitleTextColor|{{{3|Black}}}}}} |Text = Regions }}
 
{{RBTitle |BackColor = {{#external_value:TitleBackColor}} |TextColor = {{{TitleTextColor|{{{3|Black}}}}}} |Text = Regions }}

Revision as of 23:18, 25 March 2009

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

Complete revamp to use external data API.

{{RealmBox|world|realmid|titletextcolor}}

TitleTextColor is optional. Recommended if your realm color is really dark, or you won't be able to read the text on the title bars.