Difference between revisions of "Template:Infobox Realmboxclean"

From BattleMaster Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 +
<includeonly>{{#get_web_data:url=http://battlemaster.org/data/realm.php?World={{{World|{{{1}}}}}}&ID={{{RealmID|{{{2}}}}}}|format=XML
 +
|data=
 +
Island=continent,
 +
TitleBackColor=colour,
 +
Realm=name,
 +
Capital=capital,
 +
FullName=fullname,
 +
Government=system,
 +
Duchies=duchycount,
 +
RulerTitle=rulertitle,
 +
RulerName=rulername,
 +
GeneralTitle=generaltitle,
 +
GeneralName=generalname,
 +
JudgeTitle=judgetitle,
 +
JudgeName=judgename,
 +
BankerTitle=bankertitle,
 +
BankerName=bankername,
 +
Regions=regioncount,
 +
Population=population,
 +
Gold=gold,
 +
Food=food,
 +
Nobles=nobles,
 +
}}
 +
 
{|style="background:none; border: solid #aaaaaa 1px; font-size: 100%; " cellpadding="2"; align="right";
 
{|style="background:none; border: solid #aaaaaa 1px; font-size: 100%; " cellpadding="2"; align="right";
 
|-style="background-color: {{{titlecolor}}};font-size:11px; line-height:20px"  
 
|-style="background-color: {{{titlecolor}}};font-size:11px; line-height:20px"  
Line 11: Line 35:
 
| colspan="2"; width="400px"; align="center"; style="font-size: 14px; color:{{{headertextcolor}}};"|'''GOVERNMENT'''
 
| colspan="2"; width="400px"; align="center"; style="font-size: 14px; color:{{{headertextcolor}}};"|'''GOVERNMENT'''
 
|-style="background:#dddddd"
 
|-style="background:#dddddd"
| colspan="2"; width="400px"; align="center"; style="font-size: 14px";|'''{{{realm type}}}'''
+
| colspan="2"; width="400px"; align="center"; style="font-size: 14px";|'''{{#external_value:Government}}'''
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
| width="175px"; style="font-size: 14px";|'''{{{ruler title}}}'''
+
| width="175px"; style="font-size: 14px";|'''{{#external_value:RulerTitle}}'''
| style="background:#ffffff"; width="225px"; |{{{ruler}}}
+
| style="background:#ffffff"; width="225px"; |[[has ruler::{{#external_value:RulerName}}| ]] {{FamilyLink|{{{World|{{{1}}}}}}|{{#external_value:RulerName}}}} }}
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
| width="175px"; style="font-size: 14px";|'''{{{general title}}}'''
+
| width="175px"; style="font-size: 14px";|'''{{#external_value:GeneralTitle}}'''
| style="background:#ffffff"; width="225px"; |{{{general}}}
+
| style="background:#ffffff"; width="225px"; |{{FamilyLink|{{{World|{{{1}}}}}}|{{#external_value:GeneralName}}}}
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
| width="175px"; style="font-size: 14px";;|'''{{{judge title}}}'''
+
| width="175px"; style="font-size: 14px";;|'''{{#external_value:JudgeTitle}}'''
| style="background:#ffffff"; width="225px"; |{{{judge}}}
+
| style="background:#ffffff"; width="225px"; |{{{World|{{{1}}}}}}|{{#external_value:JudgeName}}}}
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
| width="175px"; style="font-size: 14px";|'''{{{banker title}}}'''
+
| width="175px"; style="font-size: 14px";|'''{{#external_value:BankerTitle}}'''
| style="background:#ffffff"; width="225px"; |{{{banker}}}
+
| style="background:#ffffff"; width="225px"; |{{FamilyLink|{{{World|{{{1}}}}}}|{{#external_value:BankerName}}}}}}
 
|-style="background:{{{titlecolor}}}"
 
|-style="background:{{{titlecolor}}}"
 
| colspan="2"; width="400px"; align="center"; style="font-size: 14px; color:{{{headertextcolor}}};"|'''REALM INFORMATION'''
 
| colspan="2"; width="400px"; align="center"; style="font-size: 14px; color:{{{headertextcolor}}};"|'''REALM INFORMATION'''
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
| width="175px"; style="font-size: 14px";|'''Continent'''
 
| width="175px"; style="font-size: 14px";|'''Continent'''
| style="background:#ffffff"; width="225px"; |Beluaterra
+
| style="background:#ffffff"; width="225px"; |[[{{#external_value:Island}}]]
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
| width="175px"; style="font-size: 14px";|'''Capital City'''
 
| width="175px"; style="font-size: 14px";|'''Capital City'''
| style="background:#ffffff"; width="225px"; |{{{capital}}}
+
| style="background:#ffffff"; width="225px"; |[[{{#external_value:Capital}}]]
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
| width="175px"; style="font-size: 14px";;|'''Population'''
 
| width="175px"; style="font-size: 14px";;|'''Population'''
| style="background:#ffffff"; width="225px"; |{{{population}}}
+
| style="background:#ffffff"; width="225px"; |{{#external_value:Population}}
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
| width="175px"; style="font-size: 14px";|'''Total Economy'''
 
| width="175px"; style="font-size: 14px";|'''Total Economy'''
| style="background:#ffffff"; width="225px"; |8987 gold
+
| style="background:#ffffff"; width="225px"; |{{#external_value:Gold}}
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
|-style="background:#FAFAFA" valign="center"; align="center"
 
| width="175px"; style="font-size: 14px";|'''Food Production'''
 
| width="175px"; style="font-size: 14px";|'''Food Production'''
| style="background:#ffffff"; width="225px"; |2730 bushels
+
| style="background:#ffffff"; width="225px"; |{{#external_value:Food}}
 
|}
 
|}
 
+
</includeonly>
  
 
<noinclude>
 
<noinclude>

Revision as of 17:55, 17 July 2020


The infobox should be added using the Infobox Realm template, as shown below:

{{Infobox Realmboxclean
|realm color=
|header text color=
|realm name=
|flag=
|coat of arms=
|realm map=
|ruler title=
|ruler=
|general title=
|general=
|judge title=
|judge=
|banker title=
|banker=
|realm type=
|capital=
|largest city=
|number of regions=
|population=
}}