This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Template:Color/testcases
From Gentoo Wiki (test)
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:Color and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Color and its sandbox version. You may have to to update the examples.
Correct
Collapse
Two anonymous parameters, the color and the text to be colored
Wiki code
{{Color|green|everything's fine}}
Main version
everything's fine
Sandbox version
Collapse
Empty first anonymous parameter (uses the default color, black)
Wiki code
{{Color||OK, but useless}}
Main version
OK, but useless
Sandbox version
Incorrect
Collapse
No parameter (error message)
Wiki code
{{Color}}
Main version
{{Color template error}}
Parameter 1 not defined. For correct usage see Color template's documentation on the
1
parameter.Sandbox version
Collapse
One anonymous parameter (colored error message)
Wiki code
{{Color|green}}
Main version
{{Color template error}}
Parameter 1 not defined. For correct usage see Color template's documentation on the
1
parameter.Sandbox version