Template:Link if not current

From blackwiki
Revision as of 14:16, 19 February 2017 by imported>Pppery (Undid revision 766316217 by Pppery (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • [[{{{1}}}|{{{1}}}]]
Template documentation[view] [edit] [history] [purge]

Use this template to avoid producing a self link.

Usage

{{Link if not current|Article}} produces

  • a list item linking to Article if the current page's title is not Article,
  • nothing if it is.

Parameters

  • Parameter 1 is necessary, as it is the link.
  • Parameter 2 is optional, and it is the text that is displayed over the link. If parameter 2 doesn't exist, it defaults to parameter 1.

See also