Forum:PHP translation to MediaWiki

Ok, so on SporeWiki, on the following pages:
 * w:c:spore:Vehicle:Kralgon Crusher
 * w:c:spore:Creature:Kralgon/Military/AI Weapons

I used a bit of .js coding. On the former:  And on Creature:Kralgon/Military/AI Weapons I used: 

This is meant to be, so that when you view Vehicle:Kralgon Crusher from Creature:Kralgon/Military/AI Weapons, the navboxes will not show. However, when you view it from Vehicle:Kralgon Crusher, they do show.

The problem is visible from that page. Could someone possibly translate those codes into something that works with MediaWiki?--Technobliterator 08:26, August 31, 2011 (UTC)


 * As you know by now, php will never work.
 * You need to use include, noinclude and/or includeonly to control that sort of thing.
 * In the included template (in this case Vehicle:Kralgon Crusher) you need to put noinclude around the parts that you don't want to appear in other pages.
 * If you want finer tune then you have to use something else; I think an ifeq with would work.
 * Yeah, the former doesn't work; Creature:Kralgon/Military/AI Weapons views Vehicle:Kralgon Crusher via tabview, which doesn't transclude pages, so noinclude doesn't work. However, I'm as for the #ifeq: parser function, I'm not so sure about it, as I've never used it before. Can you tell me any codes which would work?--Technobliterator 14:17, August 31, 2011 (UTC)
 * Oh also, where would #ifeq: go, what page?--Technobliterator 16:08, August 31, 2011 (UTC)