Difference between revisions of "Template:Spoiler collapsed/doc"

From Summertime Saga Wiki
Jump to: navigation, search
m
m (Parameters)
Line 4: Line 4:
  
 
It has two parameters:
 
It has two parameters:
* {{para|title}} : Sets the spoiler title, otherwise it defaults to “Hidden content”.
+
; title : Sets the spoiler title, otherwise it defaults to “Hidden content”.
* {{para|content}} : Sets the spoiler text, there is no default content, this can also be achieved with an unnamed parameter.
+
; content : Sets the spoiler text, there is no default content, this can also be achieved with an unnamed parameter.
  
 
== Examples ==
 
== Examples ==

Revision as of 18:52, 13 July 2020

The template Template:Tl is designed to hide spoiler content and require to click on the “Show spoiler” link in order to be displayed.

Parameters

It has two parameters:

title 
Sets the spoiler title, otherwise it defaults to “Hidden content”.
content 
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|title=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
{{{2}}}