Template:SpoilerBox
The {{SpoilerBox}}
template is used to hide spoilers.
Usage
Parameters
1
- Content to be hidden.
subtitle
- Customizable subtitle.
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:
{{SpoilerBox|This text will be hidden.}}
This text will be hidden.
A custom subtitle
can be set.
{{SpoilerBox|subtitle=This section reveals the fate of a key character.|This text will be hidden.}}
This text will be hidden.
A unique id
should be set if there are multiple uses of the template on a single page.
{{SpoilerBox|id=death|This text will be hidden.}} {{SpoilerBox|id=story|This text will be hidden.}}
This text will be hidden.
This text will be hidden.
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!
| subtitle = This section contains spoilers pertaining to the story of ''Project Zomboid''.
| #default = [[Category:Incorrect template usage]]
}}
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.