Changes
Adding error if switch is not matched valid case
{{#switch:{{{2|NONE}}}
|NONE|hatnote|hat={{dablink|1=<span class="plainlinks selfreference">{{{1}}}</span>}}
|inline|<!--empty-->=<span class="plainlinks selfreference">{{{1}}}</span>|#default={{error|Second parameter must be <code>hatnone</code>, <code>hat</code>, or <code>inline</code>}}
}}<!--
* Note to editors - : matching the empty string for inline is for backwards compatibility with "|=" is important!the 2006-2008 version
--><noinclude>
{{documentation}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>