Template:Autolink/doc
< Template:AutolinkRevision as of 23:28, 3 February 2015 by Dinoguy1000 (talk | contribs) (→Usage: demonstrate nonlinking of quotes)
This is a documentation subpage for Template:Autolink. It may contain usage information, categories and other content that is not part of the original template page. |
{{Autolink}} is used to automatically link input while allowing for link syntax and bold, italics, and unlinked quotes. Linking can be suppressed with {{Nolink}}; see that template for usage instructions.
Usage
Code | Output | Notes |
---|---|---|
{{autolink|Test}} |
Test | Unlinked input |
{{autolink|Test|Foobar}} |
Test | Unlinked input with custom link text |
{{autolink|[[Test]]}} |
Test | Linked input |
{{autolink|[[Test|Foobar]]}} |
Foobar | Linked input with custom link text |
{{autolink|This is a ''test''}} |
This is a test | Unlinked input with italics |
{{autolink|This is a '''test'''}} |
This is a test | Unlinked input with bold |
{{autolink|This is a ""test""}} |
This is a "test" | Unlinked input with quotes |
{{autolink|""This is a test""}} |
"This is a test" | Unlinked input, whole input is quoted |
{{autolink|This is a ""'''''test'''''""}} |
This is a "test" | Unlinked input with quotes, bold, and italics |
{{autolink| * This * That }} |
Unlinked input as a list | |
{{autolink| * This * [[is|a]] * ""'''''test'''''"" }} |
Everything, almost |