Difference between revisions of "Template:Bg-grad/colour"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (improve template code; add new parameter) |
Explorer09 (Talk | contribs) 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}}}}};"> </span> }}<!-- | {{#ifeq: {{{2|left}}} | left |<span style="background-color: #{{uc:{{{1|000000}}}}};"> </span> }}<!-- | ||
− | -->#{{uc:{{{1|NO COLOUR!}}}}}<!-- | + | -->#{{uc:{{{1|NO COLOUR!}}}}}<!-- |
-->{{#ifeq: {{{2|}}} | right | <span style="background-color: #{{uc:{{{1|000000}}}}};"> </span>}}<noinclude> | -->{{#ifeq: {{{2|}}} | right | <span style="background-color: #{{uc:{{{1|000000}}}}};"> </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 .