Template:Sandbox: Difference between revisions

From Alpine Linux
m (Corrected documentation for branch parameter.)
 
(52 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Template}}
<noinclude>{{Template}}
An inline link to search for given packages in the Package Browser.


=== Usage ===
<pre>{{Pkg|package|branch=|repo=|arch=|maintainer=}}</pre>


== [[Image:Newspaper_Cover.svg‎|32px|link=]] Recent News ==
{{define|package|The package name to search for.
{{Sandbox|2010-07-16 Alpine 2.0.0 Beta3 released|
:Special characters in the package name will automatically be urlencoded. "*" and "?" can be used as wildcards.
This is the first announced beta release for v2.0 series. See [[Release Notes for Alpine 2.0.0_beta3]] for more details of the release.
:This argument is required, if you're not using it, use the "*" wildcard.}}
|[[User:ncopa|ncopa]] 20:58, 16 July 2010 (GMT)
{{define|branch{{=}}|The branch of alpine to search (e.g. "3.19" or "edge"), defaults to "edge" if unset.}}
}}
{{define|repo{{=}}|The repository to search (main, community, or testing). If unspecified all repositories will be searched.}}
{{define|arch{{=}}|The architecture to search (x86_64, x86, aarch64, armhf, ppc64le, s390x, armv7, or risc64). Defaults to x86_64 if unset.
:Pass this parameter with no value (i.e. "arch{{=}}") to search all arches.}}
{{define|maintainer{{=}}|Search for packages with a certain maintainer. (e.g. "None" to search for unmaintained packages) If unspecified packages from all maintainers will be searched}}


{{Sandbox|2010-07-16 Alpine 2.0.0 Beta3 released|
=== Examples ===
This is the first announced beta release for v2.0 series. See [[Release Notes for Alpine 2.0.0_beta3]] for more details of the release.
Search for gtk+2.0 under the edge branch on the x86_64 architecture:
|[[User:ncopa|ncopa]] 20:58, 16 July 2010 (GMT)
<pre>{{Pkg|gtk+2.0}}</pre>
}}
will produce:
{{Pkg|gtk+2.0}}


Search for all gtk packages under the edge branch on the x86_64 architecture:
<pre>{{Pkg|gtk*}}</pre>
will produce:
{{Pkg|gtk*}}


</noinclude><onlyinclude>
Search for ALSA-related packages under the 3.19 branch on the x86 (i.e. i686) architecture:
<span class="editsection plainlinks" id="doc_editlinks">[[{{fullurl:News_talk:{{{1}}}|}} Discuss]]</span>
<pre>{{Pkg|*alsa*|branch=v3.19|arch=x86}}</pre>
<h5>{{{1}}}</h5>
will produce:
{{{2}}}
{{Pkg|*alsa*|branch=v3.19|arch=x86}}
<div style="text-align: right;">{{{3}}}</div>
----
</onlyinclude>


 
</noinclude><includeonly>{{#if:{{{1|}}} | <span class="plainlinks" style="font-family: monospace, Courier;font-size:10pt;">[https://pkgs.alpinelinux.org/packages?name={{urlencode:{{{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}}}}}}} {{{1}}}]</span> | <span class="error">First parameter cannot be undefined or empty in template: <b>Template:Pkg</b></span>}}</includeonly>
== Note ==
<noinclude>{{Template}}
 
'''A 'Note' box used to emphasize important information.'''
 
====Usage====
 
{{Codeline|1=<nowiki>{{Note|This text should be noted, with a [[link to nowhere]] or a [[Special:Version| link to that works]].}}</nowiki>}}
 
====Example====
 
{{Note|This text should be noted, with a [[link to nowhere]] or a [[Special:Version| link to that works]].}}</noinclude><includeonly>{{Box BLUE|Note:|{{{1}}}}}</span></includeonly>

Latest revision as of 18:17, 28 May 2024

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.

An inline link to search for given packages in the Package Browser.

Usage

{{Pkg|package|branch=|repo=|arch=|maintainer=}}

package
The package name to search for.
Special characters in the package name will automatically be urlencoded. "*" and "?" can be used as wildcards.
This argument is required, if you're not using it, use the "*" wildcard.

branch=
The branch of alpine to search (e.g. "3.19" or "edge"), defaults to "edge" if unset.

repo=
The repository to search (main, community, or testing). If unspecified all repositories will be searched.

arch=
The architecture to search (x86_64, x86, aarch64, armhf, ppc64le, s390x, armv7, or risc64). Defaults to x86_64 if unset.
Pass this parameter with no value (i.e. "arch=") to search all arches.

maintainer=
Search for packages with a certain maintainer. (e.g. "None" to search for unmaintained packages) If unspecified packages from all maintainers will be searched

Examples

Search for gtk+2.0 under the edge branch on the x86_64 architecture:

{{Pkg|gtk+2.0}}

will produce: gtk+2.0

Search for all gtk packages under the edge branch on the x86_64 architecture:

{{Pkg|gtk*}}

will produce: gtk*

Search for ALSA-related packages under the 3.19 branch on the x86 (i.e. i686) architecture:

{{Pkg|*alsa*|branch=v3.19|arch=x86}}

will produce: *alsa*