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

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
(moving category from main page)
imported>Petr Matas
(+ See also)
Line 5: Line 5:
 
*Parameter 1 is necessary, as it is the link. To avoid self-linking, the parameter is unlinked if the name of the input in parameter 1 is the same as the name of the page's title.
 
*Parameter 1 is necessary, as it is the link. To avoid self-linking, the parameter is unlinked if the name of the input in parameter 1 is the same as the name of the page's title.
 
*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.
 
*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 ==
 +
* {{tl|Link if exists}}
 +
* {{tl|Link if equal}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 02:10, 21 October 2014

Usage

  • Parameter 1 is necessary, as it is the link. To avoid self-linking, the parameter is unlinked if the name of the input in parameter 1 is the same as the name of the page's title.
  • 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