Template:Pill clickable: Difference between revisions
Prabuanand (talk | contribs) (creating a clickable message Pill) |
Prabuanand (talk | contribs) (added back float position) |
||
| Line 8: | Line 8: | ||
====Parameters==== | ====Parameters==== | ||
* {{{1}}} - Prefix text (optional) | * {{{1}}} - Prefix text (optional) | ||
* {{{2}}} - Main text | * {{{2}}} - Main text (also used as link display text) | ||
* {{{3}}} - Border color | * {{{3}}} - Border color | ||
* {{{4}}} - Background color | * {{{4}}} - Background color | ||
* {{{5}}} - Float position ( | * {{{5}}} - Float position (left/right, default: right) | ||
* {{{6}}} - Wiki page name (required) | * {{{6}}} - Wiki page name/anchor (required) | ||
====Example==== | ====Example==== | ||
{{Pill_clickable||v3.22.x|green|palegreen||Installation}} | {{Pill_clickable||v3.22.x|green|palegreen||Installation}} | ||
</noinclude><includeonly><span style="padding:2px;background-color:{{{4}}};border:2px solid:{{{3}}};border-radius:1em;display:inline-block;font-size:80%;">[https://wiki.alpinelinux.org/wiki/{{{6}}} <strong>{{{1}}}</strong>{{{2}}}]</span></includeonly> | </noinclude><includeonly><span style="padding:2px;background-color:{{{4}}};border:2px solid:{{{3}}};border-radius:1em;float:{{{5|right}}};display:inline-block;font-size:80%;">[https://wiki.alpinelinux.org/wiki/{{{6}}} <strong>{{{1}}}</strong>{{{2}}}]</span></includeonly> | ||
Revision as of 06:54, 7 December 2025
Template Documentation for Pill clickable
This page is a template and should only be used as part of other articles. For more information, read Help:Template.
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.A clickable message Pill (wikilink).
Usage
{{Pill_clickable||<-v3.14.x|#DF0000|#FFDFDF||Installation}}
Parameters
- {{{1}}} - Prefix text (optional)
- {{{2}}} - Main text (also used as link display text)
- {{{3}}} - Border color
- {{{4}}} - Background color
- {{{5}}} - Float position (left/right, default: right)
- {{{6}}} - Wiki page name/anchor (required)
Example