Template:Spoiler header: Difference between revisions

From fattwiki
No edit summary
Tag: 2017 source edit
(Changed spoiler header formatting to use tables to enable better alignment of the warning image)
Tag: 2017 source edit
Line 1: Line 1:
<div name="Spoiler header" id="spoilerheader" style="background-color: #FEF1D1; margin: 0 auto 10px auto; padding: 0 10px; border-radius:5px; border: 2px solid #F9CD5E;">
<table style="background-color: #FEF1D1; width: 100%; margin: 0; padding: 5px 0 5px 0; border-radius:5px; border: 2px solid #F9CD5E;">
[[File:warning.png|36px]]'''Warning! This article contains major spoilers for {{{1}}}.'''<p>Tread carefully.  
<tr>
 
<td style="text-align:center">[[File:warning.png|40px|middle]]</td>
</div><includeonly></includeonly><noinclude>
<td>'''Warning! This article contains major spoilers for {{{1}}}.'''<br>Tread carefully.</td>
</tr>
</table><includeonly></includeonly><noinclude>
{{documentation}}[[Category:Templates]]</noinclude>
{{documentation}}[[Category:Templates]]</noinclude>

Revision as of 22:13, 15 July 2022

Warning.png Warning! This article contains major spoilers for {{{1}}}.
Tread carefully.

Empty template

{{ Spoiler header
| section =
| spoiling =
| theme = 
}}


Usage example

Warning.png Warning! This article contains major spoilers for {{{1}}}.
Tread carefully.
{{Spoiler header
| section = entire article
| spoiling = the Marielda finale
| theme = marielda
}}

This template is used to warn for spoilers (but doesn't actually hide any text). It can be inserted at the top of an article or somewhere in the middle.

Template parameters

ParameterDescriptionTypeStatus
Sectionsection

Indicate what section(s) of the page this spoiler warning applies to and it'll be inserted into the sentence. Defaults to "article".

Default
article
Example
relationships section
Unknownsuggested
Spoilers forspoiling

What season/arc/episode this is a spoiler for.

Example
the COUNTER/Weight finale
Stringrequired
Theme (season)theme

The season color theme you want to use. This automatically applies the season's cover art and wiki color. See [[Getting Started#Colors]] for a list of options.

Default
"Defaults to placeholder FatT logo and default color of the wiki."
Example
aih
Stringsuggested
11

Use the "spoiling"/"spoilers for" parameter instead.

Stringdeprecated