Template:AutoLink: Difference between revisions

(New page: {{#ifexist:{{{1|}}}|{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}}<noinclude>{{pp-template|small=yes}} To use this template, put <nowiki>{{AutoLink|tar...)
 
m (Protected "Template:AutoLink": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifexist:{{{1|}}}|{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}}<noinclude>{{pp-template|small=yes}}
{{#ifexist:{{{1|}}}|{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}}}<noinclude>
To use this template, put <nowiki>{{AutoLink|target|word}}</nowiki> (if there is no word parameter, then the template will function in the same way as if it were the target). If the link location exists a link will be created, if not it will not. This template exists to avoid redlinks being created. If the page is created, the link will be formed.
To use this template, put <nowiki>{{AutoLink|target|word}}</nowiki> (if there is no word parameter, then the template will function in the same way as if it were the target). If the link location exists a link will be created, if not it will not. This template exists to avoid redlinks being created. If the page is created, the link will be formed.



Latest revision as of 17:30, 25 December 2010

{{{1}}} To use this template, put {{AutoLink|target|word}} (if there is no word parameter, then the template will function in the same way as if it were the target). If the link location exists a link will be created, if not it will not. This template exists to avoid redlinks being created. If the page is created, the link will be formed.

This template also exists to allow templates to accept either plain text or wikitext for parameters, automatically linkifying the value if it is plain text, and an article exists there. (see Infobox U.S. County)

This template should not be used in the mainspace, as red links are good.