• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Color palette

  • Template
  • Talk
  • Language
  • Watch
  • Edit

Template documentation[view] [edit] [history] [purge]

Contents

  • 1 Usage
  • 2 Examples
    • 2.1 Error message
  • 3 Supported colors

Usage

edit
Usage

{{Color palette|color=typeofcolor}}


Full syntax

{{Color palette |color=typeofcolor |imagesize=}}

Note

This template does not support hex values (e.g.: #ABC123) for Web colors.

Examples

edit
Markup Renders As
{{Color palette|color=red|imagesize=100px}}

renders as:

{{Color palette|color=blue}}

renders as:

Error message

edit

When you add any color that is not available, it will show the following: {{Color palette|color=blue}} → File:Solid error.svg

Supported colors

edit

This template uses File: to request images with the name "File:Solid color name.svg". Options are listed at commons:Category:SVG_solid_squares.

The above documentation is transcluded from Template:Color palette/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Color_palette&oldid=1276432835"
Last edited on 18 February 2025, at 20:49

Languages

    • Simple English
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 18 February 2025, at 20:49 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop