Template:Link If Exists/Doc
From Starfield Wiki
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|Starfield:Starfield|Starfield Link}}
{{Link If Exists|Starfield:New Atlantis|New Atlantis}}
Swim with {{Link If Exists|Starfield:Fishes|the fishes|missing=nobody}}
Swim with nobody