Difference between revisions of "Template:LinkIfPageExists"

From Wikispooks
Jump to navigation Jump to search
m (Text replacement - "WikiSpooks" to "Wikispooks")
 
Line 1: Line 1:
 
<noinclude>'''If the first argument is an existing page, make it a link, else just text.'''<br/>
 
<noinclude>'''If the first argument is an existing page, make it a link, else just text.'''<br/>
 
Usage: <nowiki>{{LinkIfPageExists|ARG}}</nowiki>
 
Usage: <nowiki>{{LinkIfPageExists|ARG}}</nowiki>
[[category:WikiSpooks Templates]]</noinclude><includeonly>{{#if: {{{1|}}} | {{#ifexist: {{{1}}}| [[{{{1}}}]] | {{{1}}}}}}}</includeonly>
+
[[category:Wikispooks Templates]]</noinclude><includeonly>{{#if: {{{1|}}} | {{#ifexist: {{{1}}}| [[{{{1}}}]] | {{{1}}}}}}}</includeonly>

Latest revision as of 17:19, 14 October 2018

If the first argument is an existing page, make it a link, else just text.
Usage: {{LinkIfPageExists|ARG}}