Template:HiddenTextHeader: Difference between revisions
NyxAeravir (talk | contribs) (Created template for HiddenTextFooter, though it currently does not work properly. I suggest looking at Duncan's page on mww for an example of how this is used alongside HiddenTextFooter. **IF IT IS too much work to fix it, mark for deletion!) |
No edit summary |
||
Line 22: | Line 22: | ||
Show= Either show or hide text at start (Enter anything for show. Leave blank or 'none' for hide) | Show= Either show or hide text at start (Enter anything for show. Leave blank or 'none' for hide) | ||
</pre> | </pre> | ||
Example: | |||
{{HiddenTextHeader | |||
|Title=Very spoilery thing | |||
|Width= | |||
|Show= | |||
}} | |||
Oh noes, you got spoilered! | |||
{{HiddenTextFooter}} | |||
</noinclude> | </noinclude> |
Latest revision as of 10:14, 21 February 2023
To read, Click Show
This is used to hide text until the 'Show' button is clicked.
Usage:
{{HiddenTextHeader |Title= |Width= |Show= }} Content goes here! {{HiddenTextFooter}}
Remember to add {{HiddenTextFooter}} to the end!
Title = Title of the Spoiler Width = Width of the Spoiler (Blank for entire screen) Show= Either show or hide text at start (Enter anything for show. Leave blank or 'none' for hide)
Example:
Very spoilery thing
Oh noes, you got spoilered!