Template:Relative link/doc

From English Wikipedia @ Freddythechick

__EXPECTUNUSEDTEMPLATE__

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

information Note: The .. identifier is supported too (e.g. <syntaxhighlight lang="wikitext" inline>../example</syntaxhighlight>).

{{Relative link}}

  • <syntaxhighlight lang="wikitext" inline>./example</syntaxhighlight>
    ./example
  • <syntaxhighlight lang="wikitext" inline>../example</syntaxhighlight>
    ../example
  • <syntaxhighlight lang="wikitext" inline>Wikipedia:Lua</syntaxhighlight>
    Wikipedia:Lua
  • <syntaxhighlight lang="wikitext" inline>.</syntaxhighlight>
    .
  • <syntaxhighlight lang="wikitext" inline>.</syntaxhighlight>
    .

{{Relative link implicit}}

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

See also