Difference between revisions of "Template: WebCharacter"

From Elder Tale Online MUSH
Jump to: navigation, search
(Created page with "<noinclude> This is the "WebCharacter" template. It should be called in the following format: <pre> {{WebCharacter |CharacterId= }} </pre> Edit the page to see the template te...")
 
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{WebCharacter
 
{{WebCharacter
|CharacterId=
+
|CharacterID=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
'''Character Id:''' [[Characterid::{{{CharacterId|}}}]]
+
{{#get_web_data:url=http://eldertaleonline.com:7705/characterinfo?character={{{CharacterID|}}}
 +
|format=JSON
 +
|data=Alliance=alliance,Guild=guild,Race=race,CharacterType=type,FullName=fullname,Profile=profile,Skills=skills}}
 +
{{Character
 +
|characterid={{{CharacterID|}}}
 +
|Alliance={{#external_value:Alliance}}
 +
|Guild={{#external_value:Guild}}
 +
|Race={{#external_value:Race}}
 +
|Character Type={{#external_value:CharacterType}}
 +
|Full Name={{#external_value:FullName}}
 +
|Profile={{#external_value:Profile}}
 +
|Skills={{#external_value:Skills}}
 +
}}
 
</includeonly>
 
</includeonly>

Revision as of 16:44, 28 February 2019

This is the "WebCharacter" template. It should be called in the following format:

{{WebCharacter
|CharacterID=
}}

Edit the page to see the template text.