Template:Sandbox: Difference between revisions

From Alpine Linux
m (Modify arch parameter handling)
m (urlencode everything separately... maybe.)
Line 19: Line 19:




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

Revision as of 20:35, 28 December 2023

This is the sandbox template that anyone can edit to figure out how templates work or to test a new template before deplying it...

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 the given package in the Package Browser.

Usage

{{Pkg|package}}

Special characters in the package name will automatically be url-encoded. "*" can be used as a wildcard.

Examples

{{Pkg|gtk+2.0}}

will produce: gtk+2.0


{{Pkg|gtk*}}

will produce: gtk*