Template:Relative link
Appearance
(Redirected from Template:Rel)
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| This template should always be substituted (i.e., use {{subst:Relative link}}). |
| This template uses Lua: |
The {{Relative link}} and {{Relative link implicit}} templates facilitate linking subpages and parent pages. If a link is not a subpage or a parent page of the current page the template simply creates a regular link.
Usage
Note: The
.. identifier is supported too (e.g. {{rel|../example}}).
{{Relative link}}
{{rel|./example}}{{rel|Template:Relative link/example}}{{rel|BattleIntelligence:Lua}}{{rel|.}}- ↳ .
{{rel}}- ↳ .
(Same as {{Relative link}}, but omitting possible initial dots)
{{reli|./example}}- ↳ example
{{reli|Template:Relative link implicit/example}}{{reli|BattleIntelligence:Lua}}{{reli|.}}{{reli}}
See also
- {{#invoke:path|rel}} and {{#invoke:path|sub}}
- Category:Internal link templates