Template:Multibox: Difference between revisions

From TestWiki
Content added Content deleted
No edit summary
Line 1: Line 1:
<!-- ############ check backgr and border-colors! ######## -->
<onlyinclude><div style='margin-bottom:1.5em;<!--
<onlyinclude><div style='margin-bottom:1.5em;<!--
-->{{#if: {{{align|}}} | align: {{{align}}}; | align:left; }}<!--
-->{{#if: {{{align|}}} | align: {{{align}}}; | align:left; }}<!--
Line 19: Line 18:
-->{{#ifeq: {{{shadow|}}} | in | background-color: #fff; -moz-box-shadow: 0px 0px 5px 5px #ddd; -webkit-box-shadow:0px 0px 5px 5px #ddd; box-shadow: 0px 0px 5px 5px #ddd; |}}<!--
-->{{#ifeq: {{{shadow|}}} | in | background-color: #fff; -moz-box-shadow: 0px 0px 5px 5px #ddd; -webkit-box-shadow:0px 0px 5px 5px #ddd; box-shadow: 0px 0px 5px 5px #ddd; |}}<!--


-->border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px;<!--
-->border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px;<!--
-->min-height:50px;'><!--
-->min-height:50px;'><!--
Line 30: Line 29:
-->| <!--
-->| <!--
-->|<div style="float:left; " > <!--width:8px;
-->|<div style="float:left; " > <!--width:8px;
-->{{#if: {{{icon|}}} | [[File: {{{icon}}} | 50px ]] &nbsp;| [[File:Red warning 2.png | 50px]] &nbsp;}}</div><!--
-->{{#if: {{{icon|}}} | [[File: {{{icon}}} | 50px ]] &nbsp;| [[File:test.png | 50px]] &nbsp;}}</div><!--
-->}}
-->}}


Line 48: Line 47:
(var)=(value)
(var)=(value)
* background-color (bgcol): red|yellow|orange|green|blue|grey|purple|white
* background-color (bgcol): red|yellow|orange|green|blue|grey|purple|white
* type: error|information|warning|tag|tip|download<br />Default is ''note''.<br />tip and note have a "tip|note" label in the first line; to replace it use ''label=foo''. Use ''nolabel=true'' to disable it.
* shadow: off|(in)<br />Default is ''on'', (in means inside box, results in shading. its actually BUGGED!)
* shadow: off|(in)<br />Default is ''on'', (in means inside box, results in shading. its actually BUGGED!)
* border-style: <br />CSS definition of border-style property.<br />Default is ''none''<br />To ensable set it to ''solid''.
* border-style: <br />CSS definition of border-style property.<br />Default is ''none''<br />To enable set it to ''solid''.
* border-color (bcol): turns on border 2px solid in defined col. choose from the 6 basic colors.
* border-color (bcol): turns on border 2px solid in defined col. choose from the 6 basic colors.
* width: anything css understands (px, %, em)<br />Default is nothing which sets width to 100% of the parent.
* width: anything css understands (px, %, em)<br /> &nbsp; &nbsp; Default is nothing which sets width to 100% of the parent.
* display: <br />CSS definition of display property.<br />Default is <not defined>.
* display: <br />CSS definition of display property.<br />Default is <not defined>.
* margin: <br />Default is ''margin-top: 1.5em''.
* margin: <br />Default is ''margin-top: 1.5em''.
* nolabel: true|false<br />Default is true


<div style='margin-bottom:1.5em;<!--
<div style='margin-bottom:1.5em;<!--
Line 86: Line 83:
-->}}<!--
-->}}<!--
-->}}
-->}}
[[Category:Boxtemplate]]
[[Category:infobox]]

Revision as of 13:14, 13 July 2016

 


text
new line

Parameters

 important: you need to close two divs to end the box after your text. like: </div></div>


(var)=(value)

  • background-color (bgcol): red|yellow|orange|green|blue|grey|purple|white
  • shadow: off|(in)
    Default is on, (in means inside box, results in shading. its actually BUGGED!)
  • border-style:
    CSS definition of border-style property.
    Default is none
    To enable set it to solid.
  • border-color (bcol): turns on border 2px solid in defined col. choose from the 6 basic colors.
  • width: anything css understands (px, %, em)
        Default is nothing which sets width to 100% of the parent.
  • display:
    CSS definition of display property.
    Default is <not defined>.
  • margin:
    Default is margin-top: 1.5em.