Module:MapDataToWikitext/doc

Converts a JSON dump of a map file at  to an ObjectArg list accepted by Module:UnitData. (GitHub does not display all available JSON files because the directory is too big; modify the URL of any existing JSON file or clone the repository locally with a Git client in order to view the missing files.) Also works for dumps of Special Maps. Use it in the Lua console as follows: or in wikitext as follows (You must substitute the module. Do not invoke it without substitution.): convert For example, the JSON dump for "I summon thee!" produces the following:

For this module to work properly, the internal string identifiers for the referred objects must be filled; missing objects are represented in HTML comments, e.g., so that they can be manually filled out later. The identifiers are supplied through the following template parameters:
 * Heroes: Template:Hero Infobox, TagID
 * Enemy units: Template:Enemy Infobox, TagID
 * Weapons: Template:Weapon Infobox, tagid / tagidExtraSkill1 / tagidExtraSkill2
 * Assists: Template:Assist, tagid
 * Specials: Template:Special, tagid
 * Passives: Template:Passive, 1tagid / 2tagid / 3tagid / 4tagid
 * Accessories: Template:Accessory Infobox, tagid

Generic unit placeholders on Tempest Trials maps are automatically converted to random units.