Template:Color/doc: Difference between revisions

From Open Fortress Wiki
Jump to navigation Jump to search
(Created page with "{{doc/subpage}} == Usage == === Parameters and Examples === {| class="standard-table" | style="width:1024px; text-align:center;" |- ! Parameter ! Description ! Example ! Preview |- |No parameters |Template will revert to the default values if not specified within the parser functions. |{{Code|<nowiki>{{Color}}</nowiki>}} |{{Color}} |- |{{Code|<nowiki>{{r|g|b}}</nowiki>}} |Setting the values for r,g,b will give you a specified color. |{{Code|<nowiki>{{Color|r=200|g=128...")
 
(No difference)

Latest revision as of 02:47, 4 January 2025

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}} #000000
{{r|g|b}} Setting the values for r,g,b will give you a specified color. {{Color|r=200|g=128|b=64}} #C88040
{{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}}
#646464
#6464641A
{{a}} Alpha channel {{Color|rgb=255|a=1}}
{{Color|rgb=255|a=.6}}
#FFFFFFFF
#FFFFFF99