Template:Switch: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (switch template :))
 
(deprecated)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{{case: {{{1|}}}|{{{default|}}}}}}
{{{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=
'''Syntax'''
 
<tt><poem><nowiki>{{switch| a
|case: b = x
|case: c = y
|default = z
}}</nowiki></poem></tt>
 
'''Differences from the syntax of the parser function #switch:'''
 
<tt><poem><nowiki>{{#switch: a
|b = x
|c = y
|#default = z
}}</nowiki></poem></tt>
 
}}
[[Category:Templates]]
</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
}}