Template:InfoBox irc/testcases

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

Correct

One anonymous parameter (an IRC channel name)
Wiki code
{{InfoBox stack
| {{InfoBox irc|gentoo}}
}}
Main version
Sandbox version


Channel plus optional server
Wiki code
{{InfoBox stack
| {{InfoBox irc|#i3|irc://irc.oftc.net}}
}}
Main version
Sandbox version


Channel plus optional server with comment
Wiki code
{{InfoBox stack
| {{InfoBox irc|#pipewire|irc://irc.oftc.net|comment=Registration required}}
}}
Main version
#pipewire (on irc://irc.oftc.net)(Registration required)
Sandbox version
#pipewire (on irc://irc.oftc.net)(Registration required)


Using header=true
Wiki code
{{InfoBox stack
| {{InfoBox irc|gentoo|header=true}}
}}
Main version
Resources
Sandbox version
Resources


Incorrect

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


Used outside of an {{InfoBox stack}} (wide box, not right-floated)
Wiki code
{{InfoBox irc|gentoo}}
Main version
Sandbox version