Difference between revisions of "Template:MapInfoBox"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Fixing the minimap image logic)
(Fixing the example provided on the page, changing the <h3> tag to a <p> tag to fix issues with the table of contents, and changing the font size of the description)
Line 7: Line 7:
 
         }}
 
         }}
 
}}|200px]]
 
}}|200px]]
<h3 style="text-align:center; margin:4px;">{{{MapName}}}</h3>
+
<p style="text-align:center; margin:4px;">{{{MapName}}}</p>
 
<hr>
 
<hr>
 
{| cellpadding="2" style="border-collapse:collapse;" width="100%"
 
{| cellpadding="2" style="border-collapse:collapse;" width="100%"
Line 29: Line 29:
 
{{#if:{{{Description|}}}|<div style="padding: 0em 2em 0em 1em; margin: 1em 0em 1em 4em; border-left: 1px solid silver;">
 
{{#if:{{{Description|}}}|<div style="padding: 0em 2em 0em 1em; margin: 1em 0em 1em 4em; border-left: 1px solid silver;">
 
<div style="position: absolute; margin-top: -0.2em; margin-left: -{{{icon-size|0.8em}}}; font: bold 5em Times New Roman, Times, Georgie, serif; color: silver;">“</div>
 
<div style="position: absolute; margin-top: -0.2em; margin-left: -{{{icon-size|0.8em}}}; font: bold 5em Times New Roman, Times, Georgie, serif; color: silver;">“</div>
{{{Description}}}
+
<p style="font-size:1.3em">{{{Description}}}</p>
<p style="text-align: right; font-size: 0.9em; font-style:italic; margin-top:0;">— Tavern Keeper</p>
 
 
</div>|}}
 
</div>|}}
 
<noinclude>
 
<noinclude>
Line 56: Line 55:
  
 
===Example===
 
===Example===
<nowiki>{{MapInfoBox | name=The Gates of DragonFall | MCores=1 | SCores=1 | GLanes=2 | ALanes=3 | MChests=1 | DU=50 | Description=Squire, put a description here.}}</nowiki> produces the following:
+
<nowiki>{{MapInfoBox  
 +
| MapName=The Gates of DragonFall  
 +
| Description=Squire, put a description here!
 +
| MCores=1  
 +
| SCores=0
 +
| GLanes=3
 +
| ALanes=2
 +
| DU=800
 +
}}</nowiki> produces the following:
  
{{MapInfoBox | MapName=The Gates of Dragonfall | MCores=1 | SCores=1 | GLanes=2 | ALanes=3 | MChests=1 | DU=50 | Description=Squire, put a description here.}}
+
{{MapInfoBox  
 +
| MapName=The Gates of DragonFall
 +
| Description=Squire, put a description here!
 +
| MCores=1  
 +
| SCores=0
 +
| GLanes=3
 +
| ALanes=2
 +
| DU=800
 +
}}
 
</noinclude>
 
</noinclude>

Revision as of 16:05, 15 January 2023

Minimap default.jpg

{{{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 | MapName=The Gates of DragonFall | Description=Squire, put a description here! | MCores=1 | SCores=0 | GLanes=3 | ALanes=2 | DU=800 }} produces the following:

Default Minimap.png

The Gates of DragonFall


Main Cores: 1
Sub Cores: 0
Ground Lanes: 3
Air Lanes: 2
Defense Units: 800
Region:  ?

Squire, put a description here!