Template:HexColour: Difference between revisions

no edit summary
(New Page: #{{dec2hex|{{{1|0}}}|digits=2}}{{dec2hex|{{{2|0}}}|digits=2}}{{dec2hex|{{{3|0}}}|digits=2}})
 
No edit summary
Line 1: Line 1:
#{{dec2hex|{{{1|0}}}|digits=2}}{{dec2hex|{{{2|0}}}|digits=2}}{{dec2hex|{{{3|0}}}|digits=2}}
#{{dec2hex|{{{1|0}}}|digits=2}}{{dec2hex|{{{2|0}}}|digits=2}}{{dec2hex|{{{3|0}}}|digits=2}}<noinclude>
 
==Usage==
 
This template takes three RGB values from 0-255 in decimal and outputs a hex colour with a preceding # for use in CSS styles. Useful for when a colour must be calculated and not just hardcoded.</noinclude>