Template:Spoiler/start

From Noita Wiki
Jump to navigation Jump to search

This template is to be used with Template:Spoiler/end for modular spoiler containers.

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}}
Click to show content

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.
}}
Click to show content

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 Noita's own glyph font until readers elect to reveal it.

Template parameters

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