Difference between revisions of "Template:Package/doc"

From stoney cloud
Jump to: navigation, search
m (Initial documentation)
 
m (6 revisions from gentoo-wiki:Template:Package/doc: import from wiki.gentoo.org)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{Template}}
 
Use this template to link a package with [http://packages.gentoo.org packages.gentoo.org]. There readers find lots of informations about packages.
 
Use this template to link a package with [http://packages.gentoo.org packages.gentoo.org]. There readers find lots of informations about packages.
 +
 +
== Parameters ==
 +
; unnamed: Specify a full package name (category/package).
  
 
== Usage ==
 
== Usage ==
Add this code to the page text:
+
See the template's [[Template:Package/testcases|testcases]]:
<pre>
+
{{Template:Package/testcases}}
{{Package|package-category/package-name}}
+
</pre>
+
{{Package|package-category/package-name}}
+
{{Note|Without package-category the link will be broken.}}
+
  
[[Category:Templates]]
+
<includeonly>
 +
[[Category:Formatting templates]]
 +
</includeonly>
 +
<noinclude>
 +
[[Category:Template documentation]]
 +
</noinclude>

Latest revision as of 08:08, 25 August 2014

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements, fixes or voice your opinion.

Use this template to link a package with packages.gentoo.org. There readers find lots of informations about packages.

Parameters

unnamed
Specify a full package name (category/package).

Usage

See the template's testcases:


Parameter: unnamed
Wiki code
{{Package|sys-apps/portage}}

Main version sys-apps/portage

Sandbox version