[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]
Difference between revisions of "Template:ColorSwatch"
From Project 1999 Wiki
(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 | + | </pre> |
− | + | Blank template, with border: | |
− | < | + | <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 }}