Template:Link if exists redirect/doc
This is a documentation subpage for Template:Link if exists redirect. It may contain usage information, categories and other content that is not part of the original template page. |
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}}