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

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
imported>Petr Matas
(more specific category)
Line 12: Line 12:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Internal link templates]]
+
[[Category:Conditional link templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 02:37, 21 October 2014

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