Difference between revisions of "Template:LinkIfPageExists"

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

Revision as of 13:12, 5 December 2015

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