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

From blackwiki
Jump to navigation Jump to search
imported>Dinoguy1000
({{high-use}})
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 10: Line 10:
 
* {{tl|LinkCatIfExists2}}
 
* {{tl|LinkCatIfExists2}}
  
<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|Linkif]]
 
[[Category:Conditional link templates|Linkif]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:02, 26 April 2020

Usage

For use as a subtemplate of other templates. Displays the first parameter, linked if an article exists, otherwise unlinked. You can also define a parameter nsp, for the namespace to try to link to (e.g. "nsp=Category"). Use prefix instead of nsp if the prefix is also to be displayed if a link is found.

See also