Template:Confused/sandbox

From Gentoo Wiki
Jump to:navigation Jump to:search


Correct

One anonymous parameter: title of exisiting 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.


↑ This how you could "explain" the link without needing to provide an explicit wikilink (which fails, as seen below).

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]].
Sandbox version
  Not to be confused with [[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]].
Sandbox version
  Not to be confused with [[the LXDE desktop environment]].


↑ See the "Creating a piped link" example above for how to do this properly.


Two anonymous parameters (not supported yet)
Wiki code
{{Confused|LXD|LXC}}
Main version
Not to be confused with LXD.
Sandbox version
  Not to be confused with LXD.
Note
This is the template sandbox page for Template:Confused (diff).
See also the companion subpage for test cases.