Difference between revisions of "Template:Autolink/doc"

From Yugipedia
Jump to: navigation, search
(Usage: add a section link demonstration)
(rm example with second parameter; update header levels)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
  
{{t|Autolink}} is used to automatically link input while allowing for link syntax and bold, italics, and unlinked quotes. Linking can be suppressed with {{tl|Nolink}}; see that template for usage instructions.
+
{{Lua|Module:Autolink}}
  
=== Usage ===
+
{{t|Autolink}} is used to automatically link input while allowing for link syntax and bold, italics, and unlinked quotes.
 +
 
 +
== Usage ==
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 14: Line 16:
 
| {{autolink|Test}}
 
| {{autolink|Test}}
 
| Unlinked input
 
| Unlinked input
|-
 
| <pre>{{autolink|Test|Foobar}}</pre>
 
| {{autolink|Test|Foobar}}
 
| Unlinked input with custom link text
 
 
|-
 
|-
 
| <pre>{{autolink|[[Test]]}}</pre>
 
| <pre>{{autolink|[[Test]]}}</pre>
Line 75: Line 73:
 
|}
 
|}
  
=== See also ===
+
== See also ==
 
* {{t|Unlink}}, a template that unlinks input
 
* {{t|Unlink}}, a template that unlinks input
* {{t|Nolink}}, a template that prevents input from being linked by {{t|Autolink}}
+
* {{t|Delink}}, a template that removes all links from input
 +
* {{t|Formatted link}}, a template for formatting a single link
 +
* [[wikipedia:Template:Section link|Template:Section link]] on Wikipedia
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES HERE, THANKS -->
 
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</includeonly>
 
</includeonly>

Latest revision as of 19:27, 31 March 2024

{{Autolink}} is used to automatically link input while allowing for link syntax and bold, italics, and unlinked quotes.

Usage[edit]

Code Output Notes
{{autolink|Test}}
Test Unlinked input
{{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 a section link
{{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

See also[edit]