Template:Redirect target
Jump to navigation
Jump to search
This template returns the target of a redirect page passed as a parameter, or the second parameter (defaulting to nothing) if the target is not a redirect.
Examples
- Check if a page is a redirect:
{{#if:{{Redirect target|Desperate Stand}}|is a redirect|not a redirect}}
→ is a redirect{{#if:{{Redirect target|Call the Spirits}}|is a redirect|not a redirect}}
→ is a redirect
- Make a link that bypasses redirects (does not work correctly with redirects that point at sections):
[[{{Redirect target|Desperate Stand|Desperate Stand}}|Desperate Stand]]
→ Desperate Stand[[{{Redirect target|Call the Spirits|Call the Spirits}}|Call the Spirits]]
→ Call the Spirits