Template:Spoiler/doc: Difference between revisions
Jump to navigation
Jump to search
Initial setup |
Corrected the category |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | |||
Creates a box spreading the width of the page warning the user of possible spoilers in the following text. | Creates a box spreading the width of the page warning the user of possible spoilers in the following text. | ||
Line 17: | Line 18: | ||
[[Category:Box notes]] | [[Category:Box notes]] | ||
</includeonly> | </includeonly> | ||
Revision as of 20:12, 29 August 2019
This is a documentation subpage for Template:Spoiler. It contains usage information, categories and other content that is not part of the original template page. |
Creates a box spreading the width of the page warning the user of possible spoilers in the following text.
Parameters
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
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