ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Difference between revisions of "Template:Co/doc"
From ModEnc
m (Examples) |
m (→See also) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
</pre> | </pre> | ||
Copy-paste the code above and replace | Copy-paste the code above and replace | ||
− | * '''text''' with the text you want to have colored | + | * '''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) | * '''background-color''' with the bg-color the text should have (can be left blank) | ||
Line 23: | Line 24: | ||
{{Color|Grayish-green text with a red background|green|red}} | {{Color|Grayish-green text with a red background|green|red}} | ||
− | Mind that '''<code>#00FF00</code> and <code>green</code> are diffrent in our wiki'''. | + | * Mind that '''{{color block|#00FF00}}<code>#00FF00</code> and {{color block|green}}<code>green</code> are diffrent in our wiki'''. |
+ | |||
+ | ==See also== | ||
+ | {{tl|color block}} |
Latest revision as of 10:08, 24 August 2021
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
#00FF00
andgreen
are diffrent in our wiki.
See also
{{color block}}