Difference between revisions of "Template:Tlg"
From MINR.ORG WIKI
(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: | Line 6: | ||
-->{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!-- | -->{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!-- | ||
+ | -->{{#if:{{{nowrapname|}}} |<span class="nowrap">}}<!-- | ||
-->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- | -->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- | ||
-->{{#if:{{{nolink|}}} |<!--then omit template link, else: | -->{{#if:{{{nolink|}}} |<!--then omit template link, else: | ||
− | + | -->| {{#if:{{{braceinside|}}} |<nowiki>{</nowiki>}}<!-- | |
-->{{!((}}:<!--(start building link with "[[:") | -->{{!((}}:<!--(start building link with "[[:") | ||
-->{{#ifeq:{{padleft:|1|{{{1}}}}}|: <!--i.e. if {{{1}}}'s first character is a colon, | -->{{#ifeq:{{padleft:|1|{{{1}}}}}|: <!--i.e. if {{{1}}}'s first character is a colon, | ||
Line 27: | Line 28: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- | -->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- | ||
+ | -->{{#if:{{{nowrapname|}}} |</span>}}<!-- | ||
-->{{#if:{{{italic|{{{italics|}}}}}} |<span style="font-style:italic;">}}<!-- | -->{{#if:{{{italic|{{{italics|}}}}}} |<span style="font-style:italic;">}}<!-- |