Template:Color square: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Protected "Template:Color square" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style="width:{{{width|1rem}}};height:{{{height|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]]. | ||
==Usage== | ==Usage== | ||
Line 10: | Line 8: | ||
<code><nowiki>{{color square|#FA0E24|black}}</nowiki></code> | <code><nowiki>{{color square|#FA0E24|black}}</nowiki></code> | ||
:{{color square|#FA0E24|black}} | :{{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 <code>border=true</code> parameter can be used to add a black border). | |||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
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).