Difference between revisions of "Template:BackgroundColor"

From 118Wiki
Jump to navigation Jump to search
(Variant of the color template. Used to basically escape mediawki's being a jerk and parsing # if it's the output from a template. Bear in mind this is for background styling where you MIGHT pass a # coded number. Based off of Rich's Color template.)
 
(some tweaks to documentation.)
 
Line 21: Line 21:
 
| black = background-color: black;
 
| black = background-color: black;
 
| background-color: {{{1}}};
 
| background-color: {{{1}}};
}}</includeonly><noinclude>Used wherever you might pass a hex-coded color.
+
}}</includeonly><noinclude>Used wherever you might pass a hex-coded color for background - for text color, use [[Template:TextColor]]
 
[[Category:Wiki System Templates]]
 
[[Category:Wiki System Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:03, 10 March 2015

Used wherever you might pass a hex-coded color for background - for text color, use Template:TextColor