Template:Modlink/fallback/doc
< Template:Modlink | fallback
Jump to navigation
Jump to search
This template is a wrapper for {{modlink}}
– if the mod page for the link target does not exist, it falls back to a link to the vanilla wiki.
Usage
{{ modlink/fallback | <link target> | <display text> }}
- First unnamed parameter
The target page for the link.
- Second unnamed parameter
The custom display text.
Examples
These examples assume that the current mod name is Orchid Mod.
Code | Result |
---|---|
{{modlink/fallback|Alchemist}} |
Alchemist |
{{modlink/fallback|Alchemist|an NPC}} |
an NPC |
{{modlink/fallback|Brain of Cthulhu Mask}} |
Brain of Cthulhu Mask |
{{modlink/fallback|Brain of Cthulhu Mask|a boss mask}} |
a boss mask |
{{modlink/fallback|nonexistent page}} |
nonexistent page |