Difference between revisions of "Template:Spoiler"
From Twinsuniverse
J McKalling (Talk | contribs) m (added doc about combining spoiler with list) |
J McKalling (Talk | contribs) (added infobox) |
||
| Line 1: | Line 1: | ||
| − | <noinclude> | + | <noinclude>{{Infobox Template |
| + | |purpose=formatting | ||
| + | |singletag=no | ||
| + | |multiline=yes | ||
| + | |gamerelated=no | ||
| + | |suppressible= | ||
| + | |choice= | ||
| + | |cat1= | ||
| + | |var1= | ||
| + | }} | ||
| + | |||
This template mimics the spoiler on the [http://forum.magicball.net/ Magicball Network forums], for use in articles. | This template mimics the spoiler on the [http://forum.magicball.net/ Magicball Network forums], for use in articles. | ||
| Line 45: | Line 55: | ||
|} | |} | ||
| − | |||
</noinclude> | </noinclude> | ||
Latest revision as of 09:29, 4 June 2014
| Spoiler | |
|---|---|
| Purpose |
Formatting [list all] |
| Single tag |
No [list all] |
| Multi-line |
Yes [list all] |
| Protected |
No [list all] |
| Game related |
No [list all] |
| Categorization | |
| Categories |
none [list all] |
| Variables | |
| Names |
none [list all] |
| Subpages | |
This template mimics the spoiler on the Magicball Network forums, for use in articles.
Any content within the spoiler is hidden initially, but when the Expand-link is clicked, the spoiler opens and displays the content normally. This is useful for e.g. hiding information that is considered to highly spoil new visitors.
Parameters
- The text to include in the spoiler (no parameter name)
Syntax
{{spoiler|hidden text}}
Examples
To use a spoiler in an article, for example:
{{spoiler
|[[Twinsen]] can find his [[Ancestral Tunic|tunic]] in the [[Miss Bloop's private museum|museum]].
}}
| Spoiler: |
|---|
Tip: the spoiler is best combined with the {{list}} template, to show a bulleted list of spoiler sentences in one go.
{{spoiler|{{list
|Once upon a time.
|There was.
|A listed spoiler.
|Is that a pun?
}}}}
| Spoiler: |
|---|