Difference between revisions of "Template:Spoiler"
Jump to navigation
Jump to search
(Redesign for WikiMessageBox Template) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{WikiMessageBox |
− | {{WikiMessageBox | ||
|image=helialprofile.png | |image=helialprofile.png | ||
|quote=This is classified information! | |quote=This is classified information! | ||
− | |text=This article contains spoilers. You have been warned. {{#if:{{{target|}}}|Click [[#{{{target|}}}|here]] to skip this part.|}} | + | |text=This article contains '''unmarked spoilers'''. You have been warned. {{#if:{{{target|}}}|Click [[#{{{target|}}}|here]] to skip this part.|}} |
− | }} | + | }}</includeonly><noinclude> |
− | </includeonly> | + | {{Documentation}} |
− | |||
− | <noinclude> | ||
− | {{ | ||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 21:35, 25 January 2024
Creates a box spreading the width of the page warning the user of possible spoilers in the following text.
Parameters[edit]
Parameter name | Required? | Default value | Description |
---|---|---|---|
target |
No | (n/a) | Optional HTML anchor which will be linked for the user to skip a text passage |
Usage[edit]
See the template's testcases:
No parameter | |
---|---|
Wiki code | {{Spoiler}} |
Main version |
|
Sandbox version | Template:Spoiler/sandbox |
Parameter: target | |
---|---|
Wiki code | {{Spoiler|target=name_of_anchor}} |
Main version |
|
Sandbox version | Template:Spoiler/sandbox |
See also[edit]
The above documentation is transcluded from Template:Spoiler/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |