Difference between revisions of "Template:Bg-grad/colour"

From Worms Knowledge Base

Jump to: navigation, search
(improve template code; add new parameter)
m (escaped number sign (#) in order 'not' to become an ordered list)
 
Line 1: Line 1:
 
{{#ifeq: {{{2|left}}} | left |<span style="background-color: #{{uc:{{{1|000000}}}}};">&emsp;</span>&#32;}}<!--
 
{{#ifeq: {{{2|left}}} | left |<span style="background-color: #{{uc:{{{1|000000}}}}};">&emsp;</span>&#32;}}<!--
-->#{{uc:{{{1|NO COLOUR!}}}}}<!--
+
-->&#35;{{uc:{{{1|NO COLOUR!}}}}}<!--
 
-->{{#ifeq: {{{2|}}} | right |&#32;<span style="background-color: #{{uc:{{{1|000000}}}}};">&emsp;</span>}}<noinclude>
 
-->{{#ifeq: {{{2|}}} | right |&#32;<span style="background-color: #{{uc:{{{1|000000}}}}};">&emsp;</span>}}<noinclude>
 
----
 
----

Latest revision as of 07:06, 8 July 2010

#NO COLOUR!


Usage

{{Bg-grad/colour|colour|position}}
Paremeters
1: colour code, in hex triplet, excluding the number sign # .
2: position of the colour block, can be left or right .
Personal tools