Jump to content

Template:Swatch inline

From Elite Dangerous Wiki
Revision as of 17:49, 6 February 2021 by Wikipedia>Iketsi ({{2}}} → {{replace|{{{2}}}|#|#}} to prevent {{{2}}} from getting interpreted as a numbered list item when it contains a "#" character (e.g. "#f00"))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{1}}}

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Swatch inline/doc" to edit its documentation if it is available. (How does this work?)

Usage

Mostly for use on talk pages when discussing color.

{{swatch inline|RED}} gives RED
{{swatch inline|Salmon}} gives Salmon
{{swatch inline|#00FF00}} gives #00FF00
{{swatch inline|gold|Au}} gives Au
{{swatch inline|#004800|dark green|white}} gives dark green

RED, gold and white are HTML color names, whereas #00FF00 and #004800 are RGB hex triplets.

See also