Tropedia

  • Before making a single edit, Tropedia EXPECTS our site policy and manual of style to be followed. Failure to do so may result in deletion of contributions and blocks of users who refuse to learn to do so. Our policies can be reviewed here.
  • All images MUST now have proper attribution, those who neglect to assign at least the "fair use" licensing to an image may have it deleted. All new pages should use the preloadable templates feature on the edit page to add the appropriate basic page markup. Pages that don't do this will be subject to deletion, with or without explanation.
  • All new trope pages will be made with the "Trope Workshop" found on the "Troper Tools" menu and worked on until they have at least three examples. The Trope workshop specific templates can then be removed and it will be regarded as a regular trope page after being moved to the Main namespace. THIS SHOULD BE WORKING NOW, REPORT ANY ISSUES TO Janna2000, SelfCloak or RRabbit42. DON'T MAKE PAGES MANUALLY UNLESS A TEMPLATE IS BROKEN, AND REPORT IT THAT IS THE CASE. PAGES WILL BE DELETED OTHERWISE IF THEY ARE MISSING BASIC MARKUP.

READ MORE

Tropedia
Advertisement

{{{1}}}

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Syntax

Type:

 {{spoiler|text}}  to get text.

Type:

 {{spoiler|[[text]]}}  to get text.

Type:

 {{spoiler|[[text does not exist]]}}  to get text does not exist.

This works for all types of texts, whether unlinked, blue linked, or red linked. All will be visible if the area affected is highlighted by the mouse. It will work the same on external links, and it will hide everything except for the external link arrow icon.

The template puts a white overlay over text and all types of links. If a link is clicked, it will be visible on subsequent visits to the same page until the browser cache is cleared, merely highlighting the spoilered text will not need this.

This template is an originally created MediaWiki equivalent to the spoiler code for text used on TV Tropes.org and should function in an equivalent manner.

See Also

Code Of Template

This template uses the following CSS based template code:


 <span class="spoiler"><u>{{{1}}}</u></span>  


CSS Required to make this template function

This template depends on the following CSS being implemented in the common.css file on your MediaWiki installation:

.spoiler, .spoiler a, .spoiler a.link, .spoiler a.new, .spoiler a.visited, .spoiler a.external:link, .spoiler a.hover { background: #ffffff; color:#ffffff; border:1px dotted gray; border-top:none; background: #ffffff; .spoiler:hover { background: #ffffff;}

Copy and paste the text in the box above to your MediaWiki:Common.css file for this template to work
The above text is transcluded from Template:Spoiler/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Spoiler/doc. (View all subpages of this page.)
Advertisement