Template:Link If Exists
The UESPWiki – Your source for The Elder Scrolls since 1995
Summary[edit]
Creates a link to a page if that page exists; otherwise, only displays the text.
Parameters[edit]
Parameter | Scope | Description |
---|---|---|
1 | required | The page to link to. |
2 | optional | The text to display in the link. (Default: first parameter, including namespace) |
missing | optional | The text to display if the page wasn't found. (Default: second/first parameter) |
Examples[edit]
{{Link If Exists|UESPWiki:Some non-existent page}}
UESPWiki:Some non-existent page
{{Link If Exists|UESPWiki:Some other non-existent page|Doesn't exist}}
Doesn't exist
{{Link If Exists|Skyrim:Skyrim|Skyrim Link}}
{{Link If Exists|Skyrim:Fish|Fish}}
Swim with {{Link If Exists|Skyrim:Fishes|the fishes|missing=nobody}}
Swim with nobody