ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Co/doc: Difference between revisions

From ModEnc
Jump to navigation Jump to search
mNo edit summary
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</li><li>'''color''' with the color the text should have
* '''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)



Revision as of 01:48, 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 and green are diffrent in our wiki.