Difference between revisions of "Template:Infobox Sirion"

From BattleMaster Wiki
Jump to navigation Jump to search
(replacing hard-coded values with semantics, pulled from external data)
m (trying to eliminate white space)
Line 26: Line 26:
 
}}
 
}}
 
</noinclude>
 
</noinclude>
<includeonly>
+
<includeonly>{{#get_external_data:http://battlemaster.org/data/realm.php?World=1&ID=3|xml
{{#get_external_data:http://battlemaster.org/data/realm.php?World=1&ID=3|xml
 
 
|Island=continent
 
|Island=continent
 
|TitleBackColor=colour
 
|TitleBackColor=colour
Line 40: Line 39:
 
|BankerTitle=bankertitle
 
|BankerTitle=bankertitle
 
|BankerName=bankername
 
|BankerName=bankername
}}
+
}}{|style="border-bottom: 8px solid darkred;; border-left: 8px solid darkred;" cellspacing="0" border="2" cellpadding="3" align="right" valign="top" border="0"
{|style="border-bottom: 8px solid darkred;; border-left: 8px solid darkred;" cellspacing="0" border="2" cellpadding="3" align="right" valign="top" border="0"
 
 
|-
 
|-
 
|colspan="2" align="center" style="border-bottom: 8px solid darkred;"|[[Image:Sirion.png]]
 
|colspan="2" align="center" style="border-bottom: 8px solid darkred;"|[[Image:Sirion.png]]

Revision as of 18:52, 23 October 2009

Description

The template now uses an external feed for most of its attributes, keeping it better up to date. It also makes uses of semantics.

Code

{{Infobox Sirion
|nobles=
|advys=
|updated=
}}

Example

{{Infobox Sirion
|nobles=68
|advys=9
|updated=7/11/08
}}

{{#get_external_data:http://battlemaster.org/data/realm.php?World=1&ID=3%7Cxml |Island=continent |TitleBackColor=colour |Realm=name |Government=system |RulerTitle=rulertitle |RulerName=rulername |GeneralTitle=generaltitle |GeneralName=generalname |JudgeTitle=judgetitle |JudgeName=judgename |BankerTitle=bankertitle |BankerName=bankername }}{|style="border-bottom: 8px solid darkred;; border-left: 8px solid darkred;" cellspacing="0" border="2" cellpadding="3" align="right" valign="top" border="0" |- |colspan="2" align="center" style="border-bottom: 8px solid darkred;"|Sirion.png |-style="border-top: 8px solid darkred;" |Continent:|| |- |Capital:||UnknownSome use of "" in your query was not closed by a matching "". |-style="border-bottom: 6px solid darkred;" |Largest City:||UnknownSome use of "" in your query was not closed by a matching "". |- |style="border-top: 8px solid darkred;"|Government System:||style="border-top: 8px solid darkred;"| |- |:|| |- |:|| |- |:|| |- |style="border-bottom: 8px solid darkred;"|:||style="border-bottom: 8px solid darkred;"| |- |Regions:||0Some use of "" in your query was not closed by a matching "". |- |Population:||0 |- |Nobles:||68 |- |Adventurers:||9 |- |Last updated:||7/11/08 |- | style="border-top: 8px solid darkred;" colspan="2" align="Center"| DragonOrb.gif |- |}