Template:Infobox CharData
Semantic Coded Template |
This template contains semantic coding. Do not use this template for anything other than its intended purpose. |
Template Documentation |
This documentation is transcluded from Template:Infobox CharData/doc. |
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) IntroThis template uses the BattleMaster external data API to grab your character data from the game database and display it on a wiki page. That way you don't need to continually update your character info on the wiki every time something changes. Note: Once your character dies, this info box will break, and show as all blank. You can replace it with Template:Infobox DeadCharData. UsageThe most basic usage of the template is to provide only the world number and your character ID number. You can get both of these by hovering your mouse over the Play link for that character, and noting the URL, like this:
Substitute these into the template, using the inline format, like this:
Like this:
Usage of the character ID number is preferred, as it uses less server resources than using the character name. If, however, you cannot for some reason get the character ID number (like if it's not your character you're putting up a box for), then you can use the character name, like this (note the extra pipe (|) character):
Like this:
ColorsYou can optionally specify background colors by adding extra parameters on the end. Make sure you add extra pipe characters as needed, as shown below.
Experiment with the different colors to get the effect desired. GraphicsYou can optionally include a graphic to be displayed between the character name and the statistics. The image must be uploaded to the wiki, you cannot use external graphics. Note that if you use a wide graphic, the entire box will be as wide as the graphic, and may look awkward. If you have a large graphic, you may not want to include it as part of the infobox. To add the graphic, and an optional caption, include the image name (only the name, do not include the "Image:" part) and caption as additional parameters after the colors.
For example:
|