Nodyn:Lliw ar hap

Oddi ar Celwyddoniadur
Neidio i: llywio, chwilio



With value defined[golygu]

{{Lliw ar hap|Randomly coloured text}}

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

Without value defined[golygu]

{{Lliw ar hap}}

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

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

which produces - Random colour