Template:Random colour/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Random colour. It contains usage information, categories, and other content that is not part of the original template page. |
Generates a random hex colour.
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: #8E0D2D 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
See also
- {{Col}}, for only nice colours