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

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(→‎See also: * {{tl|LinkCatIfExists}} * {{tl|LinkCatIfExists2}})
imported>Dinoguy1000
({{high-use}})
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{High-use|66927}}
 
== Usage ==
 
== 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.
 
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.

Revision as of 22:12, 28 May 2019

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