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

Template:Co: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m oooops
m <font> is out of date, please use CSS style as much as possible
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><font color="{{{2}}}" style="background:{{{3}}};">{{{1}}}</font></includeonly>
<includeonly><span color="{{{2}}}" style="color: {{{2}}}; background: {{{3}}};">{{{1}}}</span></includeonly><noinclude>
<noinclude>Usage:
{{Doc}}</noinclude>
<pre>{{Co|text|color|background-color}}</pre>
Copy-paste the code above and replace<br>
*'''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==
<pre>{{Co|Blue text|blue}}</pre>
Creates {{Co|Blue text|blue}}.
<pre>{{Co|Green text with a black background|green|black}}</pre>
Creates {{Co|Green text with a black background|green|black}}.
</noinclude>

Latest revision as of 01:36, 24 August 2021

Template Documentation  [View] [Edit] [History] [Help] [Refresh]

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.

See also

{{color block}}