Difference between revisions of "Template:Auto link/doc"

From blackwiki
Jump to navigation Jump to search
imported>AussieLegend
(fix link)
imported>Vanisaac
m (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
Line 17: Line 17:
  
  
<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>

Revision as of 23:27, 23 April 2020

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