Template:Tiw/testcases

Sandbox version
produces:

{{Template:Tiw/sandbox|Hatnote}} produces:

{{Template:Tiw/sandbox|ThisTemplateShouldn'tExist}} produces: