Difference between revisions of "Template:Selfref"
(Adding error if switch is not matched valid case) |
Malcolmmcc (talk | contribs) m (77 revisions imported) |
||
(17 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{2|NONE}}} | {{#switch:{{{2|NONE}}} | ||
− | |NONE|hatnote|hat={{ | + | |NONE|hatnote|hat={{Hatnote|1=<span class="plainlinks selfreference noprint">{{{1}}}</span>}} |
− | |inline|<!--empty-->=<span class="plainlinks selfreference">{{{1}}}</span> | + | |inline=<span class="plainlinks selfreference" style="font-style: italic;"><!--Same style as class hatnote.-->{{{1}}}</span> |
− | |#default={{error|Second parameter must be <code> | + | |<!--Matching the empty string here for unprintworthy content is for backwards compatibility with the 2006-2008 version. Do not depend on it!-->=<span class="plainlinks selfreference noprint">{{{1}}}</span> |
− | }}<!-- | + | |#default={{error|Second parameter must be <code>hatnote</code>, <code>hat</code>, or <code>inline</code>}} |
− | + | }}<noinclude> | |
− | -- | + | {{Documentation}} |
+ | |||
+ | <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES THE /doc SUBPAGE, AND INTERWIKIS TO WIKIDATA, THANKS --> | ||
− | |||
− | |||
</noinclude> | </noinclude> |