Template:GPO/doc
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 or fixes, or to voice your opinion.
Use this template to link a package name to its listing at Gentoo Portage Overlays in running text (or in a list).
This template should never be used inside of templates that simulate a command line interface, like {{Cmd}} and {{RootCmd}}, because the external-link icon (e.g. as with this link: "https://gpo.zugaina.org", for those using a graphical browser) could confuse readers in that context. For the same resaon, it should also be avoided in templates that display special types of code, like {{FileBox}}, {{CodeBox}}, and {{KernelBox}}, except possibly in the "title" line.
Parameters
To link a package name to its listing at gpo.zugaina.org
Parameter | Description | Type | Status | |
---|---|---|---|---|
Package name | 1 | Package name in the form category-subcategory/packagename
| String | required |
Repository name | 2 | Repository name
| String | required |
Usage
{{GPO|cat-subcat/name|repo}}
See the template's testcases:
Correct
{{GPO|sys-apps/portage|gentoo}}
Incorrect
{{GPO|sys-apps/portage}}
2
parameter.
{{GPO}}
1
parameter.