• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.121
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Auto link

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
(Redirected from Template:AutoLink)
Template documentation[view] [edit] [history] [purge]

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}} → a
  • {{auto link|aqrp}} → aqrp
  • {{auto link|a|letter a}} → letter a
  • {{auto link|aqrp|,asmd}} → ,asmd
The above documentation is transcluded from Template:Auto link/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Auto_link&oldid=5582"
Category:
  • Internal link templates
Last edited on 1 November 2013, at 21:46

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 1 November 2013, at 21:46.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop