|
|
(5 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <noinclude>{{Template}} | | <noinclude>{{Template}} |
| An inline link to search for given packages in the Package Browser.
| | == Template Documentation == |
| | Link to [http://bugs.alpinelinux.org/ Alpine Issues]. |
|
| |
|
| === Usage === | | == Example == |
| <pre>{{Pkg|package|name=|branch=|repo=|arch=|maintainer=}}</pre> | | <pre>{{Issue|279}}</pre> |
|
| |
|
| {{define|package||}} or
| |
| {{define|name{{=}}|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.}}
| |
| {{define|branch{{=}}|The branch of alpine to search (e.g. "3.19" or "edge"), defaults to "edge" if unset.
| |
| :Pass this parameter with no value (i.e. "branch{{=}}") to search all branches}}
| |
| {{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}}
| |
|
| |
| === Examples ===
| |
| Search for gtk+2.0 under the edge branch on the x86_64 architecture:
| |
| <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: | | will produce: |
| {{Pkg|gtk*}} | | {{Issue|279}} |
|
| |
|
| Search for ALSA-related packages under the 3.19 branch on the x86 (i.e. i686) architecture:
| | The issue's description can be included as an optional second argument. |
| <pre>{{Pkg|name=*alsa*|branch=v3.19|arch=x86}}</pre>
| |
| will produce:
| |
| {{Pkg|name=*alsa*|branch=v3.19|arch=x86}}
| |
|
| |
|
| </noinclude><includeonly>{{#if:{{{1|}}}{{{name|}}} | <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> | | </noinclude><includeonly><span class="plainlinks">[https://gitlab.alpinelinux.org/alpine/aports/-/issues/{{{1}}} #{{{1}}}{{#if: {{{2|}}} |. {{{2}}}}}]</span></includeonly> |