Difference between revisions of "Template:Spoiler"

From Project: Gorgon Wiki
Jump to: navigation, search
m (This template can not work as of yet.)
(A working SPOILER using html tooltip that could be replaced later by something more fancy.)
Line 1: Line 1:
<spoiler>
+
<abbr style="color:#844;" title="{{{1|Hint text goes here!}}}">SPOILER</abbr><noinclude>
{{{1|Spoiler text.}}}
 
</spoiler><noinclude>
 
  
 
== Description ==
 
== Description ==
 
<pre>
 
<pre>
{{Spoiler|
+
{{Spoiler|<text>}}
<text>
 
}}
 
 
</pre>
 
</pre>
This template was meant to replace the <nowiki><spoiler></nowiki> tag which does not allow formatting of text inside.
+
Use this template to add hints and spoilers to a page. The spoiler is hidden in a tooltip.
  
<span style="color:red">THIS TEMPLATE DOES NOT WORK as of yet.</span> (the text inside the tag is not parsed)
+
Try to summarize the spoiler text, because it won't use linebreaks or any formatting.
  
It uses the spoiler tag, but at some point in the future we may be able to replace the spoiler tag (which does not allow formatting of the text inside) with something better. Using this template instead of the spoiler tag will save many edits!
+
<span style="color:red">Use single quotes instead of double quotes because the text is inserted in a html attribute!</span>
  
 
=== Parameters ===
 
=== Parameters ===

Revision as of 05:20, 20 September 2014

SPOILER

Description

{{Spoiler|<text>}}

Use this template to add hints and spoilers to a page. The spoiler is hidden in a tooltip.

Try to summarize the spoiler text, because it won't use linebreaks or any formatting.

Use single quotes instead of double quotes because the text is inserted in a html attribute!

Parameters

None.