Template:Multibox: Difference between revisions
Content added Content deleted
(noinclude tags + categories updated) |
|||
(2 intermediate revisions by one other user not shown) | |||
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: |
-->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 ]] | [[File: |
-->{{#if: {{{icon|}}} | [[File: {{{icon}}} | 50px ]] | [[File:test.png | 50px]] }}</div><!-- |
||
-->}} |
-->}} |
||
Line 40: | Line 39: | ||
new line |
new line |
||
</div></div> |
</div></div> |
||
<noinclude> |
|||
==Parameters== |
==Parameters== |
||
⚫ | |||
⚫ | |||
(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 |
* 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 /> 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 81: | ||
-->}}<!-- |
-->}}<!-- |
||
-->}} |
-->}} |
||
[[Category: |
[[Category:Template]] |
||
[[category:Infobox templates]] |
|||
</noinclude> |
Latest revision as of 21:26, 23 August 2017
Parameters[edit]
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.