Template:Sandbox: Difference between revisions

From Alpine Linux
m (Testing ‘Issue’ template)
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{Template}}


{{Template}}
'''A clickable message Pill (wikilink).'''


Link to issues under the [https://gitlab.alpinelinux.org/alpine/ Alpine gitlab umbrella].
====Usage====
{{Codeline|1=<nowiki>{{Pill_clickable||<-v3.14.x|#DF0000|#FFDFDF||Installation}}</nowiki>}}


== Usage ==
====Parameters====
* {{{1}}} - Prefix text (optional)
* {{{2}}} - Main text
* {{{3}}} - Border color
* {{{4}}} - Background color
* {{{5}}} - Float position (currently unused)
* {{{6}}} - Wiki page name (required)


<nowiki>{{Issue|number|project=|description=}}</nowiki>
====Example====
{{Pill_clickable||v3.22.x|green|palegreen||Installation}}


{{Define|number|Issue number.
</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>
:This argument is '''required'''.}}
{{Define|project{{=}}|Project under {{Ic|https://gitlab.alpinelinux.org/alpine/}} to which the issue belongs.
:This argument is '''optional''', defaults to {{Ic|aports}}.}}
{{Define|description{{=}}|Description for the issue, for example, what the issue title is.
:This argument is '''optional'''.}}
 
== Examples ==
 
<nowiki>{{Issue|10516}}</nowiki>
 
Produces: {{Issue|10516}}
 
<nowiki>{{Issue|5|project=docs/user-handbook}}</nowiki>
 
Produces: {{Issue|5|project=docs/user-handbook}}
 
  <nowiki>{{Issue|10516|description=libreoffice is built without Wayland support}}</nowiki>
 
Produces: {{Issue|10516|description=libreoffice is built without Wayland support}}
 
  <nowiki>{{Issue|10516|project=alpine-conf|description=Boot partition only has enough space for one kernel}}</nowiki>
 
Produces: {{Issue|10516|project=alpine-conf|description=Boot partition only has enough space for one kernel}}
 
</noinclude>
<includeonly><span class="plainlinks">
[https://gitlab.alpinelinux.org/alpine/{{#if: {{{project|}}} | {{{project}}} | aports}}/-/issues/{{{1}}} {{{project|}}} #{{{1}}}{{#if: {{{description|}}} |<nowiki>:</nowiki> {{{description}}}}}]
</span></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