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.
m (changing category addition to an includeonly in Ambox)
mNo edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Ambox|type=inline
<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.
|{{#if: {{{1|}}}|{{{1|}}}|This section contains details regarding plot development.}}
}}<includeonly>{{Cat|Articles That Contain Spoilers|{{{cat|{{PAGENAME}}}}}}}</includeonly></onlyinclude>
}}<includeonly>{{Cat|Articles That Contain Spoilers}}</includeonly><noinclude>
 
==Purpose==
==Purpose==
This inline [[Template:Ambox|Ambox]] is used to mark off sections of an article that contain details of development of a game's story. 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>'''. 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 section contains plot details for ''[[The Legend of Zelda: Skyward Sword]]''.}}</pre>
 
To designate a specific section as containing spoilers, use {{Usage|section}}.
 


Be sure to place '''<nowiki>{{Spoiler/End}}</nowiki>''' at the end of the affected section.</noinclude>
{{Cat|Ambox Templates}}

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 }}.