Template:Color box striped: Difference between revisions
Jump to navigation
Jump to search
Adds a rectangular color box striped.
(remove unnecessary vendor specifics) |
m (1 revision imported) |
Latest revision as of 22:38, 12 November 2022
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | 1 | Background color of the box.
| String | required |
Stripe color | 2 | Stripe color of the box
| String | suggested |
Text | 3 | Sets the text
| String | optional |
Text color | 4 | Sets the text color
| String | optional |
Stripe width | stripe | Sets the width of the stripe.
| Number | optional |
Border color | border | Sets the color of the border around the box.
| String | optional |
Stripe degrees | degrees | Sets the degrees of the stripes.
| Number | optional |
Format: inline
Test of raw TemplateData output:
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | 1 | Background color of the box.
| String | required |
Stripe color | 2 | Stripe color of the box
| String | suggested |
Text | 3 | Sets the text
| String | optional |
Text color | 4 | Sets the text color
| String | optional |
Stripe width | stripe | Sets the width of the stripe.
| Number | optional |
Border color | border | Sets the color of the border around the box.
| String | optional |
Stripe degrees | degrees | Sets the degrees of the stripes.
| Number | optional |
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
- {{Infobox color}}, an infobox for the detailed description of a color.
- {{Legend}}