Difference between revisions of "Template:Spoiler"
From Project: Gorgon Wiki
Gorgonzola (talk | contribs) m |
Gorgonzola (talk | contribs) m |
||
Line 18: | Line 18: | ||
Use this template to add a spoiler '''section''' to a page (for inline text use [[Template:Hint]] instead). | Use this template to add a spoiler '''section''' to a page (for inline text use [[Template:Hint]] instead). | ||
− | I made this template to replace the tag provided by the <nowiki><spoiler></nowiki> extension, because for some reason it seems to bypass some of the MediaWiki formatting. This version uses the same Javascript code, but doesn't rely on the backend php code extension for the spoiler tag, so the content of the spoiler is treated as standard MediaWiki formatting. | + | I made this template to replace the tag provided by the <nowiki><spoiler></nowiki> extension, because for some reason it seems to bypass some of the MediaWiki formatting. This version uses the same Javascript code, but doesn't rely on the backend php code extension for the spoiler tag, so <strike>the content of the spoiler is treated as standard MediaWiki formatting</strike>. |
− | + | <span style="color:red">Actually, this still doesn't allow talbes inside the spoiler. Oh well, I guess we have a little more freedom to style the button or make it into an image and whatnot.</span> | |
[[Category:Formatting templates|Spoiler]] | [[Category:Formatting templates|Spoiler]] | ||
</noinclude> | </noinclude> |
Revision as of 12:32, 23 September 2014
Description
{{Spoiler| <text> }}
Use this template to add a spoiler section to a page (for inline text use Template:Hint instead).
I made this template to replace the tag provided by the <spoiler> extension, because for some reason it seems to bypass some of the MediaWiki formatting. This version uses the same Javascript code, but doesn't rely on the backend php code extension for the spoiler tag, so the content of the spoiler is treated as standard MediaWiki formatting.
Actually, this still doesn't allow talbes inside the spoiler. Oh well, I guess we have a little more freedom to style the button or make it into an image and whatnot.