Template:Sandbox: Difference between revisions

From Alpine Linux
(testing template)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Template}}
<noinclude>{{Template}}
'''A generic message Pill.'''
 
'''A clickable message Pill (wikilink).'''
 
====Usage====
====Usage====
{{Codeline|1=<nowiki>{{Pill||<-v3.14.x|#DF0000|#FFDFDF}}</nowiki>}}
{{Codeline|1=<nowiki>{{Pill_clickable||<-v3.14.x|#DF0000|#FFDFDF||Installation}}</nowiki>}}
{{Codeline|1=<nowiki>{{Pill||v3.15.x-v3.18.x|#aaa|#eee}}</nowiki>}}
 
{{Codeline|1=<nowiki>{{Pill||v3.19.x-v3.20.x|orange|goldenrod}}</nowiki>}}
====Parameters====
{{Codeline|1=<nowiki>{{Pill||v3.21.x|cadetblue|lightblue}}</nowiki>}}
* {{{1}}} - Prefix text (optional)
{{Codeline|1=<nowiki>{{Pill||v3.22.x|green|palegreen}}</nowiki>}}
* {{{2}}} - Main text
{{Codeline|1=<nowiki>{{Pill|Version:|current|purple|cornflowerblue|left}}</nowiki>}}
* {{{3}}} - Border color
{{Codeline|1=<nowiki>{{Pill|Download:|APK|purple|cornflowerblue|left|apk}}</nowiki>}}
* {{{4}}} - Background color
{{Codeline|1=<nowiki>{{Pill||WIP|goldenrod|yellow}}</nowiki>}}
* {{{5}}} - Float position (currently unused)
* {{{6}}} - Wiki page name (required)
 
====Example====
====Example====
{{Pill||<- v3.14.x|#DF0000|#FFDFDF}}
{{Pill_clickable||v3.22.x|green|palegreen||Installation}}
{{Pill||v3.15.x-v3.18.x|#aaa|#eee}}
 
{{Pill||v3.19.x-v3.20.x|orange|goldenrod}}
</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>
{{Pill||v3.21.x|cadetblue|lightblue}}
{{Pill||v3.22.x|green|palegreen}}
{{Pill|Version:|current|purple|cornflowerblue|left}}
{{Pill|Download:|APK|purple|cornflowerblue|left|apk}}
{{Pill||WIP|goldenrod|yellow}}
</noinclude><includeonly><div style="padding: 2px; margin: 2px 2px; background-color: {{{4}}}; border: 2px solid {{{3|#000000}}}; -moz-border-radius: 1em; border-radius: 1em; float: {{{5|right}}}; font-size:80%;">'''{{#if:{{{6|}}}|[[{{{6}}}|{{{1}}}]]|{{{1}}}}}'''{{{2}}}</div></includeonly>

Latest revision as of 06:41, 7 December 2025

Template Documentation for Sandbox

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
  • {{{3}}} - Border color
  • {{{4}}} - Background color
  • {{{5}}} - Float position (currently unused)
  • {{{6}}} - Wiki page name (required)

Example

v3.22.x