Template:Colortext: Difference between revisions
Appearance
Created page with "<includeonly><span style="color:{{{1}}};">{{{2}}}</span></includeonly><noinclude> This template renders the given text in a specified color. ===Usage=== <code><nowiki>{{color|#000|Hello}}</nowiki></code> → {{color|#000|Hello}} ===Notes=== * You can use either a named CSS color (like `red`) or a hex code (like `#ff0000` or shorthand `F00`). * Always wrap hex codes with a `#` when possible for clarity and standards compliance. Category:Styling templatess </noinc..." |
m fixed typo |
||
| (One intermediate revision by one other user not shown) | |||
| Line 3: | Line 3: | ||
===Usage=== | ===Usage=== | ||
<code><nowiki>{{ | <code><nowiki>{{Colortext|green|Hello}}</nowiki></code> → {{Colortext|green|Hello}} | ||
===Notes=== | ===Notes=== | ||
| Line 9: | Line 9: | ||
* Always wrap hex codes with a `#` when possible for clarity and standards compliance. | * Always wrap hex codes with a `#` when possible for clarity and standards compliance. | ||
[[Category:Styling | [[Category:Styling templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:56, 29 October 2025
This template renders the given text in a specified color.
Usage
[edit source]{{Colortext|green|Hello}} → Hello
Notes
[edit source]- You can use either a named CSS color (like `red`) or a hex code (like `#ff0000` or shorthand `F00`).
- Always wrap hex codes with a `#` when possible for clarity and standards compliance.