Template:Pill
Template Documentation for Pill
Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.
Feel free to voice your opinion regarding this template.Base pill styling template used by pill variants.
Usage
Can be used standalone or as a base for other templates like Template:Pill_clickable. This template supports both positional and named parameters. If positional parameters are used, empty positions must be properly accounted as in example 10.
{{Pill|text=v3.22.x}}
{{Pill|prefix=Alpine |text=v3.22.x|border=blue|bg=lightblue|float=left}}
{{Pill||<-v3.14.x|#DF0000|#FFDFDF}}
{{Pill||v3.15.x-v3.18.x|#aaa|#eee}}
{{Pill||v3.19.x-v3.20.x|orange|goldenrod}}
{{Pill||v3.21.x|cadetblue|lightblue}}
{{Pill||v3.22.x|green|palegreen}}
{{Pill|Version:|current|purple|cornflowerblue|left}}
{{Pill||WIP|goldenrod|yellow}}
{{Pill||v3.20.x|||left}}
Parameters
| Position | Field Name | Description | Mandatory |
|---|---|---|---|
| 1 | prefix | Prefix text | optional |
| 2 | text | Main text | required |
| 3 | border | Border color | optional (default: green) |
| 4 | bg | Background color | optional (default: palegreen) |
| 5 | float | Float position | optional (default: right; use "none" for inline) |
Example
v3.22.x
Alpinev3.22.x
<-v3.14.x
v3.15.x-v3.18.x
v3.19.x-v3.20.x
v3.21.x
v3.22.x
Version:current
WIP
v3.20.x