Template:Divhide: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(do I need this?)
m (/cat)
Line 5: Line 5:


{{Divhide|(open to see markup for above)}}<nowiki>{{Divhide|Look at me, I'm cute!|color=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}</nowiki>{{Divhide|end}}
{{Divhide|(open to see markup for above)}}<nowiki>{{Divhide|Look at me, I'm cute!|color=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}</nowiki>{{Divhide|end}}
[[Category:Basic formatting templates]]</noinclude>
 
[[Category:Message boxes]]</noinclude>

Revision as of 22:13, 8 December 2015

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.