Difference between revisions of "Template:Tlg"

From MINR.ORG WIKI
(Update via sandbox/testcases ("plaincode" option, "boldlink"/"boldname" and "italics" alternatives))
m (36 revisions imported: Import Template Tlx and subtemplates)
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
  -->{{#if:{{{nowrap|}}}        |<span class="nowrap">}}<!--
 
  -->{{#if:{{{nowrap|}}}        |<span class="nowrap">}}<!--
 
  -->{{#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:{{{nowrapname|}}}    |<span class="nowrap">}}<!--
 
  -->{{#if:{{{braceinside|}}}  | |<nowiki>{{</nowiki>}}<!--
 
  -->{{#if:{{{braceinside|}}}  | |<nowiki>{{</nowiki>}}<!--
 
  -->{{#if:{{{subst|}}}        |[[Help:Substitution|subst]]:}}<!--
 
  -->{{#if:{{{subst|}}}        |[[Help:Substitution|subst]]:}}<!--
Line 7: 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>}}<!--
+
-->| {{#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 26: 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;">}}<!--
Line 42: Line 45:
  
 
  -->{{#if:{{{braceinside|}}} | |<nowiki>}}</nowiki>}}<!--
 
  -->{{#if:{{{braceinside|}}} | |<nowiki>}}</nowiki>}}<!--
 +
-->{{#if:{{{kbd|}}} |</kbd>}}<!--
 
  -->{{#if:{{{code|{{{tt|}}}}}}{{{plaincode|}}} |</code>}}<!--
 
  -->{{#if:{{{code|{{{tt|}}}}}}{{{plaincode|}}} |</code>}}<!--
 
  -->{{#if:{{{nowrap|}}} |</span>}}<!--
 
  -->{{#if:{{{nowrap|}}} |</span>}}<!--

Latest revision as of 19:27, 11 August 2017

Template documentation[create]