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

From Worms Knowledge Base

Jump to: navigation, search
(for Template:Bg-grad)
 
m (escaped number sign (#) in order 'not' to become an ordered list)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="display: none;">0</span><span style="background-color: #{{{1|000000}}};">&emsp;</span> #{{{1|NO COLOUR!}}}
+
{{#ifeq: {{{2|left}}} | left |<span style="background-color: #{{uc:{{{1|000000}}}}};">&emsp;</span>&#32;}}<!--
 +
-->&#35;{{uc:{{{1|NO COLOUR!}}}}}<!--
 +
-->{{#ifeq: {{{2|}}} | right |&#32;<span style="background-color: #{{uc:{{{1|000000}}}}};">&emsp;</span>}}<noinclude>
 +
----
 +
==Usage==
 +
<nowiki>{{Bg-grad/colour|colour|position}}</nowiki>
 +
;Paremeters
 +
:'''1''': colour code, in hex triplet, excluding the number sign # .
 +
:'''2''': position of the colour block, can be <tt>left</tt> or <tt>right</tt> .
 +
</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