- New color scheme
To create a new color scheme one needs to copy this into a new page Template:ColorschemeName
with contents
<!-- background color: -->XXXXXX <!-- font color: -->YYYYYY<noinclude> {{ColorSchemeViewer|colorscheme={{PAGENAME}}}} [[Category:Color Schemes|{{PAGENAME}}]]</noinclude>
where XXXXXX
is the hex-code of the background color, and YYYYYY
is the hex-code of the font color.
Alternately, type the name of the new color scheme after "Template:
" in the following input box:
Be sure to:
- Name the page according to the following scheme:
TheNameOfTheGroupWithoutSpacesColors
- Modify only
XXXXXX
andYYYYYY
in the copied content. - You can add the title= parameter to the template {{ColorSchemeViewer}}, or give the title as free parameter.
Note: After creating the page, maybe you will have to refresh it. Use the button present in the {{ColorSchemeViewer}} template.
- Usage
To recall the colors of a colorscheme use the code
#{{#explode:{{colorscheme}}| |0}}
as color for the background and
#{{#explode:{{colorscheme}}| |1}}
as color for the text.
- Sample
<div style="width:400px; height:20px; background:#{{#explode:{{NinjaColorScheme}}| |0}}; text-align:center; color:#{{#explode:{{NinjaColors}}| |1}};">'''The Ninjas Color Scheme'''</div>
gives:
The Ninjas Color Scheme
- See also
All items (18)