Just a guess, but this switch statement is in a template that is 2-levels deep. IOW, a page calls template 1 which calls template 2. Would this cause a problem? I've tried numerous examples and it works when it's the 1st template called, but not the second.
Al
On 30/12/12 22:47, Al Johnson wrote:
Just a guess, but this switch statement is in a template that is 2-levels deep. IOW, a page calls template 1 which calls template 2. Would this cause a problem? I've tried numerous examples and it works when it's the 1st template called, but not the second.
Al
You should provide a minimal example of what it's not working: your pages, what you expected and what you are getting.
#switch should function equally well no matter at what template level you are calling it (as far as you have ParserFunctions extension installed, of course!)
Hi Platonides,
Shall I provide a working example on a server or just posting code? Also, do you know if there is a performance hit when calling multiple templates deep? I think I can avoid it as a workaround.
Al
________________________________ From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Sunday, December 30, 2012 4:11 PM Subject: Re: [MediaWiki-l] #switch not working
On 30/12/12 22:47, Al Johnson wrote:
Just a guess, but this switch statement is in a template that is 2-levels deep. IOW, a page calls template 1 which calls template 2. Would this cause a problem? I've tried numerous examples and it works when it's the 1st template called, but not the second.
Al
You should provide a minimal example of what it's not working: your pages, what you expected and what you are getting.
#switch should function equally well no matter at what template level you are calling it (as far as you have ParserFunctions extension installed, of course!)
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I created a new wiki instance where anyone can see this problem. Here are the links to a page using the templates as well as the template links that reproduce this problem.
Page showing the prob: http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/A
Template pages: http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/Temp... http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/Temp... http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/Temp...
I'll try to leave this server up for a while.
Thanks, Al
________________________________ From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Sunday, December 30, 2012 4:11 PM Subject: Re: [MediaWiki-l] #switch not working
On 30/12/12 22:47, Al Johnson wrote:
Just a guess, but this switch statement is in a template that is 2-levels deep. IOW, a page calls template 1 which calls template 2. Would this cause a problem? I've tried numerous examples and it works when it's the 1st template called, but not the second.
Al
You should provide a minimal example of what it's not working: your pages, what you expected and what you are getting.
#switch should function equally well no matter at what template level you are calling it (as far as you have ParserFunctions extension installed, of course!)
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I seem to keep having various problems which all seem to be related to using 2-level deep transclusion with templates (like mentioned in the first post). Now I'm getting other strange query errors that don't error-out but leave warnings on the page even though the properties and data seem fine otherwise.
________________________________ From: Al Johnson alj62888@yahoo.com To: MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org Sent: Monday, December 31, 2012 2:35 PM Subject: Re: [MediaWiki-l] #switch not working
I created a new wiki instance where anyone can see this problem. Here are the links to a page using the templates as well as the template links that reproduce this problem.
Page showing the prob: http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/A
Template pages: http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/Temp... http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/Temp... http://ec2-50-112-75-137.us-west-2.compute.amazonaws.com/wiki/index.php/Temp...
I'll try to leave this server up for a while.
Thanks, Al
________________________________ From: Platonides Platonides@gmail.com To: mediawiki-l@lists.wikimedia.org Sent: Sunday, December 30, 2012 4:11 PM Subject: Re: [MediaWiki-l] #switch not working
On 30/12/12 22:47, Al Johnson wrote:
Just a guess, but this switch statement is in a template that is 2-levels deep. IOW, a page calls template 1 which calls template 2. Would this cause a problem? I've tried numerous examples and it works when it's the 1st template called, but not the second.
Al
You should provide a minimal example of what it's not working: your pages, what you expected and what you are getting.
#switch should function equally well no matter at what template level you are calling it (as far as you have ParserFunctions extension installed, of course!)
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Sun, 30 Dec 2012 13:47:57 -0800 (PST), Al Johnson alj62888@yahoo.com wrote:
Just a guess, but this switch statement is in a template that is
2-levels
deep. IOW, a page calls template 1 which calls template 2. Would this cause a problem? I've tried numerous examples and it works when it's
the
1st template called, but not the second.
Al
I have successfully done it before. Have you tried running it using [[Special:ExpandTemplates]]?
Regards, Billinghurst
mediawiki-l@lists.wikimedia.org