Template:Color box striped/doc: Difference between revisions

Jump to navigation Jump to search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 22:38, 12 November 2022

Template:For2

Usage

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.
ParameterDescriptionTypeStatus
Color1
Background color of the box.
Example
Green
Stringrequired
Stripe color2
Stripe color of the box
Default
white
Example
blue
Stringsuggested
Text3
Sets the text
Example
Loren ipsum
Stringoptional
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
Stringoptional
Stripe widthstripe
Sets the width of the stripe.
Default
1
Example
2
Numberoptional
Border colorborder
Sets the color of the border around the box.
Default
black
Example
#FF0
Stringoptional
Stripe degreesdegrees
Sets the degrees of the stripes.
Default
-45
Example
180
Numberoptional

Format: inline

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

Template Description Example
{{Color box}} a small color box with black borders and text color   or  ORANGE 
{{RouteBox}} a borderless version with text color and wikilinks  ORANGE 
{{Colorbull}} a colored bullet with wikilinks
{{Legend2}} another borderless version   
{{Color sample}} a small color box with black borders
{{Swatch inline}} orange
{{Background color}} orange

Supporting template

See also