Template:USEflag
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 page is widely used in our wiki, it is protected. Only staff members can change it. Use the discussion page to propose enhancements, fixes or voice your opinion.
Use this template to show a table for listing USE flags of a package and details about these USE flags.
Parameters
- unnamed parameter (up to 30)
- Specify in each parameter one USE flag. You can set additional details in the same parameter delimited by a +:
- Default: This column shows, whether this USE flag is enabled by default in this package or by profile. For the articles in the Server & Security category the "default" profile is the default/linux/amd64/13.0 profile, for every other article it is the default/linux/amd64/13.0/desktop profile. Exceptions have to be named and founded.
- Recommended: This column shows, whether the author of the article recommends to enable this USE flag.
- Description: When no description is provided for a USE flag, the default description from use.desc (and where available the package specific description) is automatically displayed. Otherwise, when defining a description, it should be a detailed description of this USE flag and how it affects this package. In some cases it goes beyond Enables PNG support in GIMP. and might contain an explanation like If this USE flag is disabled, this package will have no authentication support at all, as the only supported authentication backend at the moment is LDAP..
- package (optional)
- Specify the full package name to enable local USE flag descriptions instead of global, if existing.
Note
The implementation is not very efficient, so you should set parameter only, if you know, that there are local USE flag descriptions. To check that:
user $ grep PACKAGE /usr/portage/profiles/use.local.desc- desc (optional)
- Add description text.
Usage
See the template's testcases:
| Parameter: unnamed | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wiki code | {{USEflag|ldap}}
| ||||||||||||
| | |||||||||||||
| Main version |
| ||||||||||||
| | |||||||||||||
| Sandbox version |
| ||||||||||||
| Parameter: unnamed (custom description) | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wiki code | {{USEflag|ldap+++Custom description}}
| ||||||||||||
| | |||||||||||||
| Main version |
| ||||||||||||
| | |||||||||||||
| Sandbox version |
| ||||||||||||
| Parameter: unnamed (all attributes) | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wiki code | {{USEflag|ldap+yes+no}}
| ||||||||||||
| | |||||||||||||
| Main version |
| ||||||||||||
| | |||||||||||||
| Sandbox version |
| ||||||||||||
| Parameter: unnamed (multiple), package | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wiki code | {{USEflag
|package=app-editors/nano
|debug
|justify
|minimal++yes
|ncurses
|nls
|slang
|spell
|unicode
}}
| ||||||||||||||||||||||||||||||||||||||||
| | |||||||||||||||||||||||||||||||||||||||||
| Main version |
| ||||||||||||||||||||||||||||||||||||||||
| | |||||||||||||||||||||||||||||||||||||||||
| Sandbox version |
| ||||||||||||||||||||||||||||||||||||||||
| Parameter: desc | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wiki code | {{USEflag|ldap|desc=A description}}
| ||||||||||||
| | |||||||||||||
| Main version |
| ||||||||||||
| | |||||||||||||
| Sandbox version |
| ||||||||||||
Note
The above documentation is transcluded from Template:USEflag/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. Subpages of this template.
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.