[Mediawiki-l] Error in templates with #switch

Armin Kniesel armin.kniesel at googlemail.com
Wed Mar 14 22:19:11 UTC 2007


Hello,

i use MediaWiki: 1.9.3,  PHP: 5.2.1 (cgi) and MySQL:
4.0.24_Debian-10sarge1-log.

I created a template called test with following code:

<includeonly>
{{#switch: {{{1}}}
|01
|12=31
|02
|2={{{2}}}
|04
|11=30
}}</includeonly>

and when i use this template with {{test|1|2}} i get following result:

{{#switch: 1 |01 |12=31 |02 |2=2 |04 |11=30 }}

That means it does not recognize the #switch-variable. Is this not possible
in MW 1.9.3?

Armin


More information about the MediaWiki-l mailing list