Template:Bug/testcases

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

Correct

One anonymous parameter: bug number
Wiki code
{{Bug|100}}
Main version
Make sure to see bug #100 about...
Sandbox version
Make sure to see bug #100 about...


Parameter site
Wiki code
{{Bug|100|site=fdo}}
Main version
Sandbox version


Using search=package to search by package name
Wiki code
{{Bug|sys-apps/portage|search=package}}
Main version
Sandbox version


Using search=product to search by product name
Wiki code
{{Bug|PulseAudio|search=product|site=fdo}}
Main version
Sandbox version


Using search=product and component
Wiki code
{{Bug|Gentoo%20Linux|component=KDE|search=product}}
Main version
Sandbox version


Parameter text
Wiki code
{{Bug|100|text=Some text}}
Main version
Sandbox version


Using search=email to search by assigned to email
Wiki code
{{Bug|wiki@gentoo.org|search=email}}
Main version
Sandbox version


Incorrect

No parameter (error message)
Wiki code
{{Bug}}
Main version
{{Bug template error}}
Parameter 1 not defined. For correct usage see Bug template's documentation on the 1 parameter.
Sandbox version
{{Bug template error}}
Parameter 1 not defined. For correct usage see Bug template's documentation on the 1 parameter.