Template:Divhide: Difference between revisions

restored title to an unnamed and optional parameter to match the usage of this template throughout the wiki
(removed span tag that I didn't understand; updated docs)
(restored title to an unnamed and optional parameter to match the usage of this template throughout the wiki)
 
Line 4: Line 4:
  |</div></div>
  |</div></div>
  |<div class="hidden-begin mw-collapsible {{#ifeq:{{{show}}}|yes||mw-collapsed}}" style="{{#if:{{{bgcolor|}}}|background-color:{{{bgcolor}}};}}"><!--
  |<div class="hidden-begin mw-collapsible {{#ifeq:{{{show}}}|yes||mw-collapsed}}" style="{{#if:{{{bgcolor|}}}|background-color:{{{bgcolor}}};}}"><!--
--><div class="hidden-title skin-nightmode-reset-color" style="text-align:center; background-color:{{{titlebgcolor|#A7D7F9}}};">{{{title}}}</div><!--
--><div class="hidden-title skin-nightmode-reset-color" style="text-align:center; background-color:{{{titlebgcolor|#A7D7F9}}};">{{{1|&nbsp;}}}</div><!--
--><div class="hidden-content mw-collapsible-content" style="{{#if:{{{contentbgcolor|}}}|background-color:{{{contentbgcolor}}};}}">
--><div class="hidden-content mw-collapsible-content" style="{{#if:{{{contentbgcolor|}}}|background-color:{{{contentbgcolor}}};}}">
}}</includeonly><noinclude>
}}</includeonly><noinclude>
This template produces cute little boxes to hide text in. You simply place <tt><nowiki>{{Divhide|title=some_title}}</nowiki></tt> at the start of the text you want to hide, and <tt><nowiki>{{Divhide|end}}</nowiki></tt> at the end, and everything in-between folds up nice and neat. Additional optional parameters:
This template produces cute little boxes to hide text in. You simply place <tt><nowiki>{{Divhide|some title}}</nowiki></tt> at the start of the text you want to hide, and <tt><nowiki>{{Divhide|end}}</nowiki></tt> at the end, and everything in-between folds up nice and neat. Additional optional parameters:


*'''show''': Sets the initial state of the box; if it is set to "yes", the box will be open when the page loads, otherwise it will be collapsed initially.
*'''show''': Sets the initial state of the box; if it is set to "yes", the box will be open when the page loads, otherwise it will be collapsed initially.
Line 14: Line 14:


Example:
Example:
{{Divhide|title=Look at me, I'm cute!|titlebgcolor=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}
{{Divhide|Look at me, I'm cute!|titlebgcolor=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}


{{Divhide|title=(open to see markup for above)}}<nowiki>{{Divhide|title=Look at me, I'm cute!|titlebgcolor=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}</nowiki>{{Divhide|end}}
{{Divhide|(open to see markup for above)}}<nowiki>{{Divhide|Look at me, I'm cute!|titlebgcolor=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}</nowiki>{{Divhide|end}}


[[Category:Message box templates]]</noinclude>
[[Category:Message box templates]]</noinclude>