Template:Elc: Difference between revisions
meta>GeoffreyT2000 m GeoffreyT2000 moved page Draft:Template:Example link to Template:Elc: Publishing accepted Articles for creation submission (AFCH 0.9) |
meta>GeoffreyT2000 Cleaning up accepted Articles for creation submission (AFCH 0.9) |
||
| Line 1: | Line 1: | ||
== [[Template:Example link]], [[Template:Elc]] == | == [[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]]. | --><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]]. | ||
| Line 7: | Line 6: | ||
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. | ||
The short name {{tlc|elc}} ("example link, code") is chosen to be similar to the {{ | 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> | }}</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) | 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) | ||
Revision as of 19:39, 24 December 2016
[[{{{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 Lua error in Module:Template_link_general at line 136: attempt to concatenate local 'titlePart' (a nil value). 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 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)