Template:Sandbox: Difference between revisions

From Alpine Linux
m (Add documentation...)
m (Testing ‘Issue’ template)
 
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}} | short = 3.20 | v = v3.20 | 3.20.3 }}</includeonly>
<noinclude>
<noinclude><!--                          ^^^^      ^^^^^  ^^^^^^
When updating this template, the latest version string must be changed three times, two lines above this comment
The first is the short version (major.minor)
The second is the short version prefixed with a lowercase v (vmajor.minor)
The final is the full version string (major.minor.patchlevel)--></noinclude>
<noinclude>{{Template}}
This template produces a string containing the latest version of Alpine Linux


=== Usage ===
{{Template}}
<pre>{{AlpineLatest|short|v}}</pre>


{{define|short|The string produced will only contain the minor and major version}}
Link to issues under the [https://gitlab.alpinelinux.org/alpine/ Alpine gitlab umbrella].
{{define|v|The string produced will only contain the minor and major version prefixed with a v}}


This template will only accept one parameter at a time, all parameters are optional.<br>
== Usage ==
If no parameters are supplied, or the parameters which are supplied are invalid, the full version string (minor.major.patchlevel) will be produced.


=== Examples ===
<nowiki>{{Issue|number|project=|description=}}</nowiki>
Display the full version string of the latest Alpine Linux stable:
<pre>{{AlpineLatest}}</pre>
will produce:
{{AlpineLatest}}


Display the short version string of the latest Alpine Linux stable:
{{Define|number|Issue number.
<pre>{{AlpineLatest|short}}</pre>
:This argument is '''required'''.}}
will produce:
{{Define|project{{=}}|Project under {{Ic|https://gitlab.alpinelinux.org/alpine/}} to which the issue belongs.
{{AlpineLatest|short}}
: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}}


Display the short version string of the latest Alpine Linux stable, prefixed with v:
<pre>{{AlpineLatest|v}}</pre>
will produce:
{{AlpineLatest|v}}
</noinclude>
</noinclude>
<!--If you're updating the string containing the latest version of Alpine, go to the top!-->
<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 09:33, 20 November 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.

Link to issues under the Alpine gitlab umbrella.

Usage

{{Issue|number|project=|description=}}

number
Issue number.
This argument is required.

project=
Project under https://gitlab.alpinelinux.org/alpine/ to which the issue belongs.
This argument is optional, defaults to aports.

description=
Description for the issue, for example, what the issue title is.
This argument is optional.

Examples

{{Issue|10516}}

Produces: #10516

{{Issue|5|project=docs/user-handbook}}

Produces: #5

 {{Issue|10516|description=libreoffice is built without Wayland support}}

Produces: #10516

 {{Issue|10516|project=alpine-conf|description=Boot partition only has enough space for one kernel}}

Produces: #10516