Changes

Jump to: navigation, search

Template:MapInfoBox

791 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:{{{iconMinimap}}} |File:Minimap_{{[[{name|{{PAGENAME}}}}}.jpgMinimap}}}|250px]] |{{{icon|#ifexist: File:Minimap_{{{nameMapName}}}.png |[[File:Minimap_{{PAGENAME}}{MapName}}}.jpg}}}png|250px]] |[[File:Minimap_defaultDefault_Minimap.jpg}}png|200px250px]] }}}}<h3 p style="text-align:center; margin:4px;font-size: 1.25em"><b>{{{nameMapName|{{PAGENAME}}Map Name}}}</h3b></p><hr>
{| cellpadding="2" style="border-collapse:collapse;" width="100%"
|-
| style="paddingwidth:4px; text45%" | <!--Sets the width for the 1st column-align:right; border-right:3px solid;"| Main Cores>| style="padding:4px; text-alignwidth:left;55%" | {{{MCores}}}<!--Sets the width for the 2nd column-->
|-
| style="paddingfont-size:4px105%; text-align:right; border-right:3px solid;" | Sub '''Main Cores:'''| style="padding-left:4px10px; text-align:left;" | {{{SCoresMCores|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right; border-right:3px solid;" | Ground Lanes'''Sub Cores:'''| style="padding-left:4px10px; text-align:left;" | {{{GLanesSCores|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right; border-right:3px solid;" | Air '''Ground Lanes:'''| style="padding-left:4px10px; text-align:left;" | {{{ALanesGLanes|?}}}
|-
| style="paddingfont-size:4px105%; text-align:right; border-right:3px solid;" | Mana Chests'''Air Lanes:'''| style="padding-left:4px10px; text-align:left;" | {{{MChestsALanes|?}}}
|-
| style="font-size: 105%; text-align: right;" | '''Defense Units:'''| style="padding-left:4px10px; text-align:rightleft;" | {{{DU|?}}}|-| style="font-size: 105%; bordertext-align: right:3px solid;" | Defense Units'''Region:'''| style="padding-left:4px10px; text-align:left;" | {{{DURegion|?}}}
|}
</div>
{{#if:{{{descriptionDescription|}}} |<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>{{{description}}} <p style="text-align: right; font-size: 01.9em; font-style:italic; margin-top:0;3em">— Tavern Keeper{{{Description}}}</p> </div>|}}<!-- --><noinclude> 
===Parameters===
{| border="1" style="border-collapse:collapse;"
|-
! Parameter !! Description
|-
| 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.
|-
| Description || In-game description of the map.
|-
| MCores || Total amount of Main Cores.
|-
| ALanes || Total amount of Air Lanes.
|-
| MChests|| Total amount of Chests on the map.
|-
| DU || Defense Unit Limit.
|-
| description Region || ''(optional)'' Description of The region the map.|-| name || ''(optional)'' Name of the map. Defaults to <nowiki>{{PAGENAME}}</nowiki>.|-| minimap || ''(optional)'' MiniMap to display. Defaults to <nowiki>File:Minimap_{{{name}}}.jpg</nowiki>. If the file doesn't exist, it falls back belongs to File:Minimap_default.jpg.
|}
===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 | nameMapName =The Gates of DragonFall Dragonfall | Description = Squire, put a description here! | MCores=1 | SCores=1 0 | GLanes= 3 | ALanes =2 | DU = 600 | Region = Dragonfall Town }}  </nowiki><!------></code></div>| ALanes<div style=3 "display: flex; justify-content: center; flex-direction: row-reverse;"> {{MapInfoBox | MChestsMinimap =1 File:Minimap The Gates of Dragonfall.png | DUMapName =50 The Gates of Dragonfall | descriptionDescription =Squire, put a description here.! | MCores = 1 | SCores = 0 | GLanes = 3 | ALanes = 2 | DU = 600 | Region = Dragonfall Town }}</nowikidiv> produces the following:|}
{{MapInfoBox | name=The Gates of DragonFall | MCores=1 | SCores=1 | GLanes=2 | ALanes=3 | MChests=1 | DU=50 | minimap=The_Gates_Of_DragonFall | description=Squire, put a description here.}}
</noinclude>
__NOEDITSECTION__
WikiDefender, bureaucrat, administrator
617
edits

Navigation menu