Difference between revisions of "Template:HiddenToggle/Button"

From Drawn to Life Wiki
(noinclude)
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>
 +
<noinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 54: Line 55:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
</noinclude>

Revision as of 23:43, 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. This template does nothing on its own.

Template parameters

This template prefers inline 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
Controller IDID

The ID of the HiddenToggle template. The ID can be any value, but the values of the paired templates MUST match verbatim.

Auto value
unset
Stringrequired
Button TitleTitle

The title to display on the clickable button.

Example
|Title=Click to reveal map
Auto value
Click to toggle content
Contentsuggested