Template:Spoiler: Difference between revisions
Template page
More actions
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}}}'' | <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 | 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.