Difference between revisions of "Template:HiddenToggle/Button"
From Drawn to Life Wiki
(Created page with "<div style="border-radius: 5px; box-shadow: 0 1px 3px 0 rgb(102, 102, 102); background: rgba(255, 255, 255, 0.7); border: 3px solid {{{boxcolor|#5aa7e2}}}; margin-bottom: 5px;...") |
(Documentation) |
||
| Line 24: | Line 24: | ||
align-items: center;" >{{{Title|{{{1|Click to toggle content}}}}}}</div> | align-items: center;" >{{{Title|{{{1|Click to toggle content}}}}}}</div> | ||
</div> | </div> | ||
| + | <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" | ||
| + | }, | ||
| + | "ID": { | ||
| + | "label": "Controller ID", | ||
| + | "description": "The ID of the HiddenToggle template. The ID can be any value, but the values of the paired templates MUST match verbatim.", | ||
| + | "type": "string", | ||
| + | "autovalue": "unset", | ||
| + | "required": true | ||
| + | }, | ||
| + | "Title": { | ||
| + | "label": "Button Title", | ||
| + | "description": "The title to display on the clickable button.", | ||
| + | "example": "|Title=Click to reveal map", | ||
| + | "type": "content", | ||
| + | "autovalue": "Click to toggle content", | ||
| + | "suggested": true | ||
| + | } | ||
| + | }, | ||
| + | "description": "This template acts as a user-controlled toggle for Template:HiddenToggle. These templates are intended to be used together, with this template serving as a method of toggling the state of content hidden with the aforementioned template.", | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
Revision as of 23:33, 30 June 2022
Click to toggle content
This template acts as a user-controlled toggle for Template:HiddenToggle. These templates are intended to be used together, with this template serving as a method of toggling the state of content hidden with the aforementioned template.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Databox color | boxcolor | When a valid RGB hex is input, the box will match the color
| Content | optional |
| Controller ID | ID | The ID of the HiddenToggle template. The ID can be any value, but the values of the paired templates MUST match verbatim.
| String | required |
| Button Title | Title | The title to display on the clickable button.
| Content | suggested |