Wikia

Community Central

Grabbing redirect pagename

93,967pages on
this wiki

Forum page

This Forum has been archived

Visit the new Forums
Forums: Index Support Requests Grabbing redirect pagename
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 899 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

Is there anyway for me to grab the name of the redirect target from another page? Essentially, is there a way that if page 'Foo' redirects to the page 'Bar', using a function like {{PAGENAME:Foo}} would result in 'Bar'.    ǝsʞpɐןǝ  (message wall)  15:03, 3/05/2012

You could use #ifeq or #switch parser functions. For instance, {{#ifeq:{{PAGENAME}}|Foo|[[Bar]]}}. But unfortunately this prevents the automatic redirect from occurring. It would only work for soft redirects. --Gardimuer { ʈalk } 15:46, May 3, 2012 (UTC)

Around Wikia's network

Random Wiki