Template:Spoiler: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
No edit summary
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Ambox|type=header
<onlyinclude>{{Ambox|{{{1|}}}
|color=red
| type = notice
|image=[[File:Spoiler.png]]
| image = [[File:Spoiler.png|40x40px|link=|alt=]]
|header=Spoiler Warning
| text = '''Spoiler Alert!''' This {{{1|article}}} describes a subject that is sensitive to plot development.
|{{{1|This article describes a subject that is sensitive to plot development.}}}
}}<includeonly>{{Cat|Articles That Contain Spoilers|{{{cat|{{PAGENAME}}}}}}}</includeonly></onlyinclude>
}}<includeonly>{{Cat|Articles That Contain Spoilers}}</includeonly><noinclude>
 
==Purpose==
==Purpose==
This [[Template:Ambox|Ambox]] is used to mark off content that contains details of development of a game's story. The header version is for when the whole article should be treated as a spoiler, such as one about a final boss. For sections, [[Template:Spoiler/Begin]] flags where sensitive content begins, and it should '''always''' be paired with [[Template:Spoiler/End]] to mark where the warning no longer applies.
This {{Temlink|Ambox}} is used to mark off content that contains details of development of a game's story. Its basic usage is for when the whole article should be treated as a spoiler, such as one about a final boss. The smaller version can be used to mark off sections.
 
Articles with the spoiler tag are sorted into [[:Category:Articles That Contain Spoilers]].


==Usage==
==Usage==
To use this template with the default text, simply type '''<nowiki>{{Spoiler}}</nowiki>''' for the header, or '''<nowiki>{{Spoiler/Begin}}</nowiki>''' to mark the beginning of a section.  To define custom detail text, add the text after a pipe, like so:
To apply it to the entire article, place {{Usage}} at the top of the article, above {{Temlink|Infobox|Infoboxes}} but below {{Temlink|Hatnote|Hatnotes}}.
<pre>{{Spoiler|This article describes the final boss of ''[[The Legend of Zelda: Skyward Sword]]''.}}
 
-or-
To designate a specific section as containing spoilers, use {{Usage|section}}.
{{Spoiler/Begin|This section contains plot details for ''[[The Legend of Zelda: Skyward Sword]]''.}}</pre>
 


When using the inline version, be sure to place '''<nowiki>{{Spoiler/End}}</nowiki>''' at the end of the affected section.
{{Cat|Ambox Templates}}
{{Cat|Ambox Templates}}</noinclude>

Latest revision as of 19:48, November 17, 2020

Spoiler Alert! This article describes a subject that is sensitive to plot development.

Purpose

This {{Ambox}} is used to mark off content that contains details of development of a game's story. Its basic usage is for when the whole article should be treated as a spoiler, such as one about a final boss. The smaller version can be used to mark off sections.

Articles with the spoiler tag are sorted into Category:Articles That Contain Spoilers.

Usage

To apply it to the entire article, place {{Spoiler}} at the top of the article, above {{Infoboxes}} but below {{Hatnotes}}.

To designate a specific section as containing spoilers, use {{Spoiler| section }}.