Difference between revisions of "Template:Link if not 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 9: Line 9:
 
* {{tl|Bold link if not equal}} – when a link is produced, it is also bold
 
* {{tl|Bold link if not equal}} – when a link is produced, it is also bold
  
<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 not equal|string1|string2|link|caption}} gives

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

See also