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.

~