模板:Elc:修订间差异

来自决策链云智库
(创建页面,内容为“{{documentation subpage}} This formats an example 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 {{elc|Cookie}}, the wiki markup for the wikilink Cookie. If a second parameter is given, a piped link is shown. E.g. {{tlc|elc|Cookie|Biscuit}} renders as {{elc|Cookie|Biscuit}}, the markup for the wikilink Biscuit. A third p…”)
 
无编辑摘要
 
第1行: 第1行:
{{documentation subpage}}
<includeonly><code>[<nowiki/>[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]<nowiki/>]{{{3|}}}</code></includeonly><!--
 
--><noinclude>
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 {{elc|Cookie}}, 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 {{elc|Cookie|Biscuit}}, 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|{{zwsp}}|s}} produces {{elc|Cookie||s}}, 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.
 
== See also ==
===Other formatting templates===
{{#lsth:Template:Template-linking_templates|Other formatting templates}}
<includeonly>{{Sandbox other|
| <!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Internal article-link templates]]
[[Category:Wikitext typing-aid templates]]
}}</includeonly>

2024年1月17日 (三) 16:34的最新版本