Template:Color: Difference between revisions
Template page
More actions
"Text formatting templates" category should be before the noinclude closer, not after; otherwise it will show up in all articles that use this template |
No edit summary |
||
| Line 1: | Line 1: | ||
<span style="color:{{{1}}}">{{{2}}}</span><noinclude> | {{#ifeq:{{{1}}}|white|<span style="border:#000 solid 1px;padding:0;color:{{{1}}}">{{{2}}}</span>|<span style="color:{{{1}}}">{{{2}}}</span>}}<noinclude> | ||
---- | ---- | ||
'''Usage:''' <nowiki>{{</nowiki>color|''color''|''text''}} | '''Usage:''' <nowiki>{{</nowiki>color|''color''|''text''}} | ||
Revision as of 22:41, 3 July 2010
{{{2}}}
Usage: {{color|color|text}}
Examples:
- {{color|red|example text}} → example text
- {{color|#0000FF|example text}} → example text
For colors see w:web colors.
af:Sjabloon:Kleur
en:Template:Color
fr:Modèle:Coloré
ja:Template:Color
sl:Predloga:Barva
zh-yue:Template:Color