Template:Colorsquare/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{documentation |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. Making a list with these squ...") |
No edit summary |
||
Line 6: | Line 6: | ||
Output:<br>{{colorsquare|purple|yellow}} Some wicked text.<br> | Output:<br>{{colorsquare|purple|yellow}} Some wicked text.<br> | ||
<code><nowiki>{{colorsquare|#88ffff|#777777}} Still wicked text.</nowiki></code><br> | <code><nowiki>{{colorsquare|#88ffff|#777777}} Still wicked text.</nowiki></code><br> | ||
{{colorsquare|#88ffff|#777777}} Still wicked text.}} | {{colorsquare|#88ffff|#777777}} Still wicked text.}}<noinclude>[[Category:Doc templates]]</noinclude> |
Latest revision as of 22:40, 18 November 2021
Template Documentation
Description
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. 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
(with no space between the ampersand and the 'n'. As spaces after the templates can further break things.
Note: Using this template in a table or div will misalign the color squares and any text next to it. Template:Colorsquare2 can be used for different alignments.
Syntax
{{colorsquare|box color|border color}}
Examples
{{colorsquare|purple|yellow}} Some wicked text.
Some wicked text.
{{colorsquare|#88ffff|#777777}} Still wicked text.
Still wicked text.