Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Color box striped/doc: Difference between revisions

Template page
m →‎top: {{For2}} to {{For-text}} per RfD; otherr general fixes
 
m 1 revision imported
 
(No difference)

Latest revision as of 23:56, 9 June 2024

Template:For-text

Usage

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

Color box templates Template:VTE
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}} orangeTemplate:Ensure AAA contrast ratio
{{Rail color box}} A version with more display options. Part of Module:Adjacent stations Lua error: expandTemplate: template "Taipei Metro color" does not exist., Lua error: expandTemplate: template "San Diego Trolley color" does not exist.
{{Diagonal split color box}} Color box split diagonally. Standard size.
   
   

Supporting template

See also