Difference between revisions of "Template:Spoiler/doc"
Jump to navigation
Jump to search
(Corrected the category) |
m (Corrected the category) |
||
Line 16: | Line 16: | ||
<includeonly> | <includeonly> | ||
− | [[Category: | + | [[Category:Mbox and messagebox templates]] |
</includeonly> | </includeonly> |
Latest revision as of 20:55, 29 August 2019
40px | 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[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]