This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Template:Tlc/testcases
From Gentoo Wiki (test)
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:Tlc and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Tlc and its sandbox version. You may have to to update the examples.
Correct
One anonymous parameter matching a template name
One anonymous parameter not matching a template name (not an error, but results in a redlink)
Incorrect
No parameter (error message)
Wiki code
{{Tlc}}
Main version
{{Tlc template error}}
Parameter 1 not defined. For correct usage see Tlc template's documentation on the
1
parameter.Sandbox version
Multiple anonymous parameters (not supported yet)
One anonymous parameter containing a pipe character (exposes raw wikicode)
↑ Unlike {{Tnc}}, which doesn't create a link, this template cannot (currently) illustrate a template call containing parameters.
One anonymous parameter containing a pipe and equals sign (exposes raw wikicode)
Wiki code
{{Tlc|RootCmd{{!!}}umount /mnt/gentoo{{!!}}prompt{{=}}#}}
Main version
Sandbox version
↑ Unlike {{Tnc}}, which doesn't create a link, this template cannot (currently) illustrate a template call containing parameters.