Template:Linkfallback
From Starfield Wiki
Summary[edit]
This template can be used to create links into a namespace that also display a fallback link (to another namespace) if the main link points to a page that does not exist. Its primary use case is to display red links into the Lore: namespace, with a fallback to Starfield: if the lore article is missing.
Parameters[edit]
| Parameter | Scope | Description |
|---|---|---|
| 1 | required | Link target in the primary namespace. |
| 2 | optional | Link text to display. Defaults to the link target's page name. |
| ns | optional | The primary namespace. Defaults to Lore. |
| fallbackns | optional | The fallback namespace. Defaults to Starfield. |
Examples[edit]
| Code | Produces |
|---|---|
| {{Linkfallback|Narion System}} (if the page "Lore:Narion System" doesn't exist) |
Narion System [Starfield] |
| {{Linkfallback|Colony War}} (if the page "Lore:Colony War" exists) |
Colony War |