Difference between revisions of "Template:Link if equal/doc"

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
(more specific category)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 10: Line 10:
 
* {{tl|Link if not current}}
 
* {{tl|Link if not current}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Conditional link templates]]
 
[[Category:Conditional link templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:02, 26 April 2020

Usage

{{Link if equal|string1|string2|link|caption}} gives

  • "caption" (i.e. a link) if string1 and string2 are equal,
  • "caption" (i.e. no link) if they are not.

See also