Difference between revisions of "Template:AUR"

From ArchWiki
Jump to: navigation, search
(switched to https for consistency with the archwiki interface and to secure the login page)
m (updated example)
(17 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
'''An inline link to search for the given package in the [[AUR]].'''
 
'''An inline link to search for the given package in the [[AUR]].'''
  
====Usage====
+
==Usage==
  
{{Codeline|1=<nowiki>{{Package AUR|package}}</nowiki>}}
+
{{Ic|<nowiki>{{AUR|package}}</nowiki>}}
  
{{Note|This template will ''search'' for <tt>package</tt> in the [[AUR]]. Thus, if <tt>package-''foo''</tt> and <tt>package-''bar''</tt> exist, all matching variations will be listed. In cases where the package name is ambiguous (e.g. {{Package AUR|opera}}, which matches '''''opera'''''ting, '''''opera'''''tion, etc.) a direct link may be preferred.}}
+
Special characters in the package name are automatically encoded in the URL, for example
  
====Example====
+
{{Ic|<nowiki>{{AUR|bison++}}</nowiki>}} → {{AUR|bison++}}
  
{{Package AUR|package}}</noinclude><includeonly><tt>[https://aur.archlinux.org/packages.php?K={{{1}}} {{{1}}}]</tt></includeonly>
+
==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