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
(Created page with "<noinclude>To use: enter the correct hex code to generate a small block of color. Do not include the # sign. Blank template: <pre> {{ColorSwatch | hex = }} </pre></noinclud...")
 
 
(One intermediate revision by one user not shown)
Line 7: Line 7:
 
| hex =  
 
| hex =  
 
}}
 
}}
</pre></noinclude>
+
</pre>
  
<includeonly>
+
Blank template, with border:
  
<div style="padding: 30px; width: 200px; height:200px; background: #{{{hex}}};"></div>
+
<pre>
 +
{{ColorSwatch
 +
| hex =
 +
| border = true
 +
}}
 +
</pre>
  
</includeonly>
+
</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
}}