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 purge this page to update the examples.

Correct

One anonymous parameter: title of existing article
Wiki code
{{Confused|LVM}}
Main version
Not to be confused with LVM.
Sandbox version
Not to be confused with LVM.


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)
Wiki code
{{Confused|[[LXD]]}}
Main version
Not to be confused with [[:LXD|LXD]].
Sandbox version
Not to be confused with [[:LXD|LXD]].


Trying to explain the link you're making (exposes raw wikicode)
Wiki code
{{Confused|the [[LXDE]] desktop environment}}
Main version
Not to be confused with [[:the LXDE desktop environment|the LXDE desktop environment]].
Sandbox version
Not to be confused with [[:the LXDE desktop environment|the LXDE desktop environment]].


↑ See the "Two anonymous parameters" example below for how to do this properly.


Two anonymous parameters
Wiki code
{{Confused|LXD|LXC}}
Main version
Not to be confused with LXC.
Sandbox version
Not to be confused with LXC.