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

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
(+ See also)
imported>Petr Matas
(more specific category)
Line 12: Line 12:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Internal link templates]]
+
[[Category:Conditional link templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 02:40, 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