Changes

Jump to: navigation, search

Template:MapInfoBox

1,216 bytes added, 20:38, 12 February 2023
Small formatting change to the example
<div style="float:right; border:1px solid; margin:5px; text-align:center; padding: 5px;">[[{{#ifexist: {{{Minimap}}} |[[{{{Minimap}}}|250px]] |{{#ifexist:File:Minimap_{{{MapName}}}.png |[[File:Minimap_{{{MapName}}}.png|250px]] |[[File:Minimap_defaultDefault_Minimap.jpgpng|250px]] }}}}|200px]]<p style="text-align:center; margin:4px; font-size: 1.25em"><b>{{{MapName|Map Name}}}</b></p>
<hr>
{| cellpadding="2" style="border-collapse:collapse;" width="100%"
|-
| style="paddingwidth:45%" | <!--Sets the width for the 1st column-->| style="width:55%" | <!--Sets the width for the 2nd column-->|-| style="font-size:4px105%; text-align:right;" | '''Main Cores:'''| style="padding-left:4px10px; text-align:left;" | {{{MCores|?}}}|-| style="font-size: 105%; text-align: right;" | '''Sub Cores:'''| style="padding-left: 10px; text-align: left;" | {{{SCores|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;" | Sub Cores'''Ground Lanes:'''| style="padding-left:4px10px; text-align:left;" | {{{SCoresGLanes|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;" | Ground '''Air Lanes:'''| style="padding-left:4px10px; text-align:left;" | {{{GLanesALanes|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;" | Air Lanes'''Defense Units:'''| style="padding-left:4px10px; text-align:left;" | {{{ALanesDU|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;" | Defense Units'''Region:'''| style="padding-left:4px10px; text-align:left;" | {{{DURegion|?}}}
|}
</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: -{{{icon-size|0.8em}}}; font: bold 5em Times New Roman, Times, Georgie, serif; color: silver;">“</div> <p style="font-size:1.3em">{{{Description}}}</p> </div>|}}<!-- --><noinclude> 
===Parameters===
{| border="1" style="border-collapse:collapse;"
! 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.
|-
| MapName || Name of the map.
|-
| Description || Description In-game description of the map.
|-
| MCores || Total amount of Main Cores.
|-
| DU || Defense Unit Limit.
|-
| Region || The region the map belongs to.
|}
===Example===
{| style="width:80%;"! style="font-size:150%; width: 50%;" | Wiki Text! style="font-size:150%; width: 50%;" | Result|-|<div style="display: flex; justify-content: center;"><!------><code style="display: table; white-space: pre-wrap;"><!--- ---><nowiki>  {{MapInfoBox | Minimap = File:Minimap The Gates of Dragonfall.png | MapName=The Gates of DragonFall Dragonfall | Description=Squire, put a description here! | MCores=1 | SCores=0 | GLanes=3 | ALanes=2 | DU=800 600 | Region = Dragonfall Town }}  </nowiki> produces the following<!------></code></div>|<div style="display: flex; justify-content: center; flex-direction: row-reverse;"> {{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 }}</div>|}
{{MapInfoBox
| MapName=The Gates of DragonFall
| Description=Squire, put a description here!
| MCores=1
| SCores=0
| GLanes=3
| ALanes=2
| DU=800
}}
</noinclude>
__NOEDITSECTION__
WikiDefender, bureaucrat, administrator
617
edits

Navigation menu