Template:Tlg: Difference between revisions

102 bytes added ,  6 years ago
Add "nowrapname" to prevent template name from wrapping but allow rest of template to wrap. See documentation for example.
(Add "kbd" parameter to display output wrapped in <kbd> tags, similar to output of Template:Tltt, Template:Tltt2, etc. See template documentation for example.)
(Add "nowrapname" to prevent template name from wrapping but allow rest of template to wrap. See documentation for example.)
Line 6:
-->{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!--
 
-->{{#if:{{{nowrapname|}}} |<span class="nowrap">}}<!--
-->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!--
-->{{#if:{{{nolink|}}} |<!--then omit template link, else:
-->| {{#if:{{{braceinside|}}} |<nowiki>{</nowiki>}}<!--
-->{{!((}}:<!--(start building link with "[[:")
-->{{#ifeq:{{padleft:|1|{{{1}}}}}|: <!--i.e. if {{{1}}}'s first character is a colon,
Line 27 ⟶ 28:
-->}}<!--
-->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!--
-->{{#if:{{{nowrapname|}}} |</span>}}<!--
 
-->{{#if:{{{italic|{{{italics|}}}}}} |<span style="font-style:italic;">}}<!--
Anonymous user