Difference between revisions of "Template:Infobox Realmboxclean"

From BattleMaster Wiki
Jump to navigation Jump to search
(This is a sandbox I'm using to try to build a cleaned up infobox that will stop throwing errors and making everything look like a cluttered mess. Not finished yet -- work in progress. Using Nothoi to design before I code it harder.)
 
m
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|style="background:none; border: solid #aaaaaa 1px; font-size: 100%; " cellpadding="2"; align="right";
+
<includeonly>{{#get_web_data:url=http://battlemaster.org/data/realm.php?World={{{World|{{{1}}}}}}&ID={{{RealmID|{{{2}}}}}}|format=XML
|-style="background-color: #0d5488;font-size:11px; line-height:20px"  
+
|data=
| colspan="2" style="font-size: 16px; color: #dddddd;font-weight: bold; text-align: center;"|FREE STATE OF NOTHOI
+
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="margin-left:50px; margin-right:10px; background:none; border: solid #aaaaaa 1px; font-size: 100%; cellpadding="2"; align="right";
 +
|-style="background-color: {{{titlecolor}}};font-size:11px; line-height:20px"  
 +
| colspan="2" style="font-size: 16px; color:{{{headertextcolor}}}; font-weight: bold; text-align: center;"|<span class="allcaps" style="text-transform: uppercase;">{{{realm name}}}</span>
 
|-
 
|-
| colspan="2"|[[File:NothoiBanner.png|frameless|400px|center]]
+
| colspan="2"|[[File:{{{banner}}}|frameless|400px|center]]
|-style="background:#76b5e0"
+
|-style="background:{{{titlecolor}}}"
| colspan="2"; width="400px"; align="center"; style="font-size: 14px";|'''REALM MAP'''
+
| colspan="2"; width="400px"; align="center"; style="font-size: 14px; color:{{{headertextcolor}}};"|'''REALM MAP'''
 
|-
 
|-
| colspan="2"; align="center";|<img src="http://battlemaster.org/experimental/RealmMap.php?shownames=regions&onlyRealm=yes&World=4&Realm=55" height="300" width="400">
+
| colspan="2"; align="center";|<img src="http://battlemaster.org/experimental/RealmMap.php?shownames=regions&onlyRealm=yes&World={{{World|{{{1}}}}}}&Realm={{{RealmID|{{{2}}}}}}" height="303" width="400">
|-style="background:#76b5e0"
+
|-style="background:{{{titlecolor}}}"
! colspan="2"; width="400px"; style="font-size: 14px";|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";|'''Democracy'''
+
| 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";|'''Diadochi'''
+
| width="175px"; style="font-size: 14px";|'''{{#external_value:RulerTitle}}'''
| style="background:#ffffff"; width="225px"; |Tyran Arylon
+
| 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";|'''Polomarchos'''
+
| width="175px"; style="font-size: 14px";|'''{{#external_value:GeneralTitle}}'''
| style="background:#ffffff"; width="225px"; |Marth Kinsey
+
| style="background:#ffffff"; width="225px"; |[[has general::{{#external_value:GeneralName}}| ]] {{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";;|'''Demokritia'''
+
| width="175px"; style="font-size: 14px";;|'''{{#external_value:JudgeTitle}}'''
| style="background:#ffffff"; width="225px"; |Angelica D'Anglos
+
| style="background:#ffffff"; width="225px"; |[[has judge::{{#external_value:JudgeName}}| ]] {{FamilyLink|{{{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";|'''Sophos'''
+
| width="175px"; style="font-size: 14px";|'''{{#external_value:BankerTitle}}'''
| style="background:#ffffff"; width="225px"; |Francis Elynbrigge
+
| style="background:#ffffff"; width="225px"; |[[has banker::{{#external_value:BankerName}}| ]] {{FamilyLink|{{{World|{{{1}}}}}}|{{#external_value:BankerName}}}}
|-style="background:#76b5e0"
+
|-style="background:{{{titlecolor}}}"
| colspan="2"; width="400px"; align="center"; style="font-size: 14px";|'''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"; |Reeds
+
| 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"; |146,048
+
| 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}}
|}
+
|-style="background:#FAFAFA" valign="center"; align="center"
 
+
| width="175px"; style="font-size: 14px";|'''Regions Held'''
 
+
| style="background:#ffffff"; width="225px"; |{{#external_value:Regions}}
+
|-style="background:#FAFAFA" valign="center"; align="center"
 
+
| width="175px"; style="font-size: 14px";|'''Noble Citizens'''
 
+
| style="background:#ffffff"; width="225px"; |{{#external_value:Nobles}}
 
+
|}</includeonly><noinclude>
 
 
 
 
 
 
{| style="float: right; margin:0 0 1em 1em; font-size:90%; width: 10%; background-color: #ffffff; border: solid #aaaaaa 1px; margin-right: 2em;"
 
| colspan="2" bgcolor={{{realm color}}} style="text-align: center;" | <font color={{{header text color}}}> <font size=2>'''The Lost Realm of {{{realm name}}}'''
 
|-
 
| align=center colspan="2" |
 
{| style="background: none;"
 
|- align=center style="vertical-align: middle;"
 
| <span style="display:table-cell; border-collapse:collapse; width:125px; border: solid 1px #BBBBBB;">[[Image:{{{flag}}}]]</span>
 
| width=125 |[[Image:{{{coat of arms}}}]]
 
|- align=center
 
| <small>'''Realm Battle Flag'''</small>
 
| <small>'''Realm Coat of Arms'''</small>
 
|}
 
|-
 
| colspan="2" style="text-align:center;" style="border-bottom: 1px solid #AAAAAA;"|
 
|-
 
| colspan="2" style="text-align:center;"| {{{realm map}}}
 
|-
 
| colspan="2" style="text-align: center;" | '''Map of Realm's Greatest Power'''
 
|-
 
| colspan="2" style="text-align:center;" style="border-bottom: 1px solid #AAAAAA;"|
 
|-
 
| colspan="2" bgcolor={{{realm color}}} style="text-align: center;" | <font color={{{header text color}}}> <font size=2>'''Last Known Leadership'''
 
|-
 
| colspan="2" bgcolor=#CCCCCC style="text-align: center;" | '''{{{ruler title}}} {{{ruler}}}'''
 
|-
 
| style="vertical-align: top; text-align: right;" | '''{{{general title}}}'''
 
| {{{general}}}
 
|-
 
| style="vertical-align: top; text-align: right;" | '''{{{judge title}}}'''
 
| {{{judge}}}
 
|-
 
| style="vertical-align: top; text-align: right;" | '''{{{banker title}}}'''
 
| {{{banker}}}
 
|-
 
| colspan="2" bgcolor={{{realm color}}} style="text-align: center;" | <font color={{{header text color}}}> <font size=2>'''The {{{realm type}}} At Its Height'''
 
|-
 
| style="vertical-align: top; text-align: right;" | '''Realm Type'''
 
| {{{realm type}}}
 
|-
 
| style="vertical-align: top; text-align: right;" | '''Capital City'''
 
| {{{capital}}}
 
|-
 
| style="vertical-align: top; text-align: right;" | '''Largest City'''
 
| {{{largest city}}}
 
|-
 
| style="vertical-align: top; text-align: right;" | '''Regions'''
 
| {{{number of regions}}}
 
|-
 
| style="vertical-align: top; text-align: right;" | '''Population'''
 
| {{{population}}}
 
|}
 
<noinclude>
 
 
The infobox should be added using the Infobox Realm template, as shown below:
 
The infobox should be added using the Infobox Realm template, as shown below:
  
 
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 
{{Infobox Realmboxclean
 
{{Infobox Realmboxclean
|realm color=
+
|World=
|header text color=
+
|RealmID=
 +
|titlecolor=
 +
|headertextcolor=
 
|realm name=
 
|realm name=
|flag=
+
|banner=
|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=
 
 
}}
 
}}
 
</pre></div>
 
</pre></div>
  
 
</noinclude>
 
</noinclude>

Latest revision as of 00:37, 18 July 2020

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

{{Infobox Realmboxclean
|World=
|RealmID=
|titlecolor=
|headertextcolor=
|realm name=
|banner=
}}