Template:Colorsquare: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="background-color: {{{1}}}; height: 12px; width: 12px; float: left; margin-top: 4px; border: 2px solid | <div style="background-color: {{{1}}}; height: 12px; width: 12px; float: left; margin-top: 4px; border: 2px solid {{{2}}};"> </div> | ||
<noinclude | <noinclude>This template makes a little colored square, where the inside of the box as well as it's border can be customized with any color.<br />The syntax of this template is as follows: <code><nowiki>{{colorsquare|box color|border color}}</nowiki></code><br /> | ||
Making a list with these squares can misalign themselves or break pages, so a lot of finesse is needed when using these.<br /> | |||
It's also advised to use <code>& nbsp;</code> (with no space between the ampersand and the 'n'. As spaces after the templates can further break things. | |||
[[Category:Templates]]</br /><br /> | [[Category:Templates]]</br /><br /> | ||
Here's some crude examples of how this can looks. | |||
{| class="wikitable" style="width: 900px;" | {| class="wikitable" style="width: 900px;" | ||
|- | |- | ||
Line 13: | Line 15: | ||
|} | |} | ||
{{colorsquare|red|orange}}Text 4 | |||
{{colorsquare|purple|pink}}Text 5 | |||
{{colorsquare|red|orange}}Text | {{colorsquare|lime|green}}Text 6 | ||
{{colorsquare| | |||
{{colorsquare| | |||
</noinclude> | </noinclude> |
Revision as of 16:00, 2 July 2021
This template makes a little colored square, where the inside of the box as well as it's border can be customized with any color.
The syntax of this template is as follows: {{colorsquare|box color|border color}}
Making a list with these squares can misalign themselves or break pages, so a lot of finesse is needed when using these.
It's also advised to use & nbsp;
(with no space between the ampersand and the 'n'. As spaces after the templates can further break things.
Here's some crude examples of how this can looks.
Text 1 |
Text 2 |
Text 3 |
Text 4
Text 5
Text 6