Template:DD-box: Difference between revisions

From BoyWiki
Pinocchio (talk | contribs)
No edit summary
Pinocchio (talk | contribs)
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>|}}<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>⇩</big>:<big>⇧</big>}}}">
<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 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>:<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>

Revision as of 17:08, 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 box
  • width: box width (50%)
  • borderColor: (#AAAAAA)
  • bgColorB: box background color (#FFFFFF)
  • bgColorC: content background color (white)
  • bgColorT: title background color
  • alignB: box align (left, right, center or justify)
  • alignC: content align
  • alignT: title align
  • fontSize: 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=":">