meta>GeoffreyT2000 |
|
(2 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| == [[Template:Example link]], [[Template:Elc]] ==
| | <code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}</code><!-- |
| | | --><noinclude> |
| <code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}<code><!-- | | {{documentation}} |
| --><noinclude>{{documentation|content=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 <code>[<nowiki/>[Cookie]]</code>, 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 <code>[<nowiki/>[Cookie{{!}}Biscuit]]</code>, the markup for the wikilink [[Cookie|Biscuit]]. | | </noinclude> |
| | |
| A third parameter, if supplied, is included as a suffix to demonstrate [[Help:Wiki markup#Blend link|blended links]]; {{tlc|elc|Cookie||s}} produces <code>[<nowiki/>[Cookie]]s</code>, the wiki markup for [[Cookie]]s.
| |
| | |
| The short name {{tlc|elc}} ("example link, code") is chosen to be similar to the {{tlc}} template which produces similar output, but for template links.
| |
| }}</noinclude>
| |
| I have a hard time believing such a template doesn't already exist, but my own searches and [[WP:Help desk#Is_there_a_template_like_.7B.7Btlc.7C....7D.7D_for_wikilinks.3F|asking on the help desk]] hasn't turned one up, so it's worth creating. [[Special:Contributions/71.41.210.146|71.41.210.146]] ([[User talk:71.41.210.146|talk]]) 14:34, 10 December 2016 (UTC)
| |