Difference between revisions of "Template:LevelMap"

From Drawn to Life Wiki
(documentation)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|
+
{{HiddenToggle/Button|ID=LevelMap|Title=Click to reveal map|boxcolor={{{boxcolor|#5aa7e2}}}}}
<div id="LevelMap" style="overflow-x: scroll; box-shadow: #000 0px 10px 5px inset;">
+
{{HiddenToggle|ID=LevelMap|
{{{1|An image file was not provided.}}}
+
{{#switch: <!--
 +
-->{{#ifeq:{{{8|x}}}|{{{8|}}}| 8 | <!--
 +
-->{{#ifeq:{{{7|x}}}|{{{7|}}}| 7 | <!--
 +
-->{{#ifeq:{{{6|x}}}|{{{6|}}}| 6 | <!--
 +
-->{{#ifeq:{{{5|x}}}|{{{5|}}}| 5 | <!--
 +
-->{{#ifeq:{{{4|x}}}|{{{4|}}}| 4 | <!--
 +
-->{{#ifeq:{{{3|x}}}|{{{3|}}}| 3 | <!--
 +
-->{{#ifeq:{{{2|x}}}|{{{2|}}}| 2 | <!--
 +
-->{{#ifeq:{{{1|x}}}|{{{1|}}}| 1 | <!--
 +
-->0 }} }} }} }} }} }} }} }}
 +
|1=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{1}}}
 
</div>
 
</div>
<center><small><span style="font-style: italic; color: #c8ccd1;">A full map of this level, including markers for Raposa, creations, enemies, and more. Since this image is derived from developmental content, some of what is displayed may not be perfectly accurate to the level.</span></small></center>|}}
+
|2=<tabber>
 +
|-|Part 1=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{1}}}
 +
</div>
 +
|-|Part 2=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{2}}}
 +
</div>
 +
</tabber>
 +
|3=<tabber>
 +
|-|Part 1=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{1}}}
 +
</div>
 +
|-|Part 2=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{2}}}
 +
</div>
 +
|-|Part 3=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{3}}}
 +
</div>
 +
</tabber>
 +
|4=<tabber>
 +
|-|Part 1=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{1}}}
 +
</div>
 +
|-|Part 2=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{2}}}
 +
</div>
 +
|-|Part 3=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{3}}}
 +
</div>
 +
|-|Part 4=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{4}}}
 +
</div>
 +
</tabber>
 +
|5=<tabber>
 +
|-|Part 1=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{1}}}
 +
</div>
 +
|-|Part 2=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{2}}}
 +
</div>
 +
|-|Part 3=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{3}}}
 +
</div>
 +
|-|Part 4=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{4}}}
 +
</div>
 +
|-|Part 5=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{5}}}
 +
</div>
 +
</tabber>
 +
|6=<tabber>
 +
|-|Part 1=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{1}}}
 +
</div>
 +
|-|Part 2=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{2}}}
 +
</div>
 +
|-|Part 3=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{3}}}
 +
</div>
 +
|-|Part 4=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{4}}}
 +
</div>
 +
|-|Part 5=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{5}}}
 +
</div>
 +
|-|Part 6=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{6}}}
 +
</div>
 +
</tabber>
 +
|7=<tabber>
 +
|-|Part 1=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{1}}}
 +
</div>
 +
|-|Part 2=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{2}}}
 +
</div>
 +
|-|Part 3=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{3}}}
 +
</div>
 +
|-|Part 4=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{4}}}
 +
</div>
 +
|-|Part 5=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{5}}}
 +
</div>
 +
|-|Part 6=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{6}}}
 +
</div>
 +
|-|Part 7=<div class="TEMPLATE-LevelMap dragscroll">
 +
{{{7}}}
 +
</div>
 +
</tabber>
 +
|8=This template does not yet support values this high. Contact [[User:BakiDance]].
 +
|0=Template was called, but no parameters were provided.
 +
}}
 +
}}
 +
<center>{{LevelMap/Caption}}</center>
 +
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"boxcolor": {
 +
"label": "Databox color",
 +
"description": "When a valid RGB hex is input, the box will match the color.",
 +
"example": "|boxcolor=#ff8682",
 +
"type": "content",
 +
"autovalue": "#5aa7e2"
 +
},
 +
"Input": {
 +
"label": "Data Input",
 +
"description": "Content to be included within the rendered template. The template will automatically count the number of inputs and display the content appropriately. Typically, this data should be centered image files with nullified links (see example). Seperate new entries with the pipe symbol in block formatting. Up to 8 parameters are supported.",
 +
"example": "|[[File:DEVMAP_MTSnowy_1.png|center|link=]]",
 +
"type": "wiki-file-name",
 +
"required": true
 +
}
 +
},
 +
"description": "This template automatically structures tabber-based map displays based on input data provided. All content included within this template is automatically provided the \"dragscroll\" class, allowing the content (typically map images) to be scrolled via click-and-drag actions.",
 +
"paramOrder": [
 +
"boxcolor",
 +
"Input"
 +
],
 +
"format": "block"
 +
}
 +
</templatedata>
 +
</noinclude>

Latest revision as of 23:27, 30 June 2022

Click to reveal map

Template was called, but no parameters were provided.

A full map of this level, including markers for Raposa, creations, enemies, and more. You can pan this map by clicking and dragging. To view the full image, right click and open it within a new tab.

This template automatically structures tabber-based map displays based on input data provided. All content included within this template is automatically provided the "dragscroll" class, allowing the content (typically map images) to be scrolled via click-and-drag actions.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Databox colorboxcolor

When a valid RGB hex is input, the box will match the color.

Example
|boxcolor=#ff8682
Auto value
#5aa7e2
Contentoptional
Data InputInput

Content to be included within the rendered template. The template will automatically count the number of inputs and display the content appropriately. Typically, this data should be centered image files with nullified links (see example). Seperate new entries with the pipe symbol in block formatting. Up to 8 parameters are supported.

Example
|[[File:DEVMAP_MTSnowy_1.png|center|link=]]
Filerequired