Template:InfoBox manpage/testcases

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

Correct

One anonymous parameter (a Man7.org path)
Wiki code
{{InfoBox stack
| {{InfoBox manpage|man1/cat.1}}
}}
Main version
Sandbox version


Using header=true
Wiki code
{{InfoBox stack
| {{InfoBox manpage|man1/cat.1|header=true}}
}}
Main version
Resources
Sandbox version
Resources


Indicating a raw URL using raw
Wiki code
{{InfoBox stack
| {{InfoBox manpage|http://man7.org/linux/man-pages/man1/cat.1|raw=true}}
}}
Main version
Sandbox version


Specifying link text using text
Wiki code
{{InfoBox stack
| {{InfoBox manpage|man1/cat.1|text=Other text}}
}}
Main version
Sandbox version


Incorrect

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


Used outside of an {{InfoBox stack}} (wide box, not right-floated)
Wiki code
{{InfoBox manpage|man1/cat.1}}
Main version
Sandbox version