Template:Sandbox: Difference between revisions

From Alpine Linux
mNo edit summary
m (Testing ‘Issue’ template)
 
(17 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>This is the sandbox template that anyone can edit to figure out how templates work or to test a new template before deplying it...</noinclude>
<noinclude>
<noinclude>{{Template}}
An inline link to search for the given package in the Package Browser.


=== Usage ===
{{Template}}
<pre>{{Pkg|package}}</pre>


Special characters in the package name will automatically be url-encoded. "*" can be used as a wildcard.
Link to issues under the [https://gitlab.alpinelinux.org/alpine/ Alpine gitlab umbrella].


=== Examples ===
== Usage ==
<pre>{{Pkg|gtk+2.0}}</pre>
will produce:
{{Pkg|gtk+2.0}}


<nowiki>{{Issue|number|project=|description=}}</nowiki>


<pre>{{Pkg|gtk*}}</pre>
{{Define|number|Issue number.
will produce:
:This argument is '''required'''.}}
{{Pkg|gtk*}}
{{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 ==


</noinclude><includeonly>{{ #if: {{{1}}} | <span class="plainlinks" style="font-family: monospace, Courier;font-size:10pt;">[https://pkgs.alpinelinux.org/packages?name={{urlencode:{{ #if: {{{name|}}} | {{{name}}} |{{{1}}}}}}}&branch={{urlencode:{{ #if: {{{branch|}}} | {{{branch}}} | edge}}}}&repo={{urlencode:{{ #if: {{{repo|}}} | {{{repo}}}}}}}&arch={{urlencode:{{ #ifeq: {{{arch|+}}} | {{{arch|-}}} | {{{arch}}} | x86_64 }}}}&maintainer={{urlencode:{{ #if: {{{maintainer|}}} | {{{maintainer}}}}}}} {{ #if: {{{name|}}} | {{{name}}} |{{{1}}}}}]</span> | <span class="error">First parameter cannot be undefined or empty in template: <b>Template:Pkg</b></span> }}</includeonly>
<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 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