[Mediawiki-l] Redirecting without hard-coding the wiki name?

Benjamin Lees emufarmers at gmail.com
Wed Apr 16 18:30:43 UTC 2008


On 4/16/08, Daniel Barrett <danb at vistaprint.com> wrote:
>
> What's the right way to redirect to an article in the "project"
> namespace without hard-coding the wiki name? Neither {{ns:project}} nor
> {{SITENAME}} works:
>
> #REDIRECT [[{{SITENAME}}:My page]]
> #REDIRECT [[{{ns:project}}:My page]]
>
> Instead of accomplishing a redirect, they merely render the text:
>
> 1.      REDIRECT MyWikiName:My page
>
> as if the "#" were a numbered list symbol.
>
> Thanks,
> DanB


Project: is aliased to the project namespace, so you can just say:
#redirect [[Project:My page]]


-- 
Arr, ye emus, http://emufarmers.com


More information about the MediaWiki-l mailing list