• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Relative link

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
This template may be substituted.
This template uses Lua:
  • Module:Path

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.

Contents

  • 1 Usage
    • 1.1 {{Relative link}}
    • 1.2 {{Relative link implicit}}
  • 2 See also

Usage

edit

information Note: The .. identifier is supported too (e.g. {{rel|../example}}).

{{Relative link}}

edit
Shortcuts
  • {{relTemplate:Rel}}
  • {{subpage linkTemplate:Subpage link}}
  • {{rel|./example}}
    ↳ ./example
  • {{rel|Template:Relative link/example}}
    ↳ ./example
  • {{rel|Wikipedia:Lua}}
    ↳ Wikipedia:Lua
  • {{rel|.}}
    ↳ .
  • {{rel}}
    ↳ .

{{Relative link implicit}}

edit
Shortcuts
  • {{reliTemplate:Reli}}
  • {{irelTemplate:Irel}}
  • {{subpage link implicitTemplate:Subpage link implicit}}

(Same as {{Relative link}}, but omitting possible initial dots)

  • {{reli|./example}}
    ↳ example
  • {{reli|Template:Relative link implicit/example}}
    ↳ Template:Relative link implicit/example
  • {{reli|Wikipedia:Lua}}
    ↳ Wikipedia:Lua
  • {{reli|.}}
    ↳ Relative link
  • {{reli}}
    ↳ Relative link

See also

edit
  • {{#invoke:path|rel}} and {{#invoke:path|sub}}
  • Category:Internal link templates
The above documentation is transcluded from Template:Relative link/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Relative_link&oldid=1244268682"
Last edited on 6 September 2024, at 01:36

Languages

    • Latina
    • Tiếng Việt
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 6 September 2024, at 01:36 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop