Template:Spoiler

From Victoria 2 Wiki
Jump to navigation Jump to search

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.