Template:Spoiler: Difference between revisions
Padding |
No edit summary |
||
Line 1: | Line 1: | ||
<div class="custom-collapsible">[ <span class="custom-collapsible-link">{{#if:{{{2|}}}| | <div class="custom-collapsible">[ <span class="custom-collapsible-link">{{#if:{{{2|}}}| {{{2}}}|}}</span> ]</div> | ||
<div class="custom-collapsible-content"><div class="custom-collapsible-padded">{{{1}}}</div></div><noinclude> | <div class="custom-collapsible-content"><div class="custom-collapsible-padded">{{{1}}}</div></div><noinclude> | ||
A collapsible block with custom text for the toggle label. | A collapsible block with custom text for the toggle label. |
Revision as of 20:53, 21 November 2023
[ ]
{{{1}}}
A collapsible block with custom text for the toggle label.
For example:
{{Spoiler|The cake is a lie!}}
produces:
[ ]
The cake is a lie!
You can add a second argument if you want to customise the toggle label:
{{Spoiler||The cake is a lie!|massive spoiler}}
produces:
[ massive spoiler ]
The cake is a lie!