Template:Highlight/testcases

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

Correct

One anonymous parameter
Wiki code
{{Highlight|notice me}}
Main version
notice me
Sandbox version


Specifying the color (anonymous parameter and named parameter color)
Wiki code
{{Highlight|me too|color=red}}
Main version
me too
Sandbox version


Incorrect

No parameter (results in an empty <span> element)
Wiki code
{{Highlight}}
Main version
Sandbox version