Template:Example link code/doc
![]() | This is a documentation subpage for Template:Example link code. It may contain usage information, categories and other content that is not part of the original template page. |
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 Lua error in Module:Template_link_general at line 136: attempt to concatenate local 'titlePart' (a nil value). template which produces similar output, but for template links.