Template:Divhide

From OniGalore
Revision as of 16:16, 9 March 2021 by Iritscen (talk | contribs) (seeing if a default title of an invisible character fixes the zero-height problem with no-title Divhides)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template produces cute little boxes to hide text in. You simply place {{divhide|optional title}} at the start of the text you want to hide, and {{divhide|end}} at the end, and everything in-between folds up nice and neat. You can choose the initial state of the box by using the parameter show; if it is set to "yes", the box will be open when the page loads; otherwise it will be collapsed initially. You can also pass in the color parameter to set the background color.