Difference between revisions of "Template:Spoiler"

From UFOpaedia
Jump to navigation Jump to search
(Created page with "<details> <summary>Details</summary> Something small enough to escape casual notice. </details>")
 
 
Line 1: Line 1:
<details>
+
{{#switch: {{{1}}}
    <summary>Details</summary>
+
| end = <div class="spoiler">'''Spoilers end here.'''</div>
    Something small enough to escape casual notice.
+
| switch = <span class="mw-collapsible mw-collapsed" data-expandtext="Reveal Spoiler" data-collapsetext="Hide Spoiler"><span class="spoiler">'''<span style="color: #f57900">WARNING:</span>&nbsp;The following may contain spoilers about {{#if: {{{3|}}} |{{{2|the game}}}|the game}}.'''</span><div class="mw-collapsible-content">{{{3|{{{2}}}}}}</div></span>
</details>
+
| #default = <div class="spoiler">'''<span style="color: #f57900">SPOILER</span>&nbsp; more info {{{1|the game}}}.'''</div>}}<br /><noinclude>
 +
{{documentation}}</noinclude>

Latest revision as of 17:57, 15 July 2020

SPOILER  more info the game.


[edit · purge]
Template documentation(for the template shown above, sometimes hidden or invisible)
== Collapsible spoiler==

Should the spoiling information need to be hidden.

{{Spoiler|switch|This text is a spoiler!}} gives...
WARNING: The following may contain spoilers about the game.
This text is a spoiler!
File:Jorge.png
This guy is also a spoiler!

Spoiler end

This should be used when the section of the page with a spoiler ends.

{{Spoiler|end}} gives...
Spoilers end here.

Documentation transcluded from Template:Spoiler/doc.