Difference between revisions of "Template:RealmBox"

From BattleMaster Wiki
Jump to navigation Jump to search
m (*sigh*)
m (updates)
Line 13: Line 13:
 
{{RBDouble|BorderBottomStyle = hidden|Left = <b>Regions</b>|Right = {{#ask: [[part of::{{PAGENAME}}]] [[is regiontype::+]] | format = count | default=Unknown}}}}
 
{{RBDouble|BorderBottomStyle = hidden|Left = <b>Regions</b>|Right = {{#ask: [[part of::{{PAGENAME}}]] [[is regiontype::+]] | format = count | default=Unknown}}}}
 
{{RBDouble|BorderBottomStyle = hidden|Left = <b>Nobles</b>|Right = {{#ask: [[member of::{{PAGENAME}}]] | format = count | default=Unknown}}}}
 
{{RBDouble|BorderBottomStyle = hidden|Left = <b>Nobles</b>|Right = {{#ask: [[member of::{{PAGENAME}}]] | format = count | default=Unknown}}}}
{{RBDouble |BorderBottomStyle = hidden|Left = <b>Population</b>|Right = [[population::{{{Population}}}]]}}
+
{{RBDouble|Left = <b>Population</b>|Right = {{{Population|{{#expr: {{#ask: [[part of::{{PAGENAME}}]] | ?population= | mainlabel=- | format = list | sep=+}}}}}}}}}
{{#if: {{{Food}}} | {{RBDouble|Left = <b>Food Production</b>|Right = {{{Food}}}}} | }}
+
{{RBDouble|Left = <b>Food Production</b>|Right = {{{Food|{{#expr: {{#ask: [[part of::{{PAGENAME}}]] | ?produces food= | mainlabel=- | format = list | sep=+}}}}}}}}}
 +
{{RBDouble|Left = <b>Gold Production</b>|Right = {{{Gold|{{#expr: {{#ask: [[part of::{{PAGENAME}}]] | ?produces gold= | mainlabel=- | format = list | sep=+}}}}}}}}}
 
{{RBTitle
 
{{RBTitle
 
|TextColor = {{{TitleTextColor|black}}}
 
|TextColor = {{{TitleTextColor|black}}}
Line 27: Line 28:
 
|Right = {{{GeneralName}}}<br>{{{BankerName}}}<br>{{{JudgeName}}}}}
 
|Right = {{{GeneralName}}}<br>{{{BankerName}}}<br>{{{JudgeName}}}}}
 
{{RBTitle |BackColor = {{{TitleBackColor|#aabbcc}}} |TextColor = {{{TitleTextColor|black}}} |Text = Regions }}
 
{{RBTitle |BackColor = {{{TitleBackColor|#aabbcc}}} |TextColor = {{{TitleTextColor|black}}} |Text = Regions }}
{{RBSingle|Align=center|Text = {{#ask: [[part of::{{PAGENAME}}]] | mainlabel=region | ?has lord=Lord | format = table | headers = hide | default=Unknown}} }}
+
{{RBSingle|CellAlign=center|Text = {{#ask: [[part of::{{PAGENAME}}]] | mainlabel=region | ?has lord=Lord | format = table | headers = hide | default=Unknown}} }}
 
{{RBBottom}}
 
{{RBBottom}}
 
+
[[Category:Realms]][[Category:{{{Island}}}]]</includeonly><noinclude>
</includeonly><noinclude>
 
 
==Intro==
 
==Intro==
'''This is an experimental template for exploring the [[Semantic Wiki]] project.''' You should not use this for your realm.
+
'''This is an experimental template for exploring the [[Semantic Wiki]] project.''' You should not use this for your realm. ''(Yet...)''
 
 
This template is part of the [[RealmBox Project]].
 
  
This template calls other RealmBox templates to create a complete RealmBox. It is pre-configured to provide much more detail than [[Template:RBRealmOne]]. All you need to do is invoke this one single template, and it calls all the RealmBox templates needed.
+
This template is part of the [[RealmBox Project]]. It is enabled for semantic coding of the included data.
  
 
* Certain parameters in this template are automatically tagged for the [[Semantic Wiki]]. These properties are noted in their descriptions below.
 
* Certain parameters in this template are automatically tagged for the [[Semantic Wiki]]. These properties are noted in their descriptions below.
Line 48: Line 46:
 
All parameters, vertical format:
 
All parameters, vertical format:
 
* Island - The name of the island on which the realm is located. {{C|red|Required}}
 
* Island - The name of the island on which the realm is located. {{C|red|Required}}
* Flag - The name of the image file to use at the top of the RealmBox. Must be an image uploaded to the wiki. Do not include the "Image:" part of the name.
+
* Flag - The name of the image file to use at the top of the RealmBox. Must be an image uploaded to the wiki. Do not include the "Image:" part of the name. Leave blank if you don't want a flag displayed.
* FlagCaption - A caption to go under the image.
+
* FlagCaption - A caption to go under the image. Ignored if "Flag" is blank.
 
* RulerTitle - Ruler's custom title.
 
* RulerTitle - Ruler's custom title.
 
* RulerName - Ruler's name.
 
* RulerName - Ruler's name.
Line 59: Line 57:
 
* BankerName - Banker's name.
 
* BankerName - Banker's name.
 
* Government - The government type: Monarchy, Theocracy, etc.
 
* Government - The government type: Monarchy, Theocracy, etc.
 +
* StateReligion - The official state religion of the realm. Leave blank if there is none. ''(Do '''not''' enter "None" or anything lie that.)''
 
* Nobles - The number of nobles in the realm. If you leave this blank the template will attempt to calculate it based on the semantic coding found in family pages. If this happens, it will almost certainly be very low, if not zero.
 
* Nobles - The number of nobles in the realm. If you leave this blank the template will attempt to calculate it based on the semantic coding found in family pages. If this happens, it will almost certainly be very low, if not zero.
* Population - The approximate population of the realm.
+
* Population - The approximate population of the realm. If you leave this blank the template will attempt to calculate it based on the semantic coding found in the region pages. '''This will cause errors if the region population values uses the thousands separator.'''
* Food - The approximate food production of the realm. If you leave this blank,
+
* Food - The approximate food production of the realm. If you leave this blank, the template will attempt to calculate it based on the semantic coding found in the region pages. It should work fine.
* Gold - Gold production of the realm.
+
* Gold - Gold production of the realm. If you leave this blank, the template will attempt to calculate it based on the semantic coding found in the region pages. '''This will cause errors if the gold production values use the thousands separator.'''
 
* TitleBackColor - The color code for the title bar backgrounds. Optional. Defaults to a light blue/gray color. ''(#aabbcc)''
 
* TitleBackColor - The color code for the title bar backgrounds. Optional. Defaults to a light blue/gray color. ''(#aabbcc)''
 
* TitleTextColor - The color code of the title bar text. Defaults to black.
 
* TitleTextColor - The color code of the title bar text. Defaults to black.

Revision as of 01:31, 13 February 2009

Intro

This is an experimental template for exploring the Semantic Wiki project. You should not use this for your realm. (Yet...)

This template is part of the RealmBox Project. It is enabled for semantic coding of the included data.

  • Certain parameters in this template are automatically tagged for the Semantic Wiki. These properties are noted in their descriptions below.
  • The Island parameter must have a value. If you fail to supply the required information, then you will get a nasty-gram on your page telling you about it.
  • All parameter names must be listed on your page. If you do not wish a particular piece of information to appear, then leave that parameter blank and it will not be shown at all. i.e.:
|StateReligion = 
If you leave the parameter out, the template will not function properly, and you'll see something like {{{Government}}} on your page.
  • Several pieces of information will be automatically determined and added to the page. This includes the realm name, number of duchies, number of regions, region names, region lords, etc. You cannot manually specify this information. We are working on autogenerating population, food, and gold, but we're not there yet.

Parameters

All parameters, vertical format:

  • Island - The name of the island on which the realm is located. Required
  • Flag - The name of the image file to use at the top of the RealmBox. Must be an image uploaded to the wiki. Do not include the "Image:" part of the name. Leave blank if you don't want a flag displayed.
  • FlagCaption - A caption to go under the image. Ignored if "Flag" is blank.
  • RulerTitle - Ruler's custom title.
  • RulerName - Ruler's name.
  • GeneralTitle - General's custom title.
  • GeneralName - General's name.
  • JudgeTitle - Judge's custom title.
  • JudgeName - Judge's name.
  • BankerTitle - Banker's custom title.
  • BankerName - Banker's name.
  • Government - The government type: Monarchy, Theocracy, etc.
  • StateReligion - The official state religion of the realm. Leave blank if there is none. (Do not enter "None" or anything lie that.)
  • Nobles - The number of nobles in the realm. If you leave this blank the template will attempt to calculate it based on the semantic coding found in family pages. If this happens, it will almost certainly be very low, if not zero.
  • Population - The approximate population of the realm. If you leave this blank the template will attempt to calculate it based on the semantic coding found in the region pages. This will cause errors if the region population values uses the thousands separator.
  • Food - The approximate food production of the realm. If you leave this blank, the template will attempt to calculate it based on the semantic coding found in the region pages. It should work fine.
  • Gold - Gold production of the realm. If you leave this blank, the template will attempt to calculate it based on the semantic coding found in the region pages. This will cause errors if the gold production values use the thousands separator.
  • TitleBackColor - The color code for the title bar backgrounds. Optional. Defaults to a light blue/gray color. (#aabbcc)
  • TitleTextColor - The color code of the title bar text. Defaults to black.


Template

You can copy/paste the following guide into your page, then add the values.

{{RBRealmOne
|TitleBackColor = 
|TitleTextColor = 
|Flag = 
|FlagCaption = 
|RulerTitle = 
|RulerName = 
|GeneralTitle = 
|GeneralName = 
|JudgeTitle = 
|JudgeName = 
|BankerTitle = 
|BankerName = 
|Island = 
|Nobles = 
|Population = 
|Government = 
|Nobles = 
|Population = 
|Food = 
}}