Template:Sandbox: Difference between revisions

From Alpine Linux
m (Testing a new version of the unsigned template which is easier to use.)
m (This is a test at potentially improving the pkg template)
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>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}}
An inline link to search for the given package in the Package Browser.


<includeonly><small><span class="autosigned">—&nbsp;Preceding [[Help:Signature|unsigned]] comment added by [[User:{{#titleparts:{{{1}}}| | -1 }}|{{#titleparts:{{{1}}}| | -1 }}]] ([[User talk:{{#titleparts:{{{1}}}| | -1 }}|{{int:talkpagelinktext}}]] • [[Special:Contributions/{{#titleparts:{{{1}}}| | -1 }}|{{int:contribslink}}]]) {{#titleparts:{{{1}}}| -1 }}</span></small></includeonly>
=== Usage ===
<pre>{{Pkg|package}}</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:
{{Pkg|gtk*}}
 
 
</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={{{repo}}}&arch={{ #if: {{{arch|}}} | {{{arch}}} | x86_64}}&maintainer={{{maintainer}}} {{{1}}}}}]</span></includeonly>

Revision as of 19:34, 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*