Difference between revisions of "Template:Selfref"
m (Template redirected using AWB) |
(Adding error if switch is not matched valid case) |
||
Line 1: | Line 1: | ||
{{#switch:{{{2|NONE}}} | {{#switch:{{{2|NONE}}} | ||
|NONE|hatnote|hat={{dablink|1=<span class="plainlinks selfreference">{{{1}}}</span>}} | |NONE|hatnote|hat={{dablink|1=<span class="plainlinks selfreference">{{{1}}}</span>}} | ||
− | |inline|=<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 | + | * Note: matching the empty string for inline is for backwards compatibility with the 2006-2008 version |
--><noinclude> | --><noinclude> | ||
− | + | ||
{{documentation}} | {{documentation}} | ||
+ | <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> |
Revision as of 14:54, 10 February 2010
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |