Difference between revisions of "Template:HexColor"

From Golly.Life Wiki

 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="color: #{{{1}}};"><nowiki>#</nowiki>{{{1}}}</span></includeonly><noinclude>
+
<includeonly><span style="color: #{{{1}}}; font-family: monospace, monospace;">'''<nowiki>#</nowiki>{{{1}}}'''</span></includeonly><noinclude>
 
{{Tl|HexColor}} is a template for including a color by hex code, and having the hex code colored with the color itself.
 
{{Tl|HexColor}} is a template for including a color by hex code, and having the hex code colored with the color itself.
  
Example:
+
Example with Sunbeams Yellow:
  
 
<pre>
 
<pre>
 
{{HexColor|ffe266}}
 
{{HexColor|ffe266}}
 
</pre>
 
</pre>
 +
 +
Renders as:
  
 
{{HexColor|ffe266}}
 
{{HexColor|ffe266}}
 +
 +
[[Category:Colors]]
 +
</noinclude>

Latest revision as of 23:59, 7 January 2023

{{HexColor}} is a template for including a color by hex code, and having the hex code colored with the color itself.

Example with Sunbeams Yellow:

{{HexColor|ffe266}}

Renders as:

#ffe266