Template:Color square: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="width:{{{width|{{{size|1rem}}}}}};height:{{{height|{{{size|1rem}}}}}};background: | <includeonly><span style="width:{{{width|{{{size|1rem}}}}}};height:{{{height|{{{size|1rem}}}}}};background:{{{1|none}}};{{#if:{{{border|{{{2|}}}}}}|border:{{{border-width|1px}}} solid {{{2|#000}}};}}border-radius:{{{border-radius|0.4rem}}};display:inline-block;vertical-align:middle"></span></includeonly><noinclude> | ||
This template displays a colored square which can be used alongside text for illustrative purposes. Inspired by the [[inkipedia:Template:Ink|Ink template on Inkipedia]]. | This template displays a colored square which can be used alongside text for illustrative purposes. Inspired by the [[inkipedia:Template:Ink|Ink template on Inkipedia]]. | ||
Latest revision as of 20:45, February 5, 2025
This template displays a colored square which can be used alongside text for illustrative purposes. Inspired by the Ink template on Inkipedia.
Usage
{{color square|blue}}
{{color square|#FA0E24|black}}
About
The first parameter is the background color and an optional second parameter adds a border of the specified color (alternatively, a border=true
parameter can be used to add a black border).