Template:Spoiler

Pokewiz讨论 | 贡献2020年9月26日 (六) 18:51的版本 (merge from offical wiki)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Hidden content

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pellentesque sapien eros.

This template has three parameters:
Header= Sets the header, otherwise it defaults to "Hidden content"
Text= Sets the text, there is no default content, this can also be achieved with an unnamed parameter
Width= Overrides the default width of 800px it should be entered as a number only.

An example of this template being called is {{Spoiler|Header=This is an example|Text=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.}}

This gives the following:

This is an example

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|Header=This is an example|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.}}

Which gives:

This is an example

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.