Difference between revisions of "Template:Spoiler collapsed/doc"
From Summertime Saga Wiki
m |
m (→Usage) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | The template {{ | + | The template {{tlg|spoiler collapsed}} is designed to hide spoiler content and require to click on the “Show spoiler” link in order to be displayed. |
+ | |||
+ | == Usage == | ||
+ | |||
+ | : {{tlg|code=yes|nolink=yes|spoiler collapsed|title{{=}}{{var|spoiler title}}|content{{=}}{{var|spoiler content}}}} | ||
== Parameters == | == Parameters == | ||
− | + | ; {{para|title}} or {{para|1}} : Sets the spoiler title, otherwise it defaults to “Hidden content”. | |
− | + | ; {{para|content}} or {{para|2}} : Sets the spoiler text, there is no default content, this can also be achieved with an unnamed parameter. | |
− | |||
== Examples == | == Examples == | ||
− | < | + | <pre>{{spoiler collapsed|title=Lorem Ipsum|content=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros. Suspendisse potenti. Vivamus ut nunc sed nulla scelerisque varius. Aenean porta laoreet pretium. Fusce dapibus fringilla interdum.}}</pre> |
Produces: | Produces: | ||
Line 17: | Line 20: | ||
The exact same occurs if it is called like this, with an unnamed parameter for the text: | The exact same occurs if it is called like this, with an unnamed parameter for the text: | ||
− | < | + | <pre>{{spoiler collapsed|Lorem Ipsum|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros. Suspendisse potenti. Vivamus ut nunc sed nulla scelerisque varius. Aenean porta laoreet pretium. Fusce dapibus fringilla interdum.}}</pre> |
Produces: | Produces: | ||
− | {{spoiler collapsed| | + | {{spoiler collapsed|Lorem Ipsum|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros. Suspendisse potenti. Vivamus ut nunc sed nulla scelerisque varius. Aenean porta laoreet pretium. Fusce dapibus fringilla interdum.}} |
[[Category:Templates]][[Category:Templates documentation]] | [[Category:Templates]][[Category:Templates documentation]] |
Latest revision as of 20:55, 22 July 2020
The template {{spoiler collapsed}} is designed to hide spoiler content and require to click on the “Show spoiler” link in order to be displayed.
Usage
{{spoiler collapsed|title=spoiler title|content=spoiler content}}
Parameters
|title=
or|1=
- Sets the spoiler title, otherwise it defaults to “Hidden content”.
|content=
or|2=
- Sets the spoiler text, there is no default content, this can also be achieved with an unnamed parameter.
Examples
{{spoiler collapsed|title=Lorem Ipsum|content=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros. Suspendisse potenti. Vivamus ut nunc sed nulla scelerisque varius. Aenean porta laoreet pretium. Fusce dapibus fringilla interdum.}}
Produces:
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros. Suspendisse potenti. Vivamus ut nunc sed nulla scelerisque varius. Aenean porta laoreet pretium. Fusce dapibus fringilla interdum.
The exact same occurs if it is called like this, with an unnamed parameter for the text:
{{spoiler collapsed|Lorem Ipsum|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros. Suspendisse potenti. Vivamus ut nunc sed nulla scelerisque varius. Aenean porta laoreet pretium. Fusce dapibus fringilla interdum.}}
Produces:
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros. Suspendisse potenti. Vivamus ut nunc sed nulla scelerisque varius. Aenean porta laoreet pretium. Fusce dapibus fringilla interdum.