Template:Bluebox/sandbox: Difference between revisions From Online Manual

Jump to: navigation, search
(debugging with background colors)
(usage notes)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--background-color:#E7EAEF->>
<div style="background-color:#E7EAEF;
<div style="; {{#ifeq:{{{minheight|none|}}}|none|background-color:red;|
{{#ifeq: {{{minheight}}}|none| | {{#if:{{{minheight|}}}| min-height: {{{minheight|}}}; | min-height:270px;}} }}">
                                                                      {{#if:{{{minheight|}}}|background-color: green; |background-color:orange; min-height: {{{minheight|}}}|min-height:270px;}}
}}">
<div style="background: none repeat scroll 0 0 #7D8FA4; border-bottom: 1px solid #777777; border-radius: 6px 6px 0 0; height:36px; line-height:36px;"><!--
<div style="background: none repeat scroll 0 0 #7D8FA4; border-bottom: 1px solid #777777; border-radius: 6px 6px 0 0; height:36px; line-height:36px;"><!--
-->{{#if:{{{boxIcon|}}} | <span style="margin:0 0 0 5px;"> [[Image:{{{boxIcon}}}.png|32px]]</span><span style="font-size:12pt; vertical-align:middle;">|<span style="margin:0 0 0 10px; font-size:12pt; vertical-align:middle"> }}
-->{{#if:{{{boxIcon|}}} | <span style="margin:0 0 0 5px;"> [[Image:{{{boxIcon}}}.png|32px]]</span><span style="font-size:12pt; vertical-align:middle;">|<span style="margin:0 0 0 10px; font-size:12pt; vertical-align:middle"> }}
Line 9: Line 7:
'''Usage:'''
'''Usage:'''


<nowiki>{{bluebox | boxIcon=</nowiki>''filename''<nowiki> | boxTitle=</nowiki>''text''<nowiki>}}</nowiki>
<nowiki>{{bluebox | boxIcon=</nowiki>''filename''<nowiki> | boxTitle=</nowiki>''text''<nowiki>|minheight=''optional minheight''</nowiki><nowiki>}}</nowiki>
* filename is optional.
* boxIcon -- optional
* boxTitle is optional, but recommended
* minheight --
* minheight
** empty or not used -- default 270px
** none -- no minimum height box will only be as tall as necessary to fit its contents
** "none" -- no minimum height
** blank or null -- default 270px height
** value -- use that minimum height
** anything else -- used as height
 
</noinclude>
</noinclude>

Latest revision as of 14:58, 1 February 2014

{{{boxTitle}}}

Usage:

{{bluebox | boxIcon=filename | boxTitle=text|minheight=''optional minheight''}}

  • boxIcon -- optional
  • minheight --
    • empty or not used -- default 270px
    • "none" -- no minimum height
    • value -- use that minimum height


Advertisement: