Template:Elc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Cleaning up accepted Articles for creation submission (AFCH 0.9)) |
(Documentation moved to Template:Elc/doc.) |
||
Line 1: | Line 1: | ||
== [[Template:Example link]], [[Template:Elc]] == |
|||
<code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}<code><!-- |
<code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}<code><!-- |
||
⚫ | |||
--><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]]. |
|||
{{documentation}} |
|||
</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. |
|||
⚫ | |||
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) |