Template:InfoBox package/sandbox

From Gentoo Wiki
Jump to:navigation Jump to:search


Correct

One anonymous parameter (a package name)
Wiki code
{{InfoBox stack
| {{InfoBox package|app-admin/sudo}}
}}
Main version
Sandbox version


Using header=true
Wiki code
{{InfoBox stack
| {{InfoBox package|app-admin/sudo|header=true}}
}}
Main version
Sandbox version


Specifying link text using text
Wiki code
{{InfoBox stack
| {{InfoBox package|www-client/firefox-bin|text=Binary package information}}
}}
Main version
Sandbox version


Incorrect

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


Used outside of an {{InfoBox stack}} (wide box, not right-floated)
Wiki code
{{InfoBox package|app-admin/sudo}}
Main version
Sandbox version
Note
This is the template sandbox page for Template:InfoBox package (diff).
See also the companion subpage for test cases.