Difference between revisions of "Template:Link if not current/doc"

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
(update)
imported>Petr Matas
Line 13: Line 13:
  
 
== See also ==
 
== See also ==
 +
* {{tl|No selflink}} – always outputs the text (either linked or not) and NOT embedded in a list item
 
* {{tl|Link if exists}}
 
* {{tl|Link if exists}}
 
* {{tl|Link if equal}}
 
* {{tl|Link if equal}}

Revision as of 11:27, 21 October 2014

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