Template:Color

From Wikibase Personal data
Revision as of 19:41, 23 October 2019 by Podehaye (talk | contribs) (Created page with "<span style="background:{{{bg|transparent}}};color:{{{1|red}}};{{{css|}}}" title="{{{title|{{{bg|transparent}}}}}}">{{{2|{{0|!}}}}}</span><noinclude> ---- '''Usage:''' <nowik...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

!


Usage: {{color|color|text}}

Examples:

  • {{color|red|example text}} → example text
  • {{color|#00F|example text}} → example text
  • {{color|white|example text|bg=black}} → example text


To draw just a color box with bg-color use it like:

  • {{Color||{{0|00}}|bg=#0A0}} → 00
  • {{Color|1=#F0F|2=XX|bg=#F0F}} → XX
  • {{Tlx|Cbox|#CCC}} → Template:Cbox


It is also possible to define additional CSS data, e.g.
{{color|#000|'''color box text'''|bg=#CFC|css=border:2px dotted #F80|title=example}} → color box text