Difference between revisions of "Template:Elc"
blackwiki>GeoffreyT2000 (Cleaning up accepted Articles for creation submission (AFCH 0.9)) |
blackwiki>GeoffreyT2000 (Documentation moved to Template:Elc/doc.) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
<code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}<code><!-- | <code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}<code><!-- | ||
− | --><noinclude>{{documentation | + | --><noinclude> |
− | + | {{documentation}} | |
− | + | </noinclude> | |
− | |||
− | |||
− | |||
− |
Revision as of 19:44, 24 December 2016
[[{{{1}}}]]
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.
See also
Other formatting templates
{{#lsth:Template:Template-linking_templates|Other formatting templates}}
The above documentation is transcluded from Template:Elc/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.