Template:Switch: Difference between revisions
Jump to navigation
Jump to search
(doc) |
(deprecated) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{{case: {{{1|}}}|{{{default|}}}}}}<noinclude> | {{{case: {{{1|}}}|{{{default|}}}}}}<noinclude> | ||
{{ | {{Ambox | type = content | text = This template has been deprecated and substituted with the [[mw:Help:Extension:ParserFunctions|parser function #switch]]. It is currently used only inside [[MediaWiki:Sitenotice]], which does not accept parser functions.}} | ||
{{DisplayBox|bgcolor=g|text= | {{DisplayBox|bgcolor=g|text= | ||
'''Syntax''' | '''Syntax''' | ||
Line 19: | Line 19: | ||
}} | }} | ||
[[Category:Templates | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:03, 19 June 2017
This template has been deprecated and substituted with the parser function #switch. It is currently used only inside MediaWiki:Sitenotice, which does not accept parser functions. |
Syntax
{{switch| a
|case: b = x
|case: c = y
|default = z
}}
Differences from the syntax of the parser function #switch:
{{#switch: a
|b = x
|c = y
|#default = z
}}