Template:Random colour

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

#1B9912

Usage[edit]

With value defined[edit]

{{Random colour|Randomly coloured text}}

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

Without value defined[edit]

{{Random colour}}

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

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

which produces -Random colour