Difference between revisions of "Template:API CharacterData"

From BattleMaster Wiki
Jump to navigation Jump to search
(Created page with "===XML=== <xml> <nobledata> <id> ''integer'' </id> <name> ''string'' </name> <family> ''string'' </family> <active> ''string'' </active> <gender> ''string''...")
 
(Replaced content with "===XML=== <xml> <nobledata> {{API_XML_Character}} </nobledata> </xml> ===JSON=== { "nobledata": { {{API_JSON_Character}} } }")
Tag: Replaced
 
Line 2: Line 2:
 
  <xml>
 
  <xml>
 
   <nobledata>
 
   <nobledata>
  <id> ''integer'' </id>
+
{{API_XML_Character}}
  <name> ''string'' </name>
 
  <family> ''string'' </family>
 
  <active> ''string'' </active>
 
  <gender> ''string'' </gender>
 
  <age> ''integer'' </age>
 
  <continent> ''string'' </continent>
 
  <continentid> ''string'' </continentid>
 
  <faith> ''string'' </faith>
 
  <realm> ''string'' </realm>
 
  <mainclass> ''string'' </mainclass>
 
  <subclass> ''string'' </subclass>
 
  <honour> ''integer'' </honour>
 
  <prestige> ''integer'' </prestige>
 
  <rank> ''string'' </rank>
 
  <titles> ''comma-separated list of strings'' </titles>
 
  <ruler> ''string'' </ruler>
 
  <region>''string''</region>
 
  <duchy> ''string'' </duchy>
 
  <description> ''string'' </description>
 
  <portrait> ''string'' </portrait>
 
 
   </nobledata>
 
   </nobledata>
 
  </xml>
 
  </xml>
Line 28: Line 8:
 
  {
 
  {
 
     "nobledata": {
 
     "nobledata": {
        "id": ''integer'',
+
{{API_JSON_Character}}
        "name": ''string'',
 
        "family": ''string'',
 
        "active": ''string'',
 
        "gender": ''string'',
 
        "age": ''integer'',
 
        "continent": ''string'',
 
        "continentid": ''string'',
 
        "faith": ''string'',
 
        "realm": ''string'',
 
        "mainclass": ''string'',
 
        "subclass": ''string'',
 
        "honour": ''integer'',
 
        "prestige": ''integer'',
 
        "rank": ''string'',
 
        "titles": ''comma-separated list of strings'',
 
        "ruler": ''string'',
 
        "region": ''string'',
 
        "duchy": ''string'',
 
        "description": ''string'',
 
        "portrait": ''string''
 
 
     }
 
     }
 
  }
 
  }

Latest revision as of 09:50, 28 January 2022

XML

<xml>
 <nobledata>
  <id> integer </id>
  <name> string </name>
  <family> string </family>
  <active> string </active>
  <gender> string </gender>
  <age> integer </age>
  <continent> string </continent>
  <continentid> string </continentid>
  <faith> string </faith>
  <realm> string </realm>
  <mainclass> string </mainclass>
  <subclass> string </subclass>
  <honour> integer </honour>
  <prestige> integer </prestige>
  <rank> string </rank>
  <titles> comma-separated list of strings </titles>
  <ruler> string </ruler>
  <region>string</region>
  <duchy> string </duchy>
  <description> string </description>
  <portrait> string </portrait>
 </nobledata>
</xml>

JSON

{
   "nobledata": {
       "id": integer,
       "name": string,
       "family": string,
       "active": string,
       "gender": string,
       "age": integer,
       "continent": string,
       "continentid": string,
       "faith": string,
       "realm": string,
       "mainclass": string,
       "subclass": string,
       "honour": integer,
       "prestige": integer,
       "rank": string,
       "titles": comma-separated list of strings,
       "ruler": string,
       "region": string,
       "duchy": string,
       "description": string,
       "portrait": string
   }
}