Template:Relative link/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} {{May be substituted}} {{Lua|Module:Path}} The {{Tl|Relative link}} and {{Tl|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 == {{A note}} The <code>..</code> identifier is supported too (e.g. <syntaxhighlight lang="wikitext" inline>{{rel|../example}}</syntaxhighlight>). ==..." |
(No difference)
|
Latest revision as of 04:08, 17 February 2025
This is a documentation subpage for Template:Relative link. It may contain usage information, categories and other content that is not part of the original template page. |
This template may be substituted. |
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|Wikipedia:Lua}}
{{rel|.}}
- ↳ .
{{rel}}
- ↳ .
{{Relative link implicit}}
(Same as {{Relative link}}, but omitting possible initial dots)
{{reli|./example}}
- ↳ example
{{reli|Template:Relative link implicit/example}}
{{reli|Wikipedia:Lua}}
{{reli|.}}
{{reli}}
See also
- {{#invoke:path|rel}} and {{#invoke:path|sub}}
- Category:Internal link templates