Template:USEflag

From Gentoo Wiki
Jump to: navigation, search
[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.

Use this template to show the USE flags of a package.

Parameters

Parameter name Required? Default value Description
package Yes (n/a) Full package atom (category-subcategory/package) whose USE flags to display

Usage

See the template's testcases:


Proper usage
Wiki code {{USEflag|package=app-editors/nano}}

Main version

USE flags for app-editors/nano GNU GPL'd Pico clone with more functionality

debug Enable debug messages and assert warnings. Note that these will all be sent straight to stderr rather than some logging facility. local
justify Enable justify/unjustify functions for text formatting. local
magic Add magic file support (sys-apps/file) to automatically detect appropriate syntax highlighting local
minimal Disable all fancy features, including ones that otherwise have a dedicated USE flag (such as spelling). local
ncurses Add ncurses support (console display library) global
nls Add Native Language Support (using gettext - GNU locale utilities) global
slang Add support for the slang text display library (it's like ncurses, but different) global
spell Add dictionary support global
static !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically global
unicode Add support for Unicode global
Sandbox version
Non-existent package
Wiki code {{USEflag|package=app-editors/nono}}

Main version
Cannot load package information. Is the atom app-editors/nono correct?
Sandbox version
No package provided
Wiki code {{USEflag}}

Main version
Cannot load package information. Is the atom {{{package}}} correct?
Sandbox version
Old-style template call, now deprecated
Wiki code {{USEflag|package=app-editors/nano |debug++no |justify |magic+Yes |minimal++no |ncurses+yes |nls+yes |slang |spell+yes |unicode+yes }}

Main version

USE flags for app-editors/nano GNU GPL'd Pico clone with more functionality

debug Enable debug messages and assert warnings. Note that these will all be sent straight to stderr rather than some logging facility. local
justify Enable justify/unjustify functions for text formatting. local
magic Add magic file support (sys-apps/file) to automatically detect appropriate syntax highlighting local
minimal Disable all fancy features, including ones that otherwise have a dedicated USE flag (such as spelling). local
ncurses Add ncurses support (console display library) global
nls Add Native Language Support (using gettext - GNU locale utilities) global
slang Add support for the slang text display library (it's like ncurses, but different) global
spell Add dictionary support global
static !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically global
unicode Add support for Unicode global
The above template uses deprecated functionality. Help us update this template!
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. (See the subpages of this template.)