Template:Co: Difference between revisions
Appearance
en>Renegade m black bg example is worthless on a black bg |
en>桂月August m Move the introduction to the doc of this template |
||
| Line 1: | Line 1: | ||
<includeonly><font color="{{{2}}}" style="background:{{{3}}};">{{{1}}}</font></includeonly><noinclude> | <includeonly><font color="{{{2}}}" style="background:{{{3}}};">{{{1}}}</font></includeonly><noinclude> | ||
{{Doc}}</noinclude> | |||
Revision as of 12:31, 18 August 2021
This document transclude from Template:Co/doc.
Usage:
{{Co|text|color|background-color}}
Copy-paste the code above and replace
- text with the text you want to have colored
- color with the color the text should have
- background-color with the bg-color the text should have (can be left blank)
Examples
- Code
{{Co|Gold text|gold}}
{{Co|Green text with a red background|#00FF00|red}}
{{Color|Grayish-green text with a red background|green|red}}
- Result
Gold text
Green text with a red background
Grayish-green text with a red background
- Mind that
#00FF00andgreenare diffrent in our wiki.