Difference between revisions of "Template:AUR"

From ArchWiki
Jump to: navigation, search
m (updated example)
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>{{Template:Template}}</noinclude>
+
<noinclude>{{Template:Template}}
<includeonly><span class="plainlinks" style="background: url(http://bayimg.com/image/nakniaabf.jpg) center right no-repeat; padding-right: 16px;">[http://aur.archlinux.org/packages.php?K={{{1}}} {{{1}}}]</span></includeonly>
+
<noinclude>
+
Inline template for linking to AUR packages
+
  
'''Usage:''' <nowiki>{{pkg-aur|PACKAGE}}</nowiki>
+
'''An inline link to search for the given package in the [[AUR]].'''
'''Preview:''' {{pkg-aur|PACKAGE}}
+
 
</noinclude>
+
==Usage==
 +
 
 +
{{Ic|<nowiki>{{AUR|package}}</nowiki>}}
 +
 
 +
Special characters in the package name are automatically encoded in the URL, for example
 +
 
 +
{{Ic|<nowiki>{{AUR|bison++}}</nowiki>}} → {{AUR|bison++}}
 +
 
 +
==Example==
 +
 
 +
{{AUR|package}}
 +
 
 +
==See also==
 +
 
 +
* [[Template:Pkg]]
 +
* [[Template:Grp]]
 +
</noinclude><includeonly><span style="font-family: monospace">[https://aur.archlinux.org/packages/{{urlencode:{{{1}}}}}/ {{{1}}}]</span></includeonly>

Revision as of 01:12, 6 November 2012

This page is a template. It contains no Arch Linux-related information, but should 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 AUR.

Usage

{{AUR|package}}

Special characters in the package name are automatically encoded in the URL, for example

{{AUR|bison++}}bison++AUR

Example

packageAUR

See also