Error message when text parameter is missing: No text provided
Copy and paste the template below:
{{Linear-gradient background | <!-- Background color 1 --> | <!-- Background color 2 --> | <!-- Background color 3 --> | <!-- Background color 4 --> | <!-- Background color 5 --> | <!-- Background color 6 --> | <!-- Background color 7 --> | <!-- Background color 8 --> | <!-- Background color 9 --> | <!-- Background color 10 --> | <!-- Background color 11 --> | <!-- Background color 12 --> | <!-- Background color 13 --> | <!-- Background color 14 --> | <!-- Background color 15 --> | <!-- Background color 16 --> | <!-- Background color 17 --> | <!-- Background color 18 --> | <!-- Background color 19 --> | <!-- Background color 20 --> | text = | direction = | alt bg color = }}
For better understanding see Examples & TemplateData below.
{{Linear-gradient background | #ff99aa | text = Hello, World! | direction = right | alt bg color = lime }}
{{Linear-gradient background | #ff99aa | cyan | text = Hello, World! | direction = right | alt bg color = lime }}
{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | text = Hello, World! | direction = top | alt bg color = #F0E68C }}
{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | text = Hello, World! | direction = right | alt bg color = #777777 }}
{{big|{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | #ffaa00| #008888 | text = Welcome to Wikipedia! | direction = top left | alt bg color = purple }}}}
text
parameter.{{big|{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | #ffaa00| #008888 | text = {{color|white|Welcome to Wikipedia!}} | direction = top left | alt bg color = purple }}}}
text
parameter can substituted by 21
, direction
parameter by 22
and alt bg color
parameter by 23
. For example:{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | 21 = Hello, World! | 22 = right | 23 = purple }}
{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | #ff99aa | #55ff00 | red | #0000ff | green | #ff99aa | #55ff00 | text = {{color|white|Abraham Lincoln was an American lawyer and statesman who served as the 16th president of the United States.}} | direction = right | alt bg color = purple }}
text
parameter in it, it returns a default error message.{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | direction = right | alt bg color = purple }}
direction
parameter in it, it defaults to right direction.{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | text = Welcome to Wikipedia! | alt bg color = purple }}
alt text color
parameter in it, it defaults to black color.{{Linear-gradient background | #ff99aa | text = Welcome to Wikipedia! }}
in the text
parameter. The use of this feature is strongly discouraged outside of Wikipedia:Department of Fun & Userspace pages. Here, it is used 20 times, you can use it as many times as you wish to create a length as per your choice.{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | #ff99aa | #55ff00 | red | #0000ff | green | #ff99aa | #55ff00 | text = | direction = right | alt bg color = purple }}
text
parameter. The text to be hidden must be provided at the end. Here, we have a hidden text for you. The use of this feature is strongly discouraged outside of Wikipedia:Department of Fun & Userspace pages.{{Linear-gradient background | #ff99aa | #55ff00 | #bb44ff | #ff99aa | #55ff00 | red | #0000ff | green | #ff99aa | #55ff00 | text = {{color|transparent|<!-- You have to decipher the hidden text by yourself. So, this remains blank. XD. -->}} | direction = right | alt bg color = purple }}
Displays a background using multiple colors which gradually phases from one color to another.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background color 1 | 1 | First background color
| Line | optional |
Background color 2 | 2 | Second background color
| Line | optional |
Background color 3 | 3 | Third background color
| Line | optional |
Background color 4 | 4 | Fourth background color
| Line | optional |
Background color 5 | 5 | Fifth background color
| Line | optional |
Background color 6 | 6 | Sixth background color
| Line | optional |
Background color 7 | 7 | Seventh background color
| Line | optional |
Background color 8 | 8 | Eighth background color
| Line | optional |
Background color 9 | 9 | Ninth background color
| Line | optional |
Background color 10 | 10 | Tenth background color
| Line | optional |
Background color 11 | 11 | Eleventh background color
| Line | optional |
Background color 12 | 12 | Twelfth background color
| Line | optional |
Background color 13 | 13 | Thirteenth background color
| Line | optional |
Background color 14 | 14 | Fourteenth background color
| Line | optional |
Background color 15 | 15 | Fifteenth background color
| Line | optional |
Background color 16 | 16 | Sixteenth background color
| Line | optional |
Background color 17 | 17 | Seventeenth background color
| Line | optional |
Background color 18 | 18 | Eighteenth background color
| Line | optional |
Background color 19 | 19 | Nineteenth background color
| Line | optional |
Background color 20 | 20 | Twentieth background color
| Line | optional |
Text | text 21 | The text that is to be shown
| String | required |
Direction | direction 22 | Direction of background color flow, i.e., the list of colors appear to be moving in that direction, see Examples above
| Line | suggested |
Alternate background color | alt bg color 23 | Backgound color, if browser is unable to render the linear-gradient
| Line | suggested |