Template:InfoBox gitweb/testcases

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is the template test case page for Template:InfoBox gitweb and its sandbox version. The page may need to be refreshed to update the examples (click "Refresh" from the "More" menu).

Correct

Collapse
One anonymous parameter (a GitWeb path)
Wiki code
{{InfoBox stack
| {{InfoBox gitweb|portage.git}}
}}
Main version
Sandbox version


Collapse
Using header=true
Wiki code
{{InfoBox stack
| {{InfoBox gitweb|portage.git|header=true}}
}}
Main version
Resources
Sandbox version
Resources


Collapse
Indicating a raw URL using raw
Wiki code
{{InfoBox stack
| {{InfoBox gitweb|https://gitweb.gentoo.org/proj/portage.git|raw=true}}
}}
Main version
Sandbox version


CollapseSpecifying link text using text
Wiki code {{InfoBox stack | {{InfoBox gitweb|portage.git|text=Other text}} }}

Main version
Sandbox version

Incorrect

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


Collapse
Used outside of an {{InfoBox stack}} (wide box, not right-floated)
Wiki code
{{InfoBox gitweb|portage.git}}
Main version
Sandbox version