Difference between revisions of "Template:Colorsample2"

From blackwiki
Jump to navigation Jump to search
imported>Jacobolus
imported>Jdaloner
m (Updated template name.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="display:inline-block;width:1em;height:1em;border:1px solid {{{border|black}}};background:{{{1}}};position:relative;top:.25em;">&emsp;</span><noinclude>
+
<span style="display:inline-block;width:1em;height:.8em;border:1px solid {{{border|black}}};background:{{{1}}};position:relative;top:.15em;" title="{{{1}}}">&emsp;</span><noinclude>
 
{{documentation|content=
 
{{documentation|content=
  
This is similar to [[Template:Colorsample]], but lowers the square slightly so that it is closer to centered with the text, and doesn't unbalance lines upward.
+
This is similar to [[Template:Colorsample]], but shrinks the square slightly into a rectangle and lowers it so that it is closer to centered with the text, and doesn't unbalance lines upward.
  
 
==Usage==
 
==Usage==
Line 11: Line 11:
 
==See also==
 
==See also==
 
*[[Template:Colorsample]]
 
*[[Template:Colorsample]]
*[[Template:Swatch-inline]]
+
*[[Template:Swatch inline]]
 
*[[Template:Swatch]]
 
*[[Template:Swatch]]
 
*[[List of colors]]
 
*[[List of colors]]
  
 
}}
 
}}
 +
 +
[[Category:Color templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:43, 16 October 2018

50px Template documentation

This is similar to Template:Colorsample, but shrinks the square slightly into a rectangle and lowers it so that it is closer to centered with the text, and doesn't unbalance lines upward.

Usage

  • {{Colorsample2|red}} Gives:
  • {{Colorsample2|#00FF00}} Gives:

See also