Template:Link if exists redirect
{{{1}}}
This template uses Lua: |
This is the same as {{Link if exists}}
, but:
- Allows a second parameter so the link target and linked text can differ
- Uses
{{#invoke:redirect|main|<!-- page name -->}}
to find the target of a page if it's a redirect page.
Usage[edit]
Exists
{{Link if exists redirect|Φ}}
→ Φ[[Phi|Φ]]
{{Link if exists redirect|Dwayne Johnson|the Rock}}
→ the Rock[[Dwayne Johnson|the Rock]]
Does not exist
{{Link if exists redirect|Wikipedia:Articles for rumination}}
→ Wikipedia:Articles for rumination{{Link if exists redirect|Macron on M|M̄}}
→ M̄
See also[edit]
- {{Link if exists}}