Template:Color: Difference between revisions
Template page
More actions
m expansion |
m expansion |
||
| Line 9: | Line 9: | ||
To draw just a color box with ''bg''-color use it like | To draw just a ''color '''box''''' with ''bg''-color use it like | ||
* <nowiki>{{</nowiki>color||<nowiki>{{</nowiki>0|00}}|bg=#0A0}} → {{color||{{0|00}}|bg=#0a0}}   or   <nowiki>{{</nowiki>color|1=#F0F|2=XX|bg=#F0F}} → {{color|1=#F0F|2=XX|bg=#F0F}} | * <nowiki>{{</nowiki>color||<nowiki>{{</nowiki>0|00}}|bg=#0A0}} → {{color||{{0|00}}|bg=#0a0}}   or   <nowiki>{{</nowiki>color|1=#F0F|2=XX|bg=#F0F}} → {{color|1=#F0F|2=XX|bg=#F0F}} | ||
It is also possible to define ''additional CSS data'', e.g. | |||
<nowiki>{{color|#000|'''color box text'''|bg=#CFC|</nowiki>'''css='''border:2px dotted #F80}} → {{color|#000|'''color box text'''|bg=#CFC|css=border:2px dotted #F80}} | |||
For colors see: {{W|Web colors}}. | For colors see: {{W|Web colors}}. | ||
The {{color|black|''bg''-color}} is {{W|Tooltip|''tooltipped''}} | The {{color|black|''bg''-color}} is {{W|Tooltip|''tooltipped''}} — move the cursor to the field to see | ||
[[af:Sjabloon:Kleur]] | [[af:Sjabloon:Kleur]] | ||
Revision as of 09:34, 14 October 2013
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}} → or {{color|1=#F0F|2=XX|bg=#F0F}} → XX
It is also possible to define additional CSS data, e.g.
{{color|#000|'''color box text'''|bg=#CFC|css=border:2px dotted #F80}} → color box text
For colors see: Web colors.
The bg-color is tooltipped — move the cursor to the field to see
af:Sjabloon:Kleur ar:قالب:لون da:Skabelon:Color de:Vorlage:Farbindex en:Template:Color fr:Modèle:Coloré ja:Template:Color nl:Sjabloon:Tekstkleur no:Mal:Farve pl:Szablon:Kolor pt:Predefinição:Color ro:Format:Color ru:Шаблон:Color sl:Predloga:Barva uk:Шаблон:Кольоровий текст zh-yue:Template:Color