Template:Tp/testcases

From Gentoo Wiki
Jump to: navigation, search
Note
This is the template test case page for Template:Tp and its sandbox version. You may have to purge this page to update the examples.

Correct

Marking up a template parameter (named parameter, or value of an anonymous parameter)
Wiki code
{{Tp|link}}
Main version
link
Sandbox version


Showing a parameter being assigned a value
Wiki code
{{Tp|link{{=}}y}}
Main version
link=y
Sandbox version


Another way to show a parameter being assigned a value
Wiki code
{{Tp|1=link=y}}
Main version
link=y
Sandbox version


Incorrect

No parameter (lack of input results in an empty <code> element)
Wiki code
{{Tp}}
Main version
Sandbox version