Difference between revisions of "Template:Auto link/doc"
Jump to navigation
Jump to search
imported>DixonDBot m (Migrating 3 interwiki links, now provided by Wikidata on d:Q6705183) |
imported>Trialpears m (Removing unnecessary Template:Intricate template per Template talk:Intricate template#Change to editnotice? (via WP:JWB)) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| − | |||
=== Usage === | === Usage === | ||
To use this template, put {{tlf|auto link|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. | To use this template, put {{tlf|auto link|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 | + | 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 {{tl|Infobox Australian place}}). |
This template should not be used in the mainspace, as [[Wikipedia:Red link|red links]] are good. | This template should not be used in the mainspace, as [[Wikipedia:Red link|red links]] are good. | ||
| Line 17: | Line 16: | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Internal link templates|{{PAGENAME}}]] | [[Category:Internal link templates|{{PAGENAME}}]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 22:22, 9 July 2020
| This is a documentation subpage for Template:Auto link. It contains usage information, categories and other content that is not part of the original template page. |
Usage
To use this template, put {{auto link|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 Australian place}}).
This template should not be used in the mainspace, as red links are good.
Examples
"{{auto link|a}}"gives "a" [1]"{{auto link|aqrp}}"gives "aqrp" [2]- Template:Xpd2
- Template:Xpd2