Template:Spoiler

From Aground Wiki
Jump to navigation Jump to search
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Spoiler/doc to edit this documentation. (How does this work?)

This template was "borrowed" from the Noita wiki.

Usage

Default warning text:

This content includes possible spoilers or secrets. Tread carefully.
{{spoiler|inline text here}}

{{spoiler/start}} <!-- optionally provide "| warning = warning text here" similar to the below -->
Spoiler content here.
{{spoiler/end}}

{{spoiler
| warning = // Optional
| content =
}}

Examples

Inline spoiler
This is an {{spoiler|inline spoiler}} in a sentence.

This is an SPOILER: inline spoiler in a sentence.

Default warning
{{spoiler/start}}
foo
{{spoiler/end}}

This content includes possible spoilers or secrets. Tread carefully.

foo


Custom warning
{{spoiler/start  | warning = This is custom warning text. }}
This is spoilered content.
* Block-level content like lists and other formatted content is supported.
{{spoiler/end}}

<!-- OR -->

{{spoiler
| warning = This is custom warning text.
| content = 
This is spoilered content.
* Block-level content like lists and other formatted content is supported.
}}

This is custom warning text.

This is spoilered content.

  • Block-level content like lists and other formatted content is supported.


Template data

A spoiler block that can contain other block-level elements and display a customisable spoiler warning. Content is obscured using the Drachenklaue font until readers click to reveal it.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
warningwarning

The text to show as a spoiler warning. Cannot be used with an inline spoiler.

Default
This content includes possible spoilers or secrets. Tread carefully.
Example
This content includes possible spoilers or secrets. Tread carefully.
Auto value
This content includes possible spoilers or secrets. Tread carefully.
Stringsuggested