Difference between revisions of "Template:Infobox CharData"

From BattleMaster Wiki
Jump to navigation Jump to search
m (helped you a bit with formatting)
m (made the "/" for class/subclass separation conditional on there actually being a subclass)
Line 22: Line 22:
 
|-  
 
|-  
 
| style="background: #ddf; font-weight:bold;" | Class
 
| style="background: #ddf; font-weight:bold;" | Class
| {{#external_value:mainclass}} / {{#external_value:subclass}}
+
| {{#external_value:mainclass}} {{#if: {{#external_value:subclass}} |/ {{#external_value:subclass}}|}}
 
|-  
 
|-  
 
| style="background: #ddf; font-weight:bold;" | Age
 
| style="background: #ddf; font-weight:bold;" | Age

Revision as of 17:28, 25 March 2009

{{#get_external_data:http://battlemaster.org/data/noble.php?World={{{1}}}&ID={{{2}}}%7Cxml |continent=continent |name=name |family=family |mainclass=mainclass |subclass=subclass |age=age |honour=honour |prestige=prestige |rank=rank |gender=gender }}

Continent
Family Family
Class
Age years
Honour
Prestige

Please note: this template depends on external APIs that are not yet finalized, and thus will almost certainly break in the near future.

I'm mostly just trying to see if I can even do this Semantic Wiki stuff. -- Anaris 13:20, 25 March 2009 (UTC)