Jump to content

Template:Example link code/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 71.41.210.146 (talk) at 21:25, 27 December 2016 (Now that the template exists, it can be used on its own documentation page.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This formats an example wikilink to show how it would be entered in wiki markup. The first parameter is the link destination. E.g. {{elc|Cookie}} renders as [[Cookie]], the wiki markup for the wikilink Cookie. If a second parameter is given, a piped link is shown. E.g. {{elc|Cookie|Biscuit}} renders as [[Cookie|Biscuit]], the markup for the wikilink Biscuit.

A third parameter, if supplied, is included as a suffix to demonstrate blended links; {{elc|Cookie|s}} produces [[Cookie]]s, the wiki markup for Cookies.

The short name {{elc}} ("example link, code") is chosen to be similar to the {{tlc}} template which produces similar output, but for template links.