Template:Spoilers: Difference between revisions

Template page
No edit summary
Tag: 2017 source edit
No edit summary
Line 1: Line 1:
{{Mbox
{{Mbox
|title=This page or section may contain spoilers for {{{series|}}}.  
|title=This {{{sectionorpage|section or page}}} may contain spoilers for {{{whatFor|a series, game, or similar}}}.  
|type=notice
|type=notice
|expanded=no}}
|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>

Revision as of 19:07, 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