Template:SpoilerBox: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
(merging consecutive noinclude regions to eliminate extra whitespace in rendered page)
imported>Aggelakis (historical)
m (better category)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
{{SpoilerBox|This is a spoiler.}}
{{SpoilerBox|This is a spoiler.}}


To provide a custom title: <nowiki>{{SpoilerBox|title=Example revealed|This is a spoiler.}}</nowiki>
To provide a custom title: <nowiki>{{SpoilerBox|warning=Example revealed|This is a spoiler.}}</nowiki>


Result:
Result:


{{SpoilerBox|title=Example revealed|This is a spoiler.}}
{{SpoilerBox|warning=Example revealed|This is a spoiler.}}


Alternate way to specify the text, useful with title= or if the content contains an equal sign: <nowiki>{{SpoilerBox|text=This is a spoiler.}}</nowiki>
Alternate way to specify the text, useful with title= or if the content contains an equal sign: <nowiki>{{SpoilerBox|text=This is a spoiler.}}</nowiki>
Line 23: Line 23:
{{SpoilerBox|text=This is a spoiler.}}
{{SpoilerBox|text=This is a spoiler.}}


[[Category:Mission Templates]][[Category:Editors Tags Templates]]</noinclude>
[[Category:Spoiler Templates]]</noinclude>

Latest revision as of 07:52, 28 May 2011

This template may be used for adding spoilers to an article. It should be used sparingly! Almost every content-related thing on the wiki is a spoiler. People should realize they're going to discover content when they read articles. Try to limit the use of this template to only those revelations that are clearly outside the scope of what a person would reasonably expect to find when reading the article.

In most cases, {{Spoiler}} is more appropriate. If an article is already using {{Spoiler}}, please do not convert it to this template unless you're sure it's really justified. The warning provided by that template is more than adequate for most situations. If you use this SpoilerBox template and someone else converts it to use {{Spoiler}}, please do not convert it back. Leave a message on the talk page about it to open up a discussion if you like, but do not start an edit war over it. :)

Here are some usages of the template.

Basic use: {{SpoilerBox|This is a spoiler.}}

Result:

To provide a custom title: {{SpoilerBox|warning=Example revealed|This is a spoiler.}}

Result:

Alternate way to specify the text, useful with title= or if the content contains an equal sign: {{SpoilerBox|text=This is a spoiler.}}

Result: