Difference between revisions of "Template:Fontcolor"

From Tales of Maj'Eyal
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
Needs [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions|ParserFunctions] installed before this will work. Remove the <nocode> tags when this is done.
+
<noinclude>
  
<nocode>
+
'''Usage''': <nowiki>{{fontcolor|<foreground>|<background>|<text>}}</nowiki>  
{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}
+
 
</nocode>
+
For example, <nowiki>{{fontcolor|red|black|I am red on black!}}</nowiki> will produce {{fontcolor|red|black|I am red on black!}}
 +
</noinclude>
 +
<onlyinclude><includeonly>{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}
 +
</includeonly></onlyinclude>
 +
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 06:26, 10 February 2016


Usage: {{fontcolor|<foreground>|<background>|<text>}}

For example, {{fontcolor|red|black|I am red on black!}} will produce I am red on black!