Changes

741 bytes added ,  00:27, 1 July 2022
documentation
Line 1: Line 1: −
<noinclude>
  −
This template is used to place map images on article pages. It automatically derives the number of Tabber tabs to used based on user input, up to 7 positions. Example usage: <pre><nowiki>{{LevelMap|[[File:MapPart1.png|center]]|[[File:MapPart2.png|center]]}}</nowiki></pre> would produce a Tabber array with two tabs. Images placed within this template should always have the "center" parameter.
  −
</noinclude>
   
{{HiddenToggle/Button|ID=LevelMap|Title=Click to reveal map|boxcolor={{{boxcolor|#5aa7e2}}}}}
 
{{HiddenToggle/Button|ID=LevelMap|Title=Click to reveal map|boxcolor={{{boxcolor|#5aa7e2}}}}}
 
{{HiddenToggle|ID=LevelMap|
 
{{HiddenToggle|ID=LevelMap|
Line 115: Line 112:  
}}
 
}}
 
<center>{{LevelMap/Caption}}</center>
 
<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>