2,495 bytes added,
18:43, 22 July 2012 {{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template can be used to simplify the inclusion of links in templates where users may use several different forms of syntax. It accepts a parameter and returns it linked, unless it already is. Works both with wikilinks and with http links.
It is primarily of use in templates and should '''not''' be used in articles directly.
This template can be substituted.
=== Usage ===
; Wiki links
*{{tlx|linked|Foo}} → {{linked|Foo}}
*{{tlx|linked|Foo|Bar}} → {{linked|Foo|Bar}}
*{{tlx|linked|<nowiki>[[Foo]]</nowiki>|Bar}} → {{linked|[[Foo]]|Bar}}
*{{tlx|linked|:Foo}} → {{linked|:Foo}}
*{{tlx|linked|File:Example.jpg}} → {{linked|File:Example.jpg}}
*{{tlx|linked|:File:Example.jpg}} → {{linked|:File:Example.jpg}}
*{{tlx|linked|Category:Food}} → {{linked|Category:Food}}
*{{tlx|linked|:Category:Food}} → {{linked|:Category:Food}}
;Http links
*{{tlx|linked|<nowiki> http://example.org</nowiki>}} → {{linked| http://example.org}}
*{{tlx|linked|<nowiki> http://example.org</nowiki>|Bar}} → {{linked|http://example.org|Bar}}
*{{tlx|linked|<nowiki> [http://example.org Foo]</nowiki>|Bar}} → {{linked|[http://example.org Foo]|Bar}}
;Https links
*{{tlx|linked|<nowiki>https://example.org</nowiki>}} → {{linked|https://example.org}}
*{{tlx|linked|<nowiki>https://example.org</nowiki>|Bar}} → {{linked|https://example.org|Bar}}
*{{tlx|linked|<nowiki>[https://example.org Foo]</nowiki>|Bar}} → {{linked|[https://example.org Foo]|Bar}}
;Protocol-relative // links
*{{tlx|linked|<nowiki> //example.org</nowiki>}} → {{linked|//example.org}}
*{{tlx|linked|<nowiki> //example.org</nowiki>|Bar}} → {{linked|//example.org|Bar}}
*{{tlx|linked|<nowiki> [//example.org Foo]</nowiki>|Bar}} → {{linked|[//example.org Foo]|Bar}}
=== See also ===
*{{tl|Image}}
*{{tl|File title}}
*{{tl|Category title}}
*{{tl|Transclude}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia metatemplates]]
[[es:Plantilla:Enlazado]]
[[sl:Predloga:Linked]]
}}</includeonly>