Template:Sandbox: Difference between revisions

From Alpine Linux
m (Modify arch parameter handling)
m (That should do it.)
 
(15 intermediate revisions by the same 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>{{Template}}
<noinclude>{{Template}}
An inline link to search for the given package in the Package Browser.
== Template Documentation ==
Link to [http://bugs.alpinelinux.org/ Alpine Issues].


=== Usage ===
== Example ==
<pre>{{Pkg|package}}</pre>
<pre>{{Issue|279}}</pre>


Special characters in the package name will automatically be url-encoded. "*" can be used as a wildcard.
=== Examples ===
<pre>{{Pkg|gtk+2.0}}</pre>
will produce:
{{Pkg|gtk+2.0}}
<pre>{{Pkg|gtk*}}</pre>
will produce:
will produce:
{{Pkg|gtk*}}
{{Issue|279}}


The issue's description can be included as an optional second argument.


</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">[https://gitlab.alpinelinux.org/alpine/aports/-/issues/{{{1}}} #{{{1}}}{{#if: {{{2|}}} |. {{{2}}}}}]</span></includeonly>

Latest revision as of 23:58, 9 January 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.

Template Documentation

Link to Alpine Issues.

Example

{{Issue|279}}

will produce: #279

The issue's description can be included as an optional second argument.