Template:Spoilers: Difference between revisions

Template page
No edit summary
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="background: rgba(123, 44, 191, 70%); color: #ffffff; border: 2px solid rgba(60, 9, 108, 1); border-radius: 100px; text-indent: 20px;color: black; text-align: center;">
{{Mbox
<p style="font-size: 25px; font-weight: bold;">Spoiler Warning</p>
|title=This {{{sectionOrPage|section or page}}} may contain spoilers for {{{whatFor|a series, game, or similar}}}.
<p>This page or section may contain spoilers for a game, or something similar. Only proceed if you're okay with that.</p>
|type=notice
</div>
|expanded=no}}<noinclude>
{{Documentation}}
<templatedata>
{
    "description": "Used to indicate spoilers in an article or section.",
    "params": {
        "sectionOrPage": {
            "label": "Section or Page",
            "description": "Whether or not the spoiler is for a section or a page.",
            "type": "string",
            "default": "section or page"
        },
        "whatFor": {
            "label": "What the spoiler is for",
            "description": "What kind of thing the spoiler is for.",
            "type": "string",
            "default": "a series, game, or similar"
        }
    }
}
</templatedata>
</noinclude>

Latest revision as of 19:58, 24 May 2022

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Spoilers/doc. Changes can be proposed in the talk page.

Used to indicate spoilers in an article or section.

Template parameters

ParameterDescriptionTypeStatus
Section or PagesectionOrPage

Whether or not the spoiler is for a section or a page.

Default
section or page
Stringoptional
What the spoiler is forwhatFor

What kind of thing the spoiler is for.

Default
a series, game, or similar
Stringoptional