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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
  
 
This is the {{tl|color strip}} template.
 
This is the {{tl|color strip}} template.
Line 6: Line 6:
 
It creates a strip of up to twenty colors.
 
It creates a strip of up to twenty colors.
  
=== Usage ===
+
== Usage ==
  
 
This template takes one or more parameters. The first twenty unnamed parameters are the names or color codes for the colors displayed in the resulting color strip.
 
This template takes one or more parameters. The first twenty unnamed parameters are the names or color codes for the colors displayed in the resulting color strip.
  
===Examples===
+
==Examples==
 
Code to the left and actual rendering to the right:
 
Code to the left and actual rendering to the right:
  
Line 21: Line 21:
 
:<code><nowiki>{{color strip|align=top|border=2|border-color=black|border-style=dotted|w=5|h=5|red|green|blue}}</nowiki></code> = {{color strip|align=top|border=2|border-color=black|border-style=dotted|w=5|h=5|red|green|blue}}
 
:<code><nowiki>{{color strip|align=top|border=2|border-color=black|border-style=dotted|w=5|h=5|red|green|blue}}</nowiki></code> = {{color strip|align=top|border=2|border-color=black|border-style=dotted|w=5|h=5|red|green|blue}}
  
 
+
==Options==
===Options===
 
 
* '''w''' is the width in ''em'' units.
 
* '''w''' is the width in ''em'' units.
 
* '''h''' is the height in ''ex'' units.
 
* '''h''' is the height in ''ex'' units.
Line 31: Line 30:
 
* '''frame''' is the frame thickness in ''px'' units.
 
* '''frame''' is the frame thickness in ''px'' units.
  
=== See also ===
+
== See also ==
* {{tl|colorbox}}
+
* {{tl|color box}}
 
* {{tl|cell}}
 
* {{tl|cell}}
 
* {{tl|cell2}}
 
* {{tl|cell2}}
Line 40: Line 39:
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Color templates]]
 
[[Category:Color templates]]
 
</includeonly>
 
</includeonly>

Revision as of 13:47, 20 October 2016

This is the {{color strip}} template.

It creates a strip of up to twenty colors.

Usage

This template takes one or more parameters. The first twenty unnamed parameters are the names or color codes for the colors displayed in the resulting color strip.

Examples

Code to the left and actual rendering to the right:

{{color strip|red|green|blue}} =    
{{color strip|w=2|red|red|green|blue|green|red|red}} =        
{{color strip|align=top|border=1|border-color=black|border-style=solid|w=2|h=2|red|green|blue}} =    
{{color strip|align=top|border=2|border-color=black|border-style=dotted|w=5|h=5|red|green|blue}} =    

Options

  • w is the width in em units.
  • h is the height in ex units.
  • border is the border thickness in px units.
  • border-color is the border color.
  • border-style is the border style: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset.
  • align is the vertical alignment: top, bottom, center.
  • frame is the frame thickness in px units.

See also