(Go: >> BACK << -|- >> HOME <<)

Jump to content

Template:Link if exists: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
indented for sanity preservation reasons
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- Indented for your sanity.
<includeonly>{{#if:{{{prefix|}}}|{{#ifexist:{{{prefix}}}:{{{1}}}|[[:{{{prefix}}}:{{{1}}}]]|{{{1}}}}}|{{#if:{{{nsp|}}}|{{#ifexist:{{{nsp}}}:{{{1}}}|[[:{{{nsp}}}:{{{1}}}|{{{1}}}]]|{{{1}}}}}|{{#ifexist:{{{1}}}|[[{{{1}}}]]|{{{1}}}}}}}}}</includeonly><noinclude>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.
-->{{#if:{{{prefix|}}}<!--
-->|{{#ifexist:{{{prefix}}}:{{{1}}}<!--
[[Category:Internal link templates|Linkif]]</noinclude>
-->|[[:{{{prefix}}}:{{{1}}}]]<!--
-->|{{{1}}}<!--
-->}}<!--
-->|{{#if:{{{nsp|}}}<!--
-->|{{#ifexist:{{{nsp}}}:{{{1}}}<!--
-->|[[:{{{nsp}}}:{{{1}}}|{{{1}}}]]<!--
-->|{{{1}}}<!--
-->}}<!--
-->|{{#ifexist:{{{1}}}<!--
-->|[[{{{1}}}]]<!--
-->|{{{1}}}<!--
-->}}<!--
-->}}<!--
-->}}<noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 15:48, 30 January 2024

{{{1}}}