This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Template:ColorSwatch"

From Project 1999 Wiki
Jump to: navigation, search
 
Line 7: Line 7:
 
| hex =  
 
| hex =  
 
}}
 
}}
</pre></noinclude><includeonly>
+
</pre>
  
<div style="padding: 30px; width: 200px; height:200px; background: #{{{hex}}};"></div></includeonly>
+
Blank template, with border:
 +
 
 +
<pre>
 +
{{ColorSwatch
 +
| hex =
 +
| border = true
 +
}}
 +
</pre>
 +
 
 +
</noinclude><includeonly>
 +
 
 +
<div style="padding: 30px; width: 200px; height:200px; {{#if: {{{border|}}} |border: 1px solid black; |}}background: #{{{hex}}};"></div></includeonly>

Latest revision as of 22:21, 5 December 2019

To use: enter the correct hex code to generate a small block of color. Do not include the # sign.

Blank template:

{{ColorSwatch
| hex = 
}}

Blank template, with border:

{{ColorSwatch
| hex = 
| border = true
}}