Template:Testcase/testcases

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

Note: Here we show how this template would be used to document the template {{Package}}.

The wikicode:

{{Testcase
|title=One unnamed parameter
|<nowiki>{{Package|sys-apps/portage}}</nowiki>
|        {{Package|sys-apps/portage}}
|{{Package/sandbox|sys-apps/portage}}
}}

Results in:

One unnamed parameter
Wiki code {{Package|sys-apps/portage}}

Main version sys-apps/portage
Sandbox version sys-apps/portage


Using the sandbox version:

{{Testcase/sandbox
|title=One unnamed parameter
|<nowiki>{{Package|sys-apps/portage}}</nowiki>
|        {{Package|sys-apps/portage}}
|{{Package/sandbox|sys-apps/portage}}
}}

Results in: