Template:Spoiler: Difference between revisions
Appearance
Created page with "{{Box|title=Spoiler|content="This article contains spoilers for **{{{name}}}**. Proceed with caution."}} <noinclude> <templatedata> { "params": { "name": { "label": "Media Name", "description": "The name of the media the spoilers are for.", "example": "Danganronpa 1", "type": "string", "required": true } }, "description": "Warns users that the article contains spoilers. This should be positioned at the top of the article.", "format": "block" } </te..." |
No edit summary Tag: Manual revert |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Box|title=Spoiler|content="This article contains spoilers for | <includeonly>[[Category:Contains Spoilers]][[Category:Contains Spoilers for {{trim|{{{1|}}}}}]]{{Box| | ||
< | title=<big>Spoiler Alert!</big>| | ||
content=<div style="text-align: center;">This article contains spoilers for '''{{trim|{{{1|}}}}}'''. Proceed with caution.</div>| | |||
style=margin:auto; max-width: 50em| | |||
icon=JphDragonS.png| | |||
trailing-icon=JphDragonS.png| | |||
background-title-color=var(--background-color-destructive)| | |||
center=center| | |||
class=ambox | |||
}}</includeonly><noinclude> | |||
== Example == | |||
E.g: | |||
<nowiki>{{Spoiler|Mars Needs Senpais}}</nowiki> | |||
{{Spoiler|Mars Needs Senpais}} | |||
== Template Data == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
" | "1": { | ||
"label": "Media Name", | "label": "Media Name", | ||
"description": "The name of the media the spoilers are for.", | "description": "The name of the media the spoilers are for.", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
Line 13: | Line 26: | ||
}, | }, | ||
"description": "Warns users that the article contains spoilers. This should be positioned at the top of the article.", | "description": "Warns users that the article contains spoilers. This should be positioned at the top of the article.", | ||
"format": "block" | "format": "block", | ||
"paramOrder": [ | |||
"1" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 16:14, 11 February 2025
Example
E.g:
{{Spoiler|Mars Needs Senpais}}

Spoiler Alert!

This article contains spoilers for Mars Needs Senpais. Proceed with caution.
Template Data
Warns users that the article contains spoilers. This should be positioned at the top of the article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Media Name | 1 | The name of the media the spoilers are for. | String | required |