How about creating something like [[Mediawiki:Nstab-mainpage]] which
would work the same way as [[Mediawiki:Nstab-main]] thus removing any
need for a paser-function ect, although it might not work for people
that redirect their Main Page to some other name.