Difference between revisions of "Template:Co"

From EVE University Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 
{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}<noinclude>
 
{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}<noinclude>
 +
 +
==Template Code==
 +
<nowiki>{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}</nowiki>
 +
 +
Have fun if you can make sense of it.
  
 
==Usage==
 
==Usage==

Revision as of 19:33, 6 December 2012

Template Code

{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}

Have fun if you can make sense of it.

Usage

{{co|<text color>|<background color>|<text>}}

Example

{{co|red||This text isn't yellow.}} This text isn't yellow.
{{co||green|This text has a green background.}} This text has a green background.
{{co|#0033CC||This text uses an HTML color code.}} This text uses an HTML color code.

Note the double brackets || which means that that section is empty. Do not miss brackets, all three are needed.