Difference between revisions of "Template:Elc"

From blackwiki
Jump to navigation Jump to search
(Doc typo)
m (6 revisions imported)
 
(4 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>
{{AFC submission|||ts=20161210143435|u=71.41.210.146|ns=118|type=template}} <!--- Important, do not remove this line before template has been created. --->
+
{{documentation}}
<code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}<code><!--
+
</noinclude>
--><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]].
 
 
 
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 {{tlx|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)
 

Latest revision as of 11:10, 22 September 2020

[[{{{1}}}]]

Template documentation[view] [edit] [history] [purge]

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}}