Jump to content

Template:Color box striped/doc

From Wikipedia, the free encyclopedia

Usage

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Color box striped in articles based on its TemplateData.

TemplateData for Color box striped

{{color box striped|color|stripe color|text|text color|stripe = |border = |degrees = }}
Adds a rectangular color box striped.
  • Colors are most commonly specified as either a color keyword or as the hexadecimal triplet representing an RGB combination. See the article web colors for details.
  • If specified, the text is centered within the box.
Color1
Background color of the box.
Example
Green
Stripe color2
Stripe color of the box
Default
white
Example
blue
Text3
Sets the text
Example
Loren ipsum
Text color4
Sets the text color
Default
Either black or white or background color or stripe color if exists; whichever has greater contrast.
Example
red
Stripe widthstripe
Sets the width of the stripe.
Default
1
Example
2
Border colorborder
Sets the color of the border around the box.
Default
black
Example
#FF0
Stripe degreesdegrees
Sets the degrees of the stripes.
Default
-45
Example
180
Examples
Visual effect Markup
     {{color box striped|Green}}
     {{color box striped|Yellow|Green}}
     {{color box striped|Blue|Green|degrees=180}}
     {{color box striped|Blue|Red|striped =2}}
 Using X11 color names  {{color box striped|SteelBlue|Gold|'''Using X11 color names'''}}
 Using RGB hex triplets  {{color box striped|#012345|#FEDCBA|''Using RGB hex triplet''}}
 Red  {{color box striped|Gray|Yellow|Red|#f00|border=#f00}}
 bordercolor like wikitable  {{color box striped|purple||bordercolor like wikitable|border=#A2A9B1}}

Variants

[edit]
Color box templates
Template Description Example
{{Color box}} Color box size with black borders and text color. Standard size.   or  ORANGE 
{{Color box striped}} Striped color box. Standard size.     
{{RouteBox}} Borderless color box with text color and wikilinks.  ORANGE 
{{Colorbull}} Colored bullet with wikilinks.
{{Legend inline}} Color box size with black borders. Standard size.   
{{Color sample}} Color box size with black borders. Smaller size.
{{Swatch inline}} orange
{{Background color}} orange
{{Rail color box}} A version with more display options. Part of Module:Adjacent stations , Orange
{{Diagonal split color box}} Color box split diagonally. Standard size.
   
   

Supporting template

[edit]

See also

[edit]