תבנית:Random colour

מתוך איןציקלופדיה
קפיצה לניווט קפיצה לחיפוש

#8A8B3D

תרגום לעברית בדף השיחה

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: #00D254 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