Template:Spoiler: Difference between revisions

From The Talos Principle Wiki
Created page with "<div class="mw-collapsible mw-collapsed" data-collapsetext="Hide {{{2|}}}" data-expandtext="Show {{{2|}}}"> <div style="border: 1px solid black;padding: 0.5em;background: whitesmoke">{{{1}}}</div></div><noinclude> A collapsible block with custom text for the toggle label. For example: <pre>{{Spoiler|The cake is a lie!}}</pre> produces: {{Spoiler|The cake is a lie!}} You can add a second argument if you want to customise the toggle label: <pre>{{Spoiler||The cake is a l..."
 
No edit summary
Line 1: Line 1:
<div class="mw-collapsible mw-collapsed" data-collapsetext="Hide {{{2|}}}" data-expandtext="Show {{{2|}}}">
<div class="mw-collapsible mw-collapsed" data-collapsetext="Hide {{{2|}}}" data-expandtext="Show {{{2|}}}">
<div style="border: 1px solid black;padding: 0.5em;background: whitesmoke">{{{1}}}</div></div><noinclude>
<div style="border: 1px solid black;padding: 0.5em;background: whitesmoke; overflow: hidden">{{{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 14:09, 18 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:

The cake is a lie!