Thread:Project:Support desk/Need help with an if statement in custom extension/reply

This assumes you're using this within a template file but try: if ($this->data['nsnumber'] == fooId) { ... }

Where "fooId" equals the namespace id of the namespace you want the if to catch. Assuming your skin prints the standard JavaScript variables, you can find this namespace id by viewing any page within the namespace and looking for the "wgNamespaceNumber" variable and the id associated to it.

Alternatively, you can look for the JavaScript variable "wgCanonicalNamespace" and check like:

If ($this->data['nscanonical'] == "namespace") { ... }

Where "namespace" equals "Custom1".