Difference between revisions of "Template:Tlg"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Zyxw
(Add "kbd" parameter to display output wrapped in <kbd> tags, similar to output of Template:Tltt, Template:Tltt2, etc. See template documentation for example.)
imported>Zyxw
(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>}}<!--
+
-->| {{#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;">}}<!--

Revision as of 02:24, 16 July 2017

Template documentation[create]