Template:DD-box: Difference between revisions
From BoyWiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{br|yes}}}|yes|<p style="margin:0; padding:0; line-height:1em;"><br clear="all" style="margin:0; padding:0; clear:both; line-height:1em;"></p>|}} | <includeonly>{{#ifeq:{{{br|yes}}}|yes|<p style="margin:0; padding:0; line-height:1em;"><br clear="all" style="margin:0; padding:0; clear:both; line-height:1em;"/></p>|}} | ||
<div style="margin-right:.5em;" align="{{#if:{{{alignB|}}}|{{{alignB}}}|left}}"> | <div style="margin-right:.5em;" align="{{#if:{{{alignB|}}}|{{{alignB}}}|left}}"> | ||
<div class="NavFrame" style="margin-top:{{{marginTop|0em}}}; margin-bottom:{{{marginBottom|0.5em}}}; width:{{{width|99%}}}; border-style:solid; border-radius:{{{rounded|0}}};border-color:{{{bdColor|#AAAAAA}}}; background-color:{{{bgColorB|#FFFFFF}}};" title="{{{label|<big>⇩ | <div class="NavFrame" style="margin-top:{{{marginTop|0em}}}; margin-bottom:{{{marginBottom|0.5em}}}; width:{{{width|99%}}}; border-style:solid; border-radius:{{{rounded|0}}};border-color:{{{bdColor|#AAAAAA}}}; background-color:{{{bgColorB|#FFFFFF}}};" title="{{{label|<big>⇩</big>}}}"> | ||
{{#if:{{{image|}}}|<div class="NavPic" style="background-color:{{{bgColorT|#EFEFEF}}};">{{{image}}}</div>}} | {{#if:{{{image|}}}|<div class="NavPic" style="background-color:{{{bgColorT|#EFEFEF}}};">{{{image}}}</div>}} | ||
<div class="NavHead" align="{{{alignT|center}}}" style="{{#if:{{{height|}}}|height:{{{height}}}}}; background-color:{{{bgColorT|#EFEFEF}}}; color:{{{textColorT|black}}}; {{#ifeq:{{{thinning|no}}}|yes|font-weight:normal;|}}">{{{title}}}</div> | <div class="NavHead" align="{{{alignT|center}}}" style="{{#if:{{{height|}}}|height:{{{height}}}}}; background-color:{{{bgColorT|#EFEFEF}}}; color:{{{textColorT|black}}}; {{#ifeq:{{{thinning|no}}}|yes|font-weight:normal;|}}">{{{title}}}</div> | ||
Line 8: | Line 8: | ||
</div> | </div> | ||
<div class="NavEnd"></div></div></div></includeonly><noinclude> | <div class="NavEnd"></div></div></div></includeonly><noinclude> | ||
;Use | ;Use | ||
:title box whose contents can be displayed or hidden. | :title box whose contents can be displayed or hidden. | ||
Line 33: | Line 32: | ||
;Example | ;Example | ||
<nowiki>{{DD-box|titre=Colors table|rounded=0.6em|align=center|width=98%|bgColorB=#eee|bgColorT=#fff|bgColorC=#fff|content={{Colors table}}}}</nowiki> | <nowiki>{{DD-box|titre=Colors table|rounded=0.6em|align=center|width=98%|bgColorB=#eee|bgColorT=#fff|bgColorC=#fff|content={{Colors table}}}}</nowiki> | ||
{{DD-box| | {{DD-box|title=Colors table|rounded=0.6em|align=center|width=98%|bgColorB=#eee|bgColorT=#fff|bgColorC=#fff|content={{Colors table}}}} | ||
</noinclude> | </noinclude> |
Revision as of 17:51, 21 October 2013
- Use
- title box whose contents can be displayed or hidden.
- mini syntax
{{DD-box | title= | content= }}
- Params
br
: header line feed (br=yes
, br=no)rounded
: rounded corner (rounded=0.6em
image
: left image ([[Image:Gtk-dialog-info.svg|15px]]
)height
: wrapped box height (not less 1.6em)marginTop
: margin before the box (1em
)marginBottom
: margin after the boxwidth
: box width (50%
)borderColor
: (#AAAAAA
)bgColorB
: box background color (#FFFFFF
)bgColorC
: content background color (white
)bgColorT
: title background coloralignB
: box align (left, right, center or justify
)alignC
: content alignalignT
: title alignfontSize
: content font size (0.9em)label
: switches to open/close the box ([open]:[close]
)textColorT
: title color text
- Example
{{DD-box|titre=Colors table|rounded=0.6em|align=center|width=98%|bgColorB=#eee|bgColorT=#fff|bgColorC=#fff|content={{Colors table}}}}
<div class="NavFrame" style="margin-top:0em; margin-bottom:0.5em; width:98%; border-style:solid; border-radius:0.6em;border-color:#AAAAAA; background-color:#eee;" title="⇩">
Colors table