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