Template:Confused/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:Confused and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Confused and its sandbox version. You may have to to update the examples.
Correct
One anonymous parameter: title of existing article
Creating a piped link
Wiki code
{{Confused|LXDE{{!}}the LXDE desktop environment}}
Main version
Not to be confused with the LXDE desktop environment.
Sandbox version
Not to be confused with the LXDE desktop environment.
↑ Creating a "piped link" is no longer necessary, as the template now supports a second anonymous parameter for this use-case.
Incorrect
No parameter (error message)
Wiki code
{{Confused}}
Main version
{{Confused template error}}
Parameter 1 not defined. For correct usage see Confused template's documentation on the
1
parameter.Sandbox version
{{Confused template error}}
Parameter 1 not defined. For correct usage see Confused template's documentation on the
1
parameter.
One anonymous parameter: wikilinked article title (reveals raw wikicode)
Trying to explain the link you're making (exposes raw wikicode)
↑ See the "Two anonymous parameters" example below for how to do this properly.