Template:Redirect target/doc

From Pittsburgh Streets

The {{redirect target}} template, given the title of a redirect, returns the title of the target of the redirect.

If the given title is not a redirect (or does not exist at all), the empty string is returned.

Usage examples and test cases

  • {{redirect target|Ellesmere Street}} → Eighth Street
    . . . because Ellesmere Street is a redirect to Eighth Street.
  • {{redirect target|Forbes Avenue}}
  • {{redirect target|Nonexistent Boulevard}}
  • {{redirect target}}