Difference between revisions of "Template:Pkg"

From ArchWiki
Jump to: navigation, search
(Level 2 headings; see also Template:AUR)
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
==Usage==
 
==Usage==
  
{{Codeline|<nowiki>{{Pkg|package}}</nowiki>}}
+
{{Ic|<nowiki>{{Pkg|package}}</nowiki>}}
  
{{Note|This template will ''search'' for {{Codeline|package}} in the official repos. Thus, if {{Codeline|package-''foo''}} and {{Codeline|package-''bar''}} exist, all matching variations will be listed. See also {{bug|26383}}.}}
+
{{Note|This template will ''search'' for {{Ic|package}} in the official repos. Thus, if {{Ic|package-''foo''}} and {{Ic|package-''bar''}} exist, all matching variations will be listed. See also {{bug|26383}}.}}
  
 
Special characters in the package name are automatically encoded in the URL, for example
 
Special characters in the package name are automatically encoded in the URL, for example
  
{{Codeline|<nowiki>{{Pkg|dvd+rw-tools}}</nowiki>}} → {{Pkg|dvd+rw-tools}}
+
{{Ic|<nowiki>{{Pkg|dvd+rw-tools}}</nowiki>}} → {{Pkg|dvd+rw-tools}}
  
 
==Example==
 
==Example==
Line 19: Line 19:
 
==See also==
 
==See also==
  
 +
* [[Template:Grp]]
 
* [[Template:AUR]]
 
* [[Template:AUR]]
 
</noinclude><includeonly><span style="font-family: monospace">[https://www.archlinux.org/packages/?name={{urlencode:{{{1}}}}} {{{1}}}]</span></includeonly>
 
</noinclude><includeonly><span style="font-family: monospace">[https://www.archlinux.org/packages/?name={{urlencode:{{{1}}}}} {{{1}}}]</span></includeonly>

Revision as of 02:42, 15 December 2011

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 Official Repositories.

Usage

{{Pkg|package}}

Note: This template will search for package in the official repos. Thus, if package-foo and package-bar exist, all matching variations will be listed. See also FS#26383.

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

{{Pkg|dvd+rw-tools}}dvd+rw-tools

Example

package

See also