Difference between revisions of "Template:Aport"

From postmarketOS
Jump to: navigation, search
(Example)
 
Line 1: Line 1:
 
<noinclude>{{Template:Template}}{{DISPLAYTITLE:Template:Aport}}
 
<noinclude>{{Template:Template}}{{DISPLAYTITLE:Template:Aport}}
  
Link to a gitlab merge request by specifying:
+
=== Usage ===
* <code>name</code> of the package
+
<pre>{{Aport|package}}</pre>
* <code>component</code> of the package (defaults to main)
 
* <code>architecture</code> (defaults to aarch64)
 
* <code>branch</code> (defaults to edge)
 
  
==Usage==
+
Special characters in the package name will automatically be url-encoded. "*" can be used as a wildcard.
  <nowiki>{{Aport|name|component|architecture|branch}}</nowiki>
 
  
==Example==
+
=== Examples ===
 +
<pre>{{Aport|gtk+2.0}}</pre>
 +
will produce:
 +
{{Aport|gtk+2.0}}
  
<nowiki>{{Aport|linux-vanilla}}</nowiki>
 
{{Aport|linux-vanilla|main}}
 
  
<nowiki>{{Aport|linux-vanilla|main|armv7|v3.9}}</nowiki>
+
<pre>{{Aport|gtk*}}</pre>
{{Aport|linux-vanilla|main|armv7|v3.9}}
+
will produce:
 +
{{Aport|gtk*}}
  
</noinclude><includeonly>[https://pkgs.alpinelinux.org/package/{{{4|edge}}}/{{{2|main}}}/{{{3|aarch64}}}/{{{1}}} {{{1}}}({{{3|aarch64}}})]</includeonly>
+
 
 +
</noinclude><includeonly><span class="plainlinks" style="font-family: monospace, Courier;font-size:10pt;">[https://pkgs.alpinelinux.org/packages?name={{urlencode:{{{1}}}}}&branch=edge&repo=&arch=x86_64&maintainer= {{{1}}}]</span></includeonly>

Latest revision as of 07:11, 6 October 2019

This page is a template. It contains no postmarketOS-related information, but should be used as part of other articles.

Check out all pages using this template and feel free to discuss it in the gitlab issues.

For more information, read Templates and Template:Template.

Usage

{{Aport|package}}

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

Examples

{{Aport|gtk+2.0}}

will produce: gtk+2.0


{{Aport|gtk*}}

will produce: gtk*