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.) |
Rickyboy320 (talk | contribs) m (36 revisions imported: Import Template Tlx and subtemplates) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
-->{{#if:{{{code|{{{tt|}}}}}} |<code> |{{#if:{{{plaincode|}}}|<code style="border:none;background:transparent;">}} }}<!-- | -->{{#if:{{{code|{{{tt|}}}}}} |<code> |{{#if:{{{plaincode|}}}|<code style="border:none;background:transparent;">}} }}<!-- | ||
-->{{#if:{{{kbd|}}} |<kbd>}}<!-- | -->{{#if:{{{kbd|}}} |<kbd>}}<!-- | ||
+ | -->{{#if:{{{nowrapname|}}} |<span class="nowrap">}}<!-- | ||
-->{{#if:{{{braceinside|}}} | |<nowiki>{{</nowiki>}}<!-- | -->{{#if:{{{braceinside|}}} | |<nowiki>{{</nowiki>}}<!-- | ||
-->{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!-- | -->{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!-- | ||
Line 8: | Line 9: | ||
-->{{#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;">}}<!-- |