Template:Color: Difference between revisions
Template page
More actions
m inter |
m expansion |
||
| Line 1: | Line 1: | ||
<span style="background:{{{bg|transparent}}};color:{{{1}}}">{{{2}}}</span><noinclude> | <span style="background:{{{bg|transparent}}};color:{{{1|red}}}" title="{{{bg|transparent}}}">{{{2|{{0|!}}}}}</span><noinclude> | ||
---- | ---- | ||
'''Usage:''' <nowiki>{{</nowiki>color|''color''|''text''}} | '''Usage:''' <nowiki>{{</nowiki>color|''color''|''text''}} | ||
'''Examples:''' | '''Examples:''' | ||
* <nowiki>{{</nowiki>color|red|example text}} → {{color|red|example text}} | * <nowiki>{{</nowiki>color|red|example text}} → {{color|red|example text}} | ||
* <nowiki>{{</nowiki>color|#0000FF|example text}} → {{color|#0000FF|example text}} | * <nowiki>{{</nowiki>color|#0000FF|example text}} → {{color|#0000FF|example text}} | ||
* <nowiki>{{</nowiki>color|white|bg=black | * <nowiki>{{</nowiki>color|white|example text|bg=black}} → {{color|white|bg=black|example text}} | ||
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>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}} | ||
For colors see: {{W|Web colors}}. | For colors see: {{W|Web colors}}. | ||
The {{color|black|''bg''-color}} is {{W|Tooltip|''tooltipped''}} | |||
[[af:Sjabloon:Kleur]] | [[af:Sjabloon:Kleur]] | ||