Template:Spoiler header: Difference between revisions

From fattwiki
mNo edit summary
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table  
<table  
class="border-color-{{#if:{{{theme|}}}|{{{theme}}}|primary}} bgcolor-{{#if:{{{theme|}}}|{{{theme}}}2|background}}"
class="spoiler-header border-color-{{#if:{{{theme|}}}|{{{theme}}}|primary}} bgcolor-{{#if:{{{theme|}}}|{{{theme}}}2|background}}"
style="margin: auto; padding: .5em 0 .5em 0; border-radius:5px; border-width: 2px; border-style: solid;">
style="margin: auto; border-radius:5px; border-width: 2px; border-style: solid;">
<tr>
<tr>
<td style="text-align:center; padding: 1em">[[File:warning.png|40px|middle]]</td>
<td style="text-align:center; padding: 1em">[[File:warning.png|40px|middle]]</td>
<td style="padding: 1em"><span style="font-size:110%">'''Spoiler warning!'''</span><br>This {{{section|article}}} contains major spoilers for {{#if:{{{1|}}}|{{{1}}}|{{#if:{{{spoiling|}}}|{{{spoiling}}}|[name of arc/episode/etc]}}}}. Tread carefully!</td>
<td style="padding: 1em"><span style="font-size:110%">'''Spoiler warning!'''</span><br>This {{{section|article}}} contains major spoilers for {{#if:{{{1|}}}|{{{1}}}|{{#if:{{{spoiling|}}}|{{{spoiling}}}|[name of arc/episode/etc]}}}}. Tread carefully!</td>
</tr>
</tr>
</table>
</table><templatestyles src="Spoiler header/style.css"></templatestyles>
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}
[[Category:Templates]]
[[Category:Spoiler templates]][[Category:Header templates]]
[[Category:Spoiler templates]]
</noinclude>
</noinclude>

Latest revision as of 23:53, 29 March 2024

Warning.png Spoiler warning!
This article contains major spoilers for [name of arc/episode/etc]. Tread carefully!

Empty template[edit source]

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


Usage example[edit source]

Warning.png Spoiler warning!
This entire article contains major spoilers for the Marielda finale. 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