Template:Divbox/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Fæ@en.wikipedia.org
(update)
>Fæ@en.wikipedia.org
Line 14: Line 14:
<div style="{{divstyleforest}}; width:5em; float:left; margin:.3em">forest</div>
<div style="{{divstyleforest}}; width:5em; float:left; margin:.3em">forest</div>
<div style="{{divstylegold}}; width:5em; float:left; margin:.3em">gold</div>
<div style="{{divstylegold}}; width:5em; float:left; margin:.3em">gold</div>
{{clear}}
<div style="{{divstylegray}}; width:5em; float:left; margin:.3em">gray</div>
<div style="{{divstylegray}}; width:5em; float:left; margin:.3em">gray</div>
<div style="{{divstylegreen}}; width:5em; float:left; margin:.3em">green</div>
<div style="{{divstylegreen}}; width:5em; float:left; margin:.3em">green</div>
Line 21: Line 22:
<div style="{{divstyleplain}}; width:5em; float:left; margin:.3em">plain</div>
<div style="{{divstyleplain}}; width:5em; float:left; margin:.3em">plain</div>
<div style="{{divstylepurple}}; width:5em; float:left; margin:.3em">purple</div>
<div style="{{divstylepurple}}; width:5em; float:left; margin:.3em">purple</div>
{{clear}}
<div style="{{divstylelilac}}; width:5em; float:left; margin:.3em">lilac</div>
<div style="{{divstylelilac}}; width:5em; float:left; margin:.3em">lilac</div>
<div style="{{divstylered}}; width:5em; float:left; margin:.3em">red</div>
<div style="{{divstylered}}; width:5em; float:left; margin:.3em">red</div>
Line 26: Line 28:
<div style="{{divstyleyellow}}; width:5em; float:left; margin:.3em">yellow</div>
<div style="{{divstyleyellow}}; width:5em; float:left; margin:.3em">yellow</div>
<div style="{{divstylefawn}}; width:5em; float:left; margin:.3em">fawn</div>
<div style="{{divstylefawn}}; width:5em; float:left; margin:.3em">fawn</div>
<div style="{{divstylett}}; width:5em; float:left; margin:.3em">tt</div>
{{clear}}
<div style="{{divstylegreenv}}; width:4em; float:left; margin:.3em">greenv</div>
<div style="{{divstylegreenv}}; width:4em; float:left; margin:.3em">greenv</div>
<div style="{{divstylegrayh}}; width:5em; float:left; margin:.3em">grayh</div>
<div style="{{divstylegrayh}}; width:5em; float:left; margin:.3em">grayh</div>
<div style="{{divstylett}}; width:5em; float:left; margin:.3em">tt</div>
<div style="{{divstyledouble}}; width:8em; float:left; margin:.3em">double</div>
<div style="{{divstyledouble}}; width:5em; float:left; margin:.3em">double</div>
<div style="{{divstylewordperfect}}; width:8em; float:left; margin:.3em">wordperfect</div>
<div style="{{divstylewordperfect}}; width:11.7em; float:left; margin:.3em">wordperfect</div>
{{clear}}
{{clear}}
;Notes
;Notes

Revision as of 13:18, 12 November 2010

This template is used to create coloured text background.

Usage

{{divbox|color of box|Headtitle|Message}}

The parameter radius may be added for rounded corners. This parameter is considered a complex style and is unsuitable for articles.

Available styles

amber
black
bloodred
blue
brown
forest
gold
gray
green
navy
none
orange
plain
purple
lilac
red
white
yellow
fawn
tt
greenv
grayh
double
wordperfect
Notes
  • The color names are case-dependent; they will not work if upper-case letters are used.
  • plain, double, tt and none inherit the page background colour whilst white forces a pure white background.
  • Note that complex styles should only be used on user pages, essays and project pages.

Examples

Template:Div col

Code

{{divbox|orange|Orange example|This is only an example of how this template works.}}

Result
Code

{{divbox|greenv|radius=4em|Navy example|This is only an example of how this template works.}}

Result

Template:Div col end

See also


Template:Mbox templates see also