Difference between revisions of "Template:Infobox Sirion"
Jump to navigation
Jump to search
(replacing hard-coded values with semantics, pulled from external data) |
m |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
{{Infobox Sirion | {{Infobox Sirion | ||
− | |nobles= | + | |nobles=82 |
− | |advys= | + | |advys=4 |
− | |updated= | + | |updated=8/04/12 |
}} | }} | ||
</noinclude> | </noinclude> | ||
− | <includeonly> | + | <includeonly>{{#get_web_data:url=http://battlemaster.org/data/realm.php?World=1&ID=3|format=XML |
− | {{# | + | |data=Island=continent,TitleBackColor=colour,Realm=name,Government=system,RulerTitle=rulertitle,RulerName=rulername,GeneralTitle=generaltitle,GeneralName=generalname,JudgeTitle=judgetitle,JudgeName=judgename,BankerTitle=bankertitle,BankerName=bankername}} |
− | |Island=continent | + | {|style="border-bottom: 8px solid darkred; border-right: 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;"|[[ | + | |colspan="2" align="center" style="border-bottom: 8px solid darkred;"|[[image:Sirion at its peak II-adj.png]] |
|-style="border-top: 8px solid darkred;" | |-style="border-top: 8px solid darkred;" | ||
|[[Islands|Continent:]]||[[Located on::{{#external_value:Island}}]] | |[[Islands|Continent:]]||[[Located on::{{#external_value:Island}}]] | ||
Line 71: | Line 58: | ||
|Last updated:||{{{updated}}} | |Last updated:||{{{updated}}} | ||
|- | |- | ||
− | | style="border-top: 8px solid darkred;" colspan="2" align="Center"| [[Image: | + | | style="border-top: 8px solid darkred;" colspan="2" align="Center"| [[Image:Sirion-Orobors.png]] |
|- | |- | ||
|}</includeonly> | |}</includeonly> |
Latest revision as of 11:14, 10 November 2015
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 }}
XML error: SYSTEM or PUBLIC, the URI is missing at line 1.
Continent: | |
Capital: | UnknownSome use of "" in your query was not closed by a matching "". |
Largest City: | UnknownSome use of "" in your query was not closed by a matching "". |
Government System: | |
: | |
: | |
: | |
: | |
Regions: | 0Some use of "" in your query was not closed by a matching "". |
Population: | 0 |
Nobles: | 82 |
Adventurers: | 4 |
Last updated: | 8/04/12 |