Template:USEflag/testcases

From Gentoo Wiki
Jump to: navigation, search
Note
This is the template test case page for Template:USEflag and its sandbox version. You may have to purge this page to update the examples.

Correct

Parameter package set to a valid package name
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.
justify Enable justify/unjustify functions for text formatting.
magic Add magic file support (sys-apps/file) to automatically detect appropriate syntax highlighting
minimal Disable all fancy features, including ones that otherwise have a dedicated USE flag (such as spelling).
slang Add support for the slang text display library (it's like ncurses, but different)
spell Add dictionary support
Sandbox version


Incorrect

Parameter package set to an invalid or non-existent package name (error message)
Wiki code
{{USEflag|package=app-editors/nono}}
Main version
Cannot load package information. Is the atom app-editors/nono correct?
Sandbox version


No parameter (error message)
Wiki code
{{USEflag}}
Main version
Cannot load package information. Is the atom {{{package}}} correct?
Sandbox version


Old-style template call with multiple anonymous parameters (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.
justify Enable justify/unjustify functions for text formatting.
magic Add magic file support (sys-apps/file) to automatically detect appropriate syntax highlighting
minimal Disable all fancy features, including ones that otherwise have a dedicated USE flag (such as spelling).
slang Add support for the slang text display library (it's like ncurses, but different)
spell Add dictionary support
The above template uses deprecated functionality. Help us update this template!
Sandbox version