PathfinderWiki
Log in

Difference between revisions of "Template:Spoiler/doc"

From PathfinderWiki
m (Note that Badges|spoiled is preferred)
m (-)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
'''{{tl|Spoiler}}''' is a {{tl|Notice}} box specialized for sections containing spoilers.
 +
 
== Usage ==
 
== Usage ==
To use the spoiler tag, enter the following at the top of an article:
 
  
<code><nowiki>{{Spoiler | [[ Link | Link Text (as needed)]] }}</nowiki></code>
+
: ''To add a [[Project:Spoilers|spoiler warning]] badge and optional banner on an article, use {{tlx|Badges|spoiled}} instead.''
 +
 
 +
To use the spoiler tag, enter the following at the top of a section:
 +
 
 +
<pre>
 +
{{Spoiler| [[ Link | Link Text (as needed)]] | section/article/image, etc. (defaults to article)}}
 +
</pre>
  
 
If a single adventure or book is spoiled by an article, list only that product, but include a link to a full series if a spoiler affects more than a single source.
 
If a single adventure or book is spoiled by an article, list only that product, but include a link to a full series if a spoiler affects more than a single source.
  
Deprecated by the use of {{tlx|Badges|spoiled}}.
+
== Example ==
 +
 
 +
<pre>
 +
=== How to join the Pathfinder Society ===
 +
 
 +
{{Spoiler|''[[The Confirmation]]''|section}}
 +
 
 +
...
 +
</pre>
 +
 
 +
; results in:
 +
 
 +
=== How to join the Pathfinder Society ===
 +
<!-- Expanded to avoid categorization -->
 +
{{Notice
 +
| image      = [[File:Spoiler.svg|x64px]]
 +
| headline  = <span style="color: Red; font-size: 1.25em;">SPOILER ALERT!</span>
 +
| text      = This section contains possible spoilers for the following products:<br>'''''[[The Confirmation]]'''''
 +
| categories =
 +
}}
 +
 
 +
...
  
 
== Categories ==
 
== Categories ==
 +
 
Adding this template to an article automatically places the article in [[:Category:Articles containing spoilers]].
 
Adding this template to an article automatically places the article in [[:Category:Articles containing spoilers]].
  
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 00:25, 20 December 2018

{{Spoiler}} is a {{Notice}} box specialized for sections containing spoilers.

Usage

To add a spoiler warning badge and optional banner on an article, use {{Badges|spoiled}} instead.

To use the spoiler tag, enter the following at the top of a section:

{{Spoiler| [[ Link | Link Text (as needed)]] | section/article/image, etc. (defaults to article)}}

If a single adventure or book is spoiled by an article, list only that product, but include a link to a full series if a spoiler affects more than a single source.

Example

=== How to join the Pathfinder Society ===

{{Spoiler|''[[The Confirmation]]''|section}}

...
results in

How to join the Pathfinder Society

Spoiler.svg

SPOILER ALERT!
This section contains possible spoilers for the following products:
The Confirmation

...

Categories

Adding this template to an article automatically places the article in Category:Articles containing spoilers.