Template:Switch: Difference between revisions

From ChoralWiki
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>
{{prot-temp}}
{{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|{{PAGENAME}}]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 18:03, 19 June 2017

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
}}