Changes

Jump to: navigation, search

Template:MapInfoBox

466 bytes added, 22:36, 9 February 2023
Formatting improvements to the template and improving documentation
{{#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>}}<div style="float:right; border:1px solid; margin:5px; text-align:center; margin-bottom:35vh; padding: 5px;">[[<!------>{{#ifexist: {{{Minimap}}} | [[{{{Minimap}}}|250px]] | {{#ifexist: File:Minimap_{{{MapName}}}.png | [[File:Minimap_{{{MapName}}}.png|250px]] | [[File:Minimap_The_Gates_Of_Dragonfall.png|250px]] }} }}<!---->|250px]]<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:4px; text-align:right;45%"| Main Cores:<!--Sets the width for the 1st column-->| style="paddingwidth:4px; text-align:left;55%" | {{{MCores}}}<!--Sets the width for the 2nd column-->
|-
| style="paddingfont-size:4px105%; text-align:right;"| Sub '''Main Cores:'''| style="padding:4px; text-align:left;" | {{{SCoresMCores|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;"| Ground Lanes'''Sub Cores:'''| style="padding:4px; text-align:left;" | {{{GLanesSCores|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;"| Air '''Ground Lanes:'''| style="padding:4px; text-align:left;" | {{{ALanesGLanes|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;"| Defense Units'''Air Lanes:'''| style="padding:4px; text-align:left;" | {{{DUALanes|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right;"| Region'''Defense Units:'''|{{{DU|?}}}|-| style="paddingfont-size:4px105%; text-align:leftright;" | '''Region:'''| {{{Region|?}}}
|}
</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}}}</pnoinclude> </div> |}}
<noinclude>
===Parameters===
{| border="1" style="border-collapse:collapse;"
| MapName || Name of the map.
|-
| Description || Description In-game description of the map.
|-
| MCores || Total amount of Main Cores.
===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;"><!------><codestyle="display: table; white-space: pre-wrap;"><!--- ---><nowiki>  {{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 }}  </nowiki><!------></code> produces the following</div>|<div style="display: flex; justify-content: center;"> {{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
| 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
}}
</noinclude>
WikiDefender, bureaucrat, administrator
618
edits

Navigation menu