The Age of Decadence Wiki
Advertisement


Template-info.png Documentation

This template allows you to hide text within spoiler tags.

Parameters

Parameter Usage
[1] Content after the first|. The content to collapse.

If more parameters are required, recommend using the named parameter "content" instead.

[2] Content after the second|. The title to display above the collapsed content.

If more parameters are required, recommend using the named parameter "title" instead.

title The title to display above the collapsed content.
content The content to collapse.
outerstyle Custom CSS styling for the container.
style Custom CSS styling for the collapsed part.
head If set, only make the head part.
tail If set, only make the tail part.

Examples

s/n Example Notes
1 {{Spoilers|This is a spoiler}} prints:

This is a spoiler


Parameter [1] is the spoiler content.
2 {{Spoilers|This is a spoiler text|This is the preview text}} prints:

This is the preview text

This is a spoiler text.


Parameter [2] is the preview text.
3 {{Spoilers|title=This is the preview text|content=This is a spoiler text}} prints:

This is the preview text

This is a spoiler text


Sequence does not matter if all parameters are defined
4 {{Spoilers|outerstyle=width:250px; color:yellow|style=text-align:right; color:cyan|title=This is the preview text with outerstyle|content=This is a spoiler text with style}} prints:

This is the preview text with outerstyle

This is a spoiler text with style


Demo the style parameters.
5 {{Spoilers|title=Below hides a table|head=1}} Lorem ipsum {| class="wikitable" !Header |- |Cell |} {{Spoilers|tail=1}} prints:

Below hides a table


Lorem ipsum

Header
Cell


Demo the parameters: head; tail. This is for working with tables.

Acknowledgements

Made with:

Advertisement