More actions
Removing an unecessary line break and a space that hampers text right next to the box. |
m 1 revision imported |
||
(No difference)
|
Latest revision as of 23:56, 9 June 2024
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.
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}} | 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
- {{Infobox color}}, an infobox for the detailed description of a color.
- {{Legend}}