Difference between revisions of "Template:MapInfoBox"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Formatting improvements to the template and improving documentation)
(Small formatting change to the example)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{Description|}}}
+
<div style="float:right; border:1px solid; margin:5px; text-align:center; padding: 5px;">
    |<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: -0.8em; font: bold 5em Times New Roman, Times, Georgie, serif; color: silver;">“</div>
 
        <p style="font-size:1.3em">{{{Description}}}</p>
 
    </div>
 
}}
 
<div style="float:right; border:1px solid; margin:5px; text-align:center; margin-bottom:35vh; padding: 5px;">
 
 
{{#ifexist: {{{Minimap}}}
 
{{#ifexist: {{{Minimap}}}
 
     | [[{{{Minimap}}}|250px]]
 
     | [[{{{Minimap}}}|250px]]
 
     | {{#ifexist: File:Minimap_{{{MapName}}}.png
 
     | {{#ifexist: File:Minimap_{{{MapName}}}.png
 
         | [[File:Minimap_{{{MapName}}}.png|250px]]
 
         | [[File:Minimap_{{{MapName}}}.png|250px]]
         | [[File:Minimap_The_Gates_Of_Dragonfall.png|250px]]
+
         | [[File:Default_Minimap.png|250px]]
 
     }}
 
     }}
 
}}
 
}}
Line 20: Line 14:
 
| style="width:55%" | <!--Sets the width for the 2nd column-->
 
| style="width:55%" | <!--Sets the width for the 2nd column-->
 
|-
 
|-
| style="font-size: 105%; text-align: right;" | '''Main Cores:'''
+
| style="font-size: 105%; text-align: right;"   | '''Main Cores:'''
|{{{MCores|?}}}
+
| style="padding-left: 10px; text-align: left;" | {{{MCores|?}}}
 
|-
 
|-
| style="font-size: 105%; text-align: right;" | '''Sub Cores:'''
+
| style="font-size: 105%; text-align: right;"   | '''Sub Cores:'''
|{{{SCores|?}}}
+
| style="padding-left: 10px; text-align: left;" | {{{SCores|?}}}
 
|-
 
|-
| style="font-size: 105%; text-align: right;" | '''Ground Lanes:'''
+
| style="font-size: 105%; text-align: right;"   | '''Ground Lanes:'''
|{{{GLanes|?}}}
+
| style="padding-left: 10px; text-align: left;" | {{{GLanes|?}}}
 
|-
 
|-
| style="font-size: 105%; text-align: right;" | '''Air Lanes:'''
+
| style="font-size: 105%; text-align: right;"   | '''Air Lanes:'''
|{{{ALanes|?}}}
+
| style="padding-left: 10px; text-align: left;" | {{{ALanes|?}}}
 
|-
 
|-
| style="font-size: 105%; text-align: right;" | '''Defense Units:'''
+
| style="font-size: 105%; text-align: right;"   | '''Defense Units:'''
|{{{DU|?}}}
+
| style="padding-left: 10px; text-align: left;" | {{{DU|?}}}
 
|-
 
|-
| style="font-size: 105%; text-align: right;" | '''Region:'''
+
| style="font-size: 105%; text-align: right;"   | '''Region:'''
|{{{Region|?}}}
+
| style="padding-left: 10px; text-align: left;" | {{{Region|?}}}
 
|}
 
|}
</div><!--
+
</div>
 +
{{#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: -0.8em; font: bold 5em Times New Roman, Times, Georgie, serif; color: silver;">“</div>
 +
        <p style="font-size:1.3em">{{{Description}}}</p>
 +
    </div>
 +
}}<!--
  
 
--><noinclude>
 
--><noinclude>
Line 76: Line 76:
  
 
             {{MapInfoBox  
 
             {{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
             | Description=Squire, put a description here!
+
             | Description = Squire, put a description here!
             | MCores=1  
+
             | MCores = 1  
             | SCores=0  
+
             | SCores = 0  
             | GLanes=3  
+
             | GLanes = 3  
             | ALanes=2  
+
             | ALanes = 2  
             | DU=600
+
             | DU = 600
             | Region=Dragonfall Town
+
             | Region = Dragonfall Town
 
             }}
 
             }}
  
Line 90: Line 90:
 
---></code>
 
---></code>
 
</div>
 
</div>
|<div style="display: flex; justify-content: center;">
+
|<div style="display: flex; justify-content: center; flex-direction: row-reverse;">
 
     {{MapInfoBox  
 
     {{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
     | Description=Squire, put a description here!
+
     | Description = Squire, put a description here!
     | MCores=1  
+
     | MCores = 1  
     | SCores=0  
+
     | SCores = 0  
     | GLanes=3  
+
     | GLanes = 3  
     | ALanes=2  
+
     | ALanes = 2  
     | DU=600
+
     | DU = 600
     | Region=Dragonfall Town
+
     | Region = Dragonfall Town
 
     }}
 
     }}
 
</div>
 
</div>
Line 106: Line 106:
  
 
</noinclude>
 
</noinclude>
 +
__NOEDITSECTION__

Latest revision as of 16:38, 12 February 2023

Default Minimap.png

Map Name


Main Cores:  ?
Sub Cores:  ?
Ground Lanes:  ?
Air Lanes:  ?
Defense Units:  ?
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 In-game 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

Wiki Text Result
{{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 }}

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!