Template:USE
From Gentoo Wiki
[edit]
Documentation
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 or fixes, or to voice your opinion.
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.
Present a USE flag with a link to it's description on https://packages.gentoo.org, and a link to the USE flag article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
USE flag | 1 | USE flag to link to on https://packages.gentoo.org
| String | required |
nodeco | nodeco | Set this to deactivate the 'flag icon', for example if the template is used in a literal list of use flags.
| Boolean | optional |
Note
The USE flags may be preceded with "-" to represent them in a deactivated state (the template strips the minus sign so that the links to p.g.o will still work).
The USE flags may be preceded with "-" to represent them in a deactivated state (the template strips the minus sign so that the links to p.g.o will still work).
Usage
See the template's testcases:
Correct
One anonymous parameter: USE flag name
One anonymous deacivated parameter: USE flag name with preceding "-"
One anonymous parameter plus nodeco=true
Incorrect
No parameter (error message)
Wiki code
{{USE}}
Main version
{{Package template error}}
Parameter 1 not defined. For correct usage see Package template's documentation on the
1
parameter.Sandbox version
{{Package template error}}
Parameter 1 not defined. For correct usage see Package template's documentation on the
1
parameter.
See also
Note
The above documentation is transcluded from Template:USE/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)
The above documentation is transcluded from Template:USE/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)