Difference between revisions of "Template:LevelMap"
(documentation) |
|||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{# | + | {{HiddenToggle/Button|ID=LevelMap|Title=Click to reveal map|boxcolor={{{boxcolor|#5aa7e2}}}}} |
| − | < | + | {{HiddenToggle|ID=LevelMap| |
| − | {{{1 | + | {{#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> | ||
| − | < | + | |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
Template was called, but no parameters were provided.
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Databox color | boxcolor | When a valid RGB hex is input, the box will match the color.
| Content | optional |
| Data Input | Input | 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.
| File | required |