Template:Spoilers/doc
Puts small amounts of text into a clickable-to-reveal spoiler. Takes two parameters, text
(what will be revealed on click) and spoilertext
(a label; the latter is optional. You can also simply use them as the first and second parameter (unless the text has a =
, for technical reasons), as shown:
{{Spoilers|example}}
yields
{{Spoilers|text=example}}
yields Click to revealexample
{{Spoilers|example|label}}
yields
{{Spoilers|text=example|spoilertext=label}}
yields Click to revealexample
{{Spoilers|2+2=4}}
yields — doesn't work!
{{Spoilers|text=2+2=4}}
yields Click to reveal2+2=4 — works.
See also
- Wiki:Style Guide#Spoilers, which also shows an alternative way to spoiler large amounts of text