Community Central

Forum:Grabbing redirect pagename


Grabbing redirect pagename

Forum page

19,645pages on
this wiki
Add New Page

This Forum has been archived

Visit the new Forums
Forums: Index Support Requests Grabbing redirect pagename
Fandom'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 1816 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)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.