Difference between revisions of "Template:CSScolor/doc"
(Template Doc Creation) |
m (Updating) |
||
Line 5: | Line 5: | ||
This template sanitizes and partially converts color codes and color names into a format supported by [[w:Cascading Style Sheets|CSS]]. This may be useful, in particular, with hexadecimal tuples which may come with or without an initial hash sign <code>#</code>, because it may be interpreted as the start of an enumerated list in wikicode. | This template sanitizes and partially converts color codes and color names into a format supported by [[w:Cascading Style Sheets|CSS]]. This may be useful, in particular, with hexadecimal tuples which may come with or without an initial hash sign <code>#</code>, because it may be interpreted as the start of an enumerated list in wikicode. | ||
+ | ==See also== | ||
+ | {{Template:Text color templates see also}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Text color templates]] | [[Category:Text color templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 20:08, 8 July 2023
This is a documentation subpage for Template:CSScolor. It may contain usage information, categories and other content that is not part of the original template page. |
Usage[edit]
This template sanitizes and partially converts color codes and color names into a format supported by CSS. This may be useful, in particular, with hexadecimal tuples which may come with or without an initial hash sign #
, because it may be interpreted as the start of an enumerated list in wikicode.
See also[edit]
This tables shows the various color templates in use. | ||||
---|---|---|---|---|
Color Template | style="background: Color;"
|
{{Background color|Color}}
|
{{Color|Text}}
|
{{Colored link|Color}}
|
{{White}} | Text | Text | Main page | |
{{Silver}} | Text | Text | Main page | |
{{Gray}} or {{Grey}} | Text | Text | Main page | |
{{Black}} | Text | Text | Main page | |
hot {{pink}} | Text | Text | Main page | |
{{red}} | Text | Text | Main page | |
{{darkRed}} | Text | Text | Main page | |
{{maroon}} | Text | Text | Main page | |
{{brown}} | Text | Text | Main page | |
{{orange}} | Text | Text | Main page | |
{{gold}} | Text | Text | Main page | |
{{yellow}} | Text | Text | Main page | |
{{olive}} | Text | olive | Main page | |
{{lime}} | Text | Text | Main page | |
{{green}} | Text | Text | Main page | |
{{aqua}} | Text | Text | Main page | |
{{lime}} | Text | Text | Main page | |
{{cyan}} | Text | Text | Main page | |
{{teal}} | Text | Text | Main page | |
{{azure}} | Text | Text | Main page | |
{{blue}} | Text | Text | Main page | |
{{navy}} | Text | Text | Main page | |
{{purple}} | Text | Text | Main page | |
{{fuchsia}} | Text | Text | Main page | |
{{magenta}} | Text | Text | Main page |
Color templates[edit]
- {{Background color}} or {{bg}} - sets background color
- {{Color}} or {{Red}} etc. – sets text color
- {{Font color}} – sets both text and background color
- {{Talk quote inline}}
- {{CSScolor}} - sanitizes and partially converts color codes and color names into a format supported by CSS.
- {{resize}}