Template:Random colour

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This page is about HTML hex color codes. For color names for Mad Libs, see Template:Color. For the template that always colors input text, see Template:Cr. For the template that optionally colors input text, see Template:Col. For the navigation template, see Template:Colours.

#8D0A64

Usage

With value defined

{{Random colour|Randomly coloured text}}

will colour the text accordingly: randomly coloured text, but only works for spans of text.

Without value defined

{{Random colour}}

will simply produce a hex code: #91E343 which can be used in color= style tags, like so:

<span style="width: 100px; height:20px; color:{{Random colour}}; 
border: 3px solid {{random colour}}; background-color:{{random colour}}">
'''Random colour'''
</span>

which produces -Random colour