Template:Example link code/doc: Difference between revisions

Content deleted Content added
No edit summary
Undid revision 1154106728 by Mifield (talk)
Line 3:
This formats an example [[Help:Link|wikilink]] to show how it would be entered in wiki markup. The first parameter is the link destination. E.g. {{tlc|elc|Cookie}} renders as {{elc|Cookie}}, the wiki markup for the wikilink [[Cookie]]. If a second parameter is given, a [[WP:Piped link|piped link]] is shown. E.g. {{tlc|elc|Cookie|Biscuit}} renders as {{elc|Cookie|Biscuit}}, the markup for the wikilink [[Cookie|Biscuit]].
 
A third parameter, if supplied, is included as a suffix to demonstrate [[Help:Wiki markup#Blend link|blended links]]; {{tlc|elc|Cookie|{{zwsp}}|s}} produces {{elc|Cookie|{{zwsp}}|s}}, the wiki markup for [[Cookie]]s.
 
The short name {{tlc|elc}} ("example link, code") is chosen to be similar to the {{tlx|tlc}} template which produces similar output, but for template links.