Template:Spoiler

From PZwiki
Notebook.pngTemplate Documentation

Added to articles or sections that contain spoilers about the game story.

Usage

Parameters

Parameters are optional and can be used for further customizability.

text
Customizes the text to display beneath the title.
id
ID to be set if template is used multiple times on a page. Each use on a single page must have a unique value.

Examples

Basic usage
{{Spoiler}}
Pillow.png
Spoiler warning!
The following contains unhidden spoilers pertaining to the story of Project Zomboid. Proceed at your own risk.
With customized text
{{Spoiler|text=This section reveals the fate of a key character. Proceed at your own risk.}}
Pillow.png
Spoiler warning!
This section reveals the fate of a key character. Proceed at your own risk.
With a custom id, for multiple uses on a single page. This will allow the mboxes to be collapsed individually.
{{Spoiler|id=death}}
{{Spoiler|id=story}}
Pillow.png
Spoiler warning!
The following contains unhidden spoilers pertaining to the story of Project Zomboid. Proceed at your own risk.
Pillow.png
Spoiler warning!
The following contains unhidden spoilers pertaining to the story of Project Zomboid. Proceed at your own risk.

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| title = Spoiler warning!
| content = The following contains ''unhidden spoilers'' pertaining to the story of ''Project Zomboid''. Proceed at your own risk.
| #default = {{Error|translation}}
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.