Template:Spoilers: Difference between revisions

Template page
(testing something)
 
mNo edit summary
Tag: 2017 source edit
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="new-exp" style="background: rgba(123, 44, 191, 69%);
{{Mbox
    color: #ffffff;
|title=This {{{sectionOrPage|section or page}}} may contain spoilers for {{{whatFor|a series, game, or similar}}}.
    border: 2px solid rgba(60, 9, 108, 1);
|type=notice
    -moz-border-radius: 7.5px;
|expanded=no}}<noinclude>
     border-radius: 100px;
{{Documentation}}
}"><center><h1>Spoiler Warning</h1></center>
<templatedata>
</div><br />
{
    "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