Difference between revisions of "Template:Elc"
(→Template:Example link, Template:Elc: new section) |
(Doc typo) |
||
Line 3: | Line 3: | ||
{{AFC submission|||ts=20161210143435|u=71.41.210.146|ns=118|type=template}} <!--- Important, do not remove this line before template has been created. ---> | {{AFC submission|||ts=20161210143435|u=71.41.210.146|ns=118|type=template}} <!--- Important, do not remove this line before template has been created. ---> | ||
<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 | + | --><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. | 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. |
Revision as of 15:00, 10 December 2016
Template:Example link, Template:Elc
Review waiting, please be patient.
This may take up to a week, since drafts are reviewed in no specific order. There are 1 pending submissions waiting for review.
Expand
Where to get help Expand
How to improve your article Expand
Improving your odds of a speedy review Expand
Editor resources Expand
Reviewer tools |
Template:NOINDEX
[[{{{1}}}]]
Template documentation
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.
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.
Subpages of this template.
I have a hard time believing such a template doesn't already exist, but my own searches and asking on the help desk hasn't turned one up, so it's worth creating. 71.41.210.146 (talk) 14:34, 10 December 2016 (UTC)