Template:Color/doc: Difference between revisions
Jump to navigation
Jump to search
(Added Doc) |
mNo edit summary |
||
Line 27: | Line 27: | ||
|- | |- | ||
|{{Code|<nowiki>{{a}}</nowiki>}} | |{{Code|<nowiki>{{a}}</nowiki>}} | ||
| | |Alpha channel {{confirm}} | ||
|{{Code|<nowiki>{{Color|rgb=255|a=1}}</nowiki>}}<br>{{Code|<nowiki>{{Color|rgb=255|a=.6}}</nowiki>}} | |{{Code|<nowiki>{{Color|rgb=255|a=1}}</nowiki>}}<br>{{Code|<nowiki>{{Color|rgb=255|a=.6}}</nowiki>}} | ||
|{{Color|r=255|g=255|b=255|a=1}}<br>{{Color|r=255|g=255|b=255|a=.6}} | |{{Color|r=255|g=255|b=255|a=1}}<br>{{Color|r=255|g=255|b=255|a=.6}} | ||
|} | |} | ||
<includeonly>[[Category:Notice templates|{{PAGENAME}}]]</includeonly> | <includeonly>[[Category:Notice templates|{{PAGENAME}}]]</includeonly> |
Revision as of 10:49, 20 March 2024

This is a documentation subpage for Template:Color.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage
Parameters and Examples
Parameter | Description | Example | Preview |
---|---|---|---|
No parameters | Template will revert to the default values if not specified within the parser functions. | {{Color}} | ⇆#000000rgb(0,0,0)⇆ |
{{r|g|b}} | Setting the values for r,g,b will give you a specified color. | {{Color|r=200|g=128|b=64}} | ⇆#C88040rgb(200,128,64)⇆ |
{{rgb}} | Controls the r,g,b function, if set to 255 the color code will show #FFFFFF | {{Color|rgb=100}} {{Color|rgb=100|a=.1}} |
⇆#646464rgb(100,100,100)⇆ ⇆#6464641Argba(100,100,100,.1)⇆ |
{{a}} | Alpha channel [confirm] | {{Color|rgb=255|a=1}} {{Color|rgb=255|a=.6}} |
⇆#FFFFFFFFrgba(255,255,255,1)⇆ ⇆#FFFFFF99rgba(255,255,255,.6)⇆ |