Template:Divbox: Difference between revisions

From Park Hill Wiki
Jump to navigation Jump to search
(Created page with "This template is used to create coloured text background. === Usage === <nowiki>{{divbox|color of box|Headtitle|Message}}</nowiki> The parameter ''radius'' may be added for...")
(No difference)

Revision as of 13:05, 23 August 2020

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 using standard units, for example radius=8px. This parameter is considered a complex style and is unsuitable for image pages.

Available styles

amber
black
bloodred
blue
brown
forest
gold

Template:Clear

gray
green
navy
none
orange
plain
purple

Template:Clear

lilac
red
white
yellow
fawn
tt
wordperfect

Template:Clear

redv
orangev
yellowv
limev
bluev
purplev
pinkv

Template:Clear

tealv
slatev
greenv
grayh
email
tweet
double
Template:Clear
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

Code

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

Result

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 using standard units, for example radius=8px. This parameter is considered a complex style and is unsuitable for image pages.

Available styles

amber
black
bloodred
blue
brown
forest
gold

Template:Clear

gray
green
navy
none
orange
plain
purple

Template:Clear

lilac
red
white
yellow
fawn
tt
wordperfect

Template:Clear

redv
orangev
yellowv
limev
bluev
purplev
pinkv

Template:Clear

tealv
slatev
greenv
grayh
email
tweet
double
Template:Clear
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

Code

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

Result

Template loop detected: Template:Divbox

Code

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

Result

Template loop detected: Template:Divbox

Code

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

Result

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 using standard units, for example radius=8px. This parameter is considered a complex style and is unsuitable for image pages.

Available styles

amber
black
bloodred
blue
brown
forest
gold

Template:Clear

gray
green
navy
none
orange
plain
purple

Template:Clear

lilac
red
white
yellow
fawn
tt
wordperfect

Template:Clear

redv
orangev
yellowv
limev
bluev
purplev
pinkv

Template:Clear

tealv
slatev
greenv
grayh
email
tweet
double
Template:Clear
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

Code

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

Result

Template loop detected: Template:Divbox

Code

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

Result

Template loop detected: Template:Divbox