Difference between revisions of "Template:Color test/doc"

From blackwiki
Jump to navigation Jump to search
imported>Liam987
(Created page with '{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == This template is intended to be used for showing a test ...')
 
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
  
 
== Usage ==
 
== Usage ==
This template is intended to be used for showing a test of a color. For example, {{tlc|color test|#808000}} becomes {{color test|#808000}} and {{tlc|color test|orange}} becomes {{color test|orange}}.  
+
This template is intended to be used for showing a test of a color. For example, {{tlc|color test|#808000}} becomes {{color test|#808000}} and {{tlc|color test|orange}} becomes {{color test|orange}}. This template differs from similar templates in that it does not take any parameters for text. It is intended only for (usually on talk pages) demonstrating a color. It could also be used on articles about colors.
 +
 
 +
This template can takes one additional parameters:
 +
* '''size''' controls the width of the patch of color, for example {{tlc|color test|#850000|size{{=}}3}} becomes {{color test|#850000|size=3}} and {{tlc|color test|#00FF00|size{{=}}14}} becomes {{color test|#00FF00|size=14}}. The size number is the number of spaces in the template (using the {{tl|spaces}} template). Each unit is this size: {{color test|purple|size=1}}.
  
 
== See also ==
 
== See also ==
Line 11: Line 14:
 
*{{tl|color box}}
 
*{{tl|color box}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Color templates]]
 
[[Category:Color templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 15:39, 24 April 2020

Usage

This template is intended to be used for showing a test of a color. For example, {{color test|#808000}} becomes          and {{color test|orange}} becomes         . This template differs from similar templates in that it does not take any parameters for text. It is intended only for (usually on talk pages) demonstrating a color. It could also be used on articles about colors.

This template can takes one additional parameters:

  • size controls the width of the patch of color, for example {{color test|#850000|size=3}} becomes     and {{color test|#00FF00|size=14}} becomes               . The size number is the number of spaces in the template (using the {{spaces}} template). Each unit is this size:  .

See also