Jump to content

Template:Relative link/doc: Difference between revisions

From BattleIntelligence
imported>Deadfire
m updating
 
m Text replacement - "BattleTechWiki" to "BattleIntelligence"
 
Line 3: Line 3:
{{Lua|Module:Path}}
{{Lua|Module:Path}}


The {{Tl|Relative link}} and {{Tl|Relative link implicit}} templates facilitate linking [[BattleTechWiki:Subpages|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.
The {{Tl|Relative link}} and {{Tl|Relative link implicit}} templates facilitate linking [[BattleIntelligence:Subpages|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 ==
== Usage ==
Line 14: Line 14:
* <syntaxhighlight lang="wikitext" inline>{{rel|Template:Relative link/example}}</syntaxhighlight>
* <syntaxhighlight lang="wikitext" inline>{{rel|Template:Relative link/example}}</syntaxhighlight>
*: ↳ {{rel|Template:Relative link/example}}
*: ↳ {{rel|Template:Relative link/example}}
* <syntaxhighlight lang="wikitext" inline>{{rel|BattleTechWiki:Lua}}</syntaxhighlight>
* <syntaxhighlight lang="wikitext" inline>{{rel|BattleIntelligence:Lua}}</syntaxhighlight>
*: ↳ {{rel|BattleTechWiki:Lua}}
*: ↳ {{rel|BattleIntelligence:Lua}}
* <syntaxhighlight lang="wikitext" inline>{{rel|.}}</syntaxhighlight>
* <syntaxhighlight lang="wikitext" inline>{{rel|.}}</syntaxhighlight>
*: ↳ {{rel|.}}
*: ↳ {{rel|.}}
Line 29: Line 29:
* <syntaxhighlight lang="wikitext" inline>{{reli|Template:Relative link implicit/example}}</syntaxhighlight>
* <syntaxhighlight lang="wikitext" inline>{{reli|Template:Relative link implicit/example}}</syntaxhighlight>
*: ↳ {{reli|Template:Relative link implicit/example}}
*: ↳ {{reli|Template:Relative link implicit/example}}
* <syntaxhighlight lang="wikitext" inline>{{reli|BattleTechWiki:Lua}}</syntaxhighlight>
* <syntaxhighlight lang="wikitext" inline>{{reli|BattleIntelligence:Lua}}</syntaxhighlight>
*: ↳ {{reli|BattleTechWiki:Lua}}
*: ↳ {{reli|BattleIntelligence:Lua}}
* <syntaxhighlight lang="wikitext" inline>{{reli|.}}</syntaxhighlight>
* <syntaxhighlight lang="wikitext" inline>{{reli|.}}</syntaxhighlight>
*: ↳ {{reli|.}}
*: ↳ {{reli|.}}
Line 48: Line 48:
[[Category:Help namespace templates|{{PAGENAME}}]]
[[Category:Help namespace templates|{{PAGENAME}}]]
[[Category:User namespace templates|{{PAGENAME}}]]
[[Category:User namespace templates|{{PAGENAME}}]]
[[Category:BattleTechWiki namespace templates|{{PAGENAME}}]]
[[Category:BattleIntelligence namespace templates|{{PAGENAME}}]]
[[Category:Template namespace templates|{{PAGENAME}}]]
[[Category:Template namespace templates|{{PAGENAME}}]]
[[Category:Module namespace templates|{{PAGENAME}}]]
[[Category:Module namespace templates|{{PAGENAME}}]]
}}</includeonly>
}}</includeonly>

Latest revision as of 01:04, 1 May 2025

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. {{rel|../example}}).

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

See also