Manual:$wgNoFollowNsExceptions

Even if $wgNoFollowLinks is set to true, the  attribute will not be used for pages in the namespaces listed in this array.