Difference between revisions of "Template:Color"

From LFS Manual
Jump to navigationJump to search
m
m
Line 1: Line 1:
<includeonly><span style="position: relative; display: inline-block; border: 1px solid #666; background-color: {{{1}}}; width: 1rem; height: 1rem;">{{#if:{{{1|}}}|<span style="clip-path: polygon(0 0, 100% 0, 100% 100%); display: inline-block; position: absolute; top: 0; left: 0; background: {{{1|}}}; width: 1rem; height: 1rem; border: 0px solid #666;"></span>}}</span></includeonly><noinclude>
+
<includeonly><span style="position: relative; display: inline-block; border: 1px solid #666; background-color: {{{1}}}; width: 1rem; height: 1rem;">{{#if:{{{2|}}}|<span style="clip-path: polygon(0 0, 100% 0, 100% 100%); display: inline-block; position: absolute; top: 0; left: 0; background: {{{2|}}}; width: 1rem; height: 1rem; border: 0px solid #666;"></span>}}</span></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}

Revision as of 12:29, 27 July 2024

Template Info-Icon.png

Template documentation

View - Edit

Markup Renders as
{{color|black}}
{{color|gray}}
{{color|silver}}
{{color|white}}
{{color|red}}
{{color|orange}}
{{color|yellow}}
{{color|green}}
{{color|turquoise}}
{{color|blue}}
{{color|magenta}}
{{color|purple}}
{{color|#cf9cab}}

Two colors

Markup Renders as
{{color|red|yellow}}