Difference between revisions of "Template:MapInfoBox"
From Dungeon Defenders 2 Wiki
(Updating to remove dd2 planner parameter, actually adding documentation for how to set a minimap image, rearranging the parameters, and capitalizing "description" to conform with the rest of the parameters.) |
(Fixing the minimap image logic) |
||
Line 1: | Line 1: | ||
<div style="float:right; border:1px solid; margin:5px; text-align:center"> | <div style="float:right; border:1px solid; margin:5px; text-align:center"> | ||
− | [[{{#ifexist:{{{Minimap}}}|{{{Minimap}}}|#ifexist:File:Minimap_{{{MapName}}}.png|File:Minimap_{{{MapName}}}.png|File:Minimap_default.jpg}}|200px]] | + | [[{{#ifexist: {{{Minimap}}} |
+ | |{{{Minimap}}} | ||
+ | |{{#ifexist:File:Minimap_{{{MapName}}}.png | ||
+ | |File:Minimap_{{{MapName}}}.png | ||
+ | |File:Minimap_default.jpg | ||
+ | }} | ||
+ | }}|200px]] | ||
<h3 style="text-align:center; margin:4px;">{{{MapName}}}</h3> | <h3 style="text-align:center; margin:4px;">{{{MapName}}}</h3> | ||
<hr> | <hr> |
Revision as of 15:33, 15 January 2023
{{{MapName}}}
Main Cores: | {{{MCores}}} |
Sub Cores: | {{{SCores}}} |
Ground Lanes: | {{{GLanes}}} |
Air Lanes: | {{{ALanes}}} |
Defense Units: | {{{DU}}} |
Parameters
Parameter | Description |
---|---|
Minimap | File reference to the Minimap image. File:Minimap_{{{MapName}}}.png will be used if this parameter is not set.
|
MapName | Name of the map. |
Description | Description of the map. |
MCores | Total amount of Main Cores. |
SCores | Total amount of Sub Cores. |
GLanes | Total amount of Ground Lanes. |
ALanes | Total amount of Air Lanes. |
DU | Defense Unit Limit. |
Example
{{MapInfoBox | name=The Gates of DragonFall | MCores=1 | SCores=1 | GLanes=2 | ALanes=3 | MChests=1 | DU=50 | Description=Squire, put a description here.}} produces the following:
The Gates of Dragonfall
Main Cores: | 1 |
Sub Cores: | 1 |
Ground Lanes: | 2 |
Air Lanes: | 3 |
Defense Units: | 50 |
Region: | ? |
“
Squire, put a description here.