Template:MC/Redirect link/doc
Template page
More actions
Template:Documentation header Template:Shortcut
Usage
Make a link to a redirect pages. This template detects if the page exists first before making a link. This template can also be used for non-redirect pages.
Parameters
- Template:P the name of the redirect page to link to.
- Template:P the display text for the link. Example: display just "JE" instead of "Java Edition".
- Template:P: add a Template:ItemLink, linking to the special "What links here" page for the redirect page. Useful for cleaning up redirects.
- Template:P: add a Template:BlockLink, linking to the special "Delete page" page for the page. Useful for cleaning up old pages / redirects.
Examples
| Code | Result |
|---|---|
{{Redirect link|Template:tl|tl}}
|
Template:Redirect link |
{{Redirect link|Template:tlink}}
|
Template:Redirect link |
{{Redirect link|wlh=1|Page does not exist}}
|
Template:Redirect link |
{{Redirect link|wlh=1|Potions of poison}}
|
Template:Redirect link |
{{Redirect link|wlh=1|Gold Armor|Gold}}
|
Template:Redirect link |
{{Redirect link|d=1|Dolphins}}
|
Template:Redirect link |