Mal:Color swatch
{{{4}}}
{{{2}}}
{{{1}}}
Denne dokumentasjonen er inkludert frå Mal:Color swatch/dok. (endra | historikk)
Denne malen har ingen sandkasse og ingen døme der brukarar kan eksperimentera.
Denne malen har ingen sandkasse og ingen døme der brukarar kan eksperimentera.
Usage[endre wikiteksten]
Creates a color swatch for use in articles.
Parameter | Skildring | Type | Status | |
---|---|---|---|---|
Color | 1 | Color, as a CSS-compatible color.
| Streng | påkravd |
Title | 2 | The main caption. Appears once, beneath the swatch. Adding a reference is recommended.
| Tekstline | påkravd |
Float | 3 | Specifies the direction to float, if any: "left", "right" or "center". (Note that centering is not technically floating.)
| Streng | valfri |
Custom CSS | style | Advanced. Custom CSS code to be applied to the outer <div> element. | Streng | valfri |
Internal caption | 4 | Optional; appears in the swatch and below the title. | Tekstline | valfri |
Text color | 5 | The color of the text that is overlayed onto the swatch.
| Streng | valfri |
Samples[endre wikiteksten]
{{color swatch|#0000FF|Blue}} creates:Blue
#0000FF
We strongly recommend adding a <ref></ref> to the main title, e.g.:
{{color swatch|#0000FF|Blue<ref>[http://www.w3.org/TR/REC-html40/types.html#h-6.5 HTML 4.01 Specification]</ref>}} creates:Blue[1]
#0000FF
Optional parameters – floating left, and an internal caption:
{{color swatch|#0000FF|Blue|left|#0000FF}} creates:#0000FF
Blue
#0000FF
Change the internal caption's color with a fifth value:
{{color swatch|#0000FF|Blue|left|#0000FF|white}} creates:#0000FF
Blue
#0000FF
Note[endre wikiteksten]
Føremål[endre wikiteksten]
Bruk[endre wikiteksten]
Døme[endre wikiteksten]
Sjå òg[endre wikiteksten]