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
Jump to: navigation, search
(Doc to introduce this template.)
 
m (Examples)
Line 8: Line 8:
  
 
==Examples==
 
==Examples==
 +
;Code
 
<pre>
 
<pre>
{{Co|Yellow text|gold}}
+
{{Co|Gold text|gold}}
 +
 
 +
{{Co|Green text with a red background|#00FF00|red}}
 +
 
 +
{{Color|Grayish-green text with a red background|green|red}}
 
</pre>
 
</pre>
Creates {{Co|Gold text|gold}}.
+
;Result
 +
{{Co|Gold text|gold}}
  
<pre>
 
 
{{Co|Green text with a red background|#00FF00|red}}
 
{{Co|Green text with a red background|#00FF00|red}}
</pre>
+
 
Creates {{Co|Green text with a red background|#00FF00|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'''.

Revision as of 03:44, 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</li>
  • 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.