Difference between revisions of "Template:MapInfoBox"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Jerry-rigging the map info box to occupy the entire right side of the page)
(Reformatting back end code)
Line 1: Line 1:
 
<div style="float:right; border:1px solid; margin:5px; text-align:center; margin-bottom:35vh;">
 
<div style="float:right; border:1px solid; margin:5px; text-align:center; margin-bottom:35vh;">
[[{{#ifexist: {{{Minimap}}}
+
[[<!---
      |{{{Minimap}}}
+
--->{{#ifexist: {{{Minimap}}}
      |{{#ifexist:File:Minimap_{{{MapName}}}.png
+
        | {{{Minimap}}}
            |File:Minimap_{{{MapName}}}.png
+
        | {{#ifexist: File:Minimap_{{{MapName}}}.png
            |File:Minimap_The_Gates_Of_Dragonfall.png
+
            | File:Minimap_{{{MapName}}}.png
 +
            | File:Minimap_The_Gates_Of_Dragonfall.png
 
         }}
 
         }}
}}|250px]]
+
    }}<!--
 +
-->|250px]]
 
<p style="text-align:center; margin:4px; font-size: 1.25em"><b>{{{MapName}}}</b></p>
 
<p style="text-align:center; margin:4px; font-size: 1.25em"><b>{{{MapName}}}</b></p>
 
<hr>
 
<hr>
Line 30: Line 32:
 
|}
 
|}
 
</div>
 
</div>
{{#if:{{{Description|}}}|<div style="padding: 0em 2em 0em 1em; margin: 1em 0em 1em 4em; border-left: 1px solid silver;">
+
{{#if:{{{Description|}}}
<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="padding: 0em 2em 0em 1em; margin: 1em 0em 1em 4em; border-left: 1px solid silver;">
<p style="font-size:1.3em">{{{Description}}}</p>
+
        <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>|}}
+
        <p style="font-size:1.3em">{{{Description}}}</p>
 +
    </div>
 +
    |
 +
}}
 +
 
 
<noinclude>
 
<noinclude>
 
===Parameters===
 
===Parameters===
Line 40: Line 46:
 
! Parameter !! Description
 
! Parameter !! Description
 
|-
 
|-
| Minimap || File reference to the Minimap image. <code style="color:white">File:Minimap_{{{MapName}}}.png</code> will be used if this parameter is not set.
+
| Minimap || File reference to the Minimap image. <code>File:Minimap_{{{MapName}}}.png</code> will be used if this parameter is not set.
 
|-
 
|-
 
| MapName || Name of the map.
 
| MapName || Name of the map.
Line 60: Line 66:
  
 
===Example===
 
===Example===
<nowiki>{{MapInfoBox  
+
<code><nowiki>{{MapInfoBox  
 
| Minimap=File:Minimap_The_Gates_Of_Dragonfall.png
 
| Minimap=File:Minimap_The_Gates_Of_Dragonfall.png
 
| MapName=The Gates of Dragonfall
 
| MapName=The Gates of Dragonfall
Line 70: Line 76:
 
| DU=600
 
| DU=600
 
| Region=Dragonfall Town
 
| Region=Dragonfall Town
}}</nowiki> produces the following:
+
}}</nowiki></code> produces the following:
  
 
{{MapInfoBox
 
{{MapInfoBox

Revision as of 14:42, 8 February 2023

250px

{{{MapName}}}


Main Cores: {{{MCores}}}
Sub Cores: {{{SCores}}}
Ground Lanes: {{{GLanes}}}
Air Lanes: {{{ALanes}}}
Defense Units: {{{DU}}}
Region: {{{Region}}}


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.
Region The region the map belongs to.

Example

{{MapInfoBox | Minimap=File:Minimap_The_Gates_Of_Dragonfall.png | MapName=The Gates of Dragonfall | Description=Squire, put a description here! | MCores=1 | SCores=0 | GLanes=3 | ALanes=2 | DU=600 | Region=Dragonfall Town }} produces the following:

Minimap The Gates of Dragonfall.png

The Gates of Dragonfall


Main Cores: 1
Sub Cores: 0
Ground Lanes: 3
Air Lanes: 2
Defense Units: 600
Region: Dragonfall Town

Squire, put a description here!