Template:Swatch inline/doc
Jump to navigation
Jump to search
| File:OOjs UI icon book-ltr.svg | This is a documentation subpage for Template:Swatch inline. It contains usage information, categories and other content that is not part of the original Template page. |
[[Category:Template documentation pages{{#translation:}}]]
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
<syntaxhighlight lang="text" class="" id="" style="" inline="1">RED</syntaxhighlight>, <syntaxhighlight lang="text" class="" id="" style="" inline="1">gold</syntaxhighlight> and <syntaxhighlight lang="text" class="" id="" style="" inline="1">white</syntaxhighlight> are HTML color names, whereas <syntaxhighlight lang="text" class="" id="" style="" inline="1">#00FF00</syntaxhighlight> and <syntaxhighlight lang="text" class="" id="" style="" inline="1">#004800</syntaxhighlight> are RGB hex triplets.