Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Spoiler: Difference between revisions

Template page
Wiki skeleton
 
Spoilers in collapsible boxes
 
Line 1: Line 1:
<div class="calima-spoiler">{{#switch:{{SUBPAGENAME}}|es='''Spoilers''' de|ca='''Spòilers''' de|#default='''Spoilers''' for}} ''{{{1}}}''.</div><noinclude>
<includeonly><div class="calima-spoiler mw-collapsible mw-collapsed" data-expandtext="{{#switch:{{SUBPAGENAME}}|es=Mostrar|ca=Mostra|#default=Show}}" data-collapsetext="{{#switch:{{SUBPAGENAME}}|es=Ocultar|ca=Amaga|#default=Hide}}"><div class="calima-spoiler__title">{{#switch:{{SUBPAGENAME}}|es='''Spoilers''' de|ca='''Spòilers''' de|#default='''Spoilers''' for}} ''{{{1}}}''</div><div class="mw-collapsible-content"></includeonly><noinclude>
Put it right under a heading whose section reveals the plot of a work: <code><nowiki>{{Spoiler|Descent}}</nowiki></code>.
Put it right under a heading whose section reveals the plot of a work, <code><nowiki>{{Spoiler|Descent}}</nowiki></code>, and close it with <code><nowiki>{{Spoiler end}}</nowiki></code> where the spoiler ends. The text in between stays hidden until the reader opens it.
</noinclude>
</noinclude>

Latest revision as of 12:57, 30 October 2026

Put it right under a heading whose section reveals the plot of a work, {{Spoiler|Descent}}, and close it with {{Spoiler end}} where the spoiler ends. The text in between stays hidden until the reader opens it.