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)