Template:Divhide: Difference between revisions

some fixes
(dropping in pared-down version of current Wikipedia code)
(some fixes)
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="{{#if:{{{titlebgcolor|}}}|background-color:{{{titlebgcolor}}};}}">{{{title}}}</div><!--
--><div class="hidden-title skin-nightmode-reset-color" style="text-align:center; background-color:{{{titlebgcolor|#A7D7F9}}};">{{{title}}}</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}}};}}">
<span id="{{{1}}}"></span>
<span id="{{{1}}}"></span>
}}</includeonly><noinclude>This template produces cute little boxes to hide text in. You simply place <nowiki>{{divhide|optional title}}</nowiki> at the start of the text you want to hide, and <nowiki>{{divhide|end}}</nowiki> 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.
}}</includeonly><noinclude>This template produces cute little boxes to hide text in. You simply place <nowiki>{{divhide|optional title}}</nowiki> at the start of the text you want to hide, and <nowiki>{{divhide|end}}</nowiki> 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.
{{Divhide|Look at me, I'm cute!|titlebgcolor=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}
{{Divhide|title=Look at me, I'm cute!|titlebgcolor=#FFFF80}}<center>ʘ‿ʘ</center>{{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}}
{{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}}


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