Template:Divhide: Difference between revisions
Jump to navigation
Jump to search
ʘ‿ʘ
(attempting to add support for alignment parameter) |
(do I need this?) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{1}}}|end|</div></div>| | <includeonly>{{#ifeq:{{{1}}}|end|</div></div>| | ||
<div class="NavFrame {{#ifeq:{{{show}}}|yes||collapsed}}" {{#if:{{{2|}}}|style="width:{{{2}}}{{#if:{{{3|}}}|"; {{{3}}}:0px}}"}}><div class="NavHead" style="background-color:{{{color|#A7D7F9}}}">{{{1}}}</div><div class="NavContent" style="text-align:left;"> | <div class="NavFrame {{#ifeq:{{{show}}}|yes||collapsed}}" {{#if:{{{2|}}}|style="width:{{{2}}}{{#if:{{{3|}}}|"; position:absolute; {{{3}}}:0px}}"}}><div class="NavHead" style="background-color:{{{color|#A7D7F9}}}">{{{1}}}</div><div class="NavContent" style="text-align:left;"> | ||
}}</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!|color=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}} | {{Divhide|Look at me, I'm cute!|color=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}} |
Revision as of 18:18, 14 March 2012
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.
Look at me, I'm cute!
(open to see markup for above)
{{Divhide|Look at me, I'm cute!|color=#FFFF80}}<center>ʘ‿ʘ</center>{{Divhide|end}}