Template:Template example bullet and Template:Template example bullet/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
imported>Guarapiranga
: Take {{tl|THISTEMPLATE}} if none is spec'd, as suggested in the Talk page, and tested in the sandbox; works in subtemplate doc page transclusions as well (which {{pf|BASEPAGENAME}} doesn't)
 
imported>Aidan9382
Undid revision 1103058412 by Aidan9382 (talk) - Well, its actually fine to do this, just need to be careful about template loops. I'll see if I can hack in a fix for the testcases page's looping
 
Line 2: Line 2:
  -->{{#if:{{{1|{{THISTEMPLATE}}}}}
  -->{{#if:{{{1|{{THISTEMPLATE}}}}}
     |  <span style="{{#if:{{{codesize|}}}|font-size:{{{codesize}}}}};{{{codestyle|}}}"><!--
     |  <span style="{{#if:{{{codesize|}}}|font-size:{{{codesize}}}}};{{{codestyle|}}}"><!--
           -->{{Tlx|{{{1|{{THISTEMPLATE}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}}}<!--
           -->{{Tlx|{{{1|{{BASEPAGENAME}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}}}<!--
       --></span>&nbsp;→&nbsp;<!--
       --></span>&nbsp;→&nbsp;<!--
           -->{{#if:{{{7|}}} |{{{{{1|{{THISTEMPLATE}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}|4={{{5}}}|5={{{6}}}|6={{{7}}}}}
           -->{{#if:{{{7|}}} |{{{{{1|{{BASEPAGENAME}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}|4={{{5}}}|5={{{6}}}|6={{{7}}}}}
               | {{#if:{{{6|}}} |{{{{{1|{{THISTEMPLATE}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}|4={{{5}}}|5={{{6}}}}}
               | {{#if:{{{6|}}} |{{{{{1|{{BASEPAGENAME}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}|4={{{5}}}|5={{{6}}}}}
                 | {{#if:{{{5|}}} |{{{{{1|{{THISTEMPLATE}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}|4={{{5}}}}}
                 | {{#if:{{{5|}}} |{{{{{1|{{BASEPAGENAME}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}|4={{{5}}}}}
                     | {{#if:{{{4|}}} |{{{{{1|{{THISTEMPLATE}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}}}
                     | {{#if:{{{4|}}} |{{{{{1|{{BASEPAGENAME}}}}}|1={{{2}}}|2={{{3}}}|3={{{4}}}}}
                       | {{#if:{{{3|}}} |{{{{{1|{{THISTEMPLATE}}}}}|1={{{2}}}|2={{{3}}}}}
                       | {{#if:{{{3|}}} |{{{{{1|{{BASEPAGENAME}}}}}|1={{{2}}}|2={{{3}}}}}
                           | {{#if:{{{2|}}} |{{{{{1|{{THISTEMPLATE}}}}}|1={{{2}}}}}
                           | {{#if:{{{2|}}} |{{{{{1|{{BASEPAGENAME}}}}}|1={{{2}}}}}
                             | {{{{{1|{{THISTEMPLATE}}}}}}}
                             | {{{{{1|{{BASEPAGENAME}}}}}}}
             }} }} }} }} }} }}
             }} }} }} }} }} }}
     |  <span style="font-size:bigger;color:#FF0000;font-weight:bold;">ERROR:</span> No template specified.
     |  <span style="font-size:bigger;color:#FF0000;font-weight:bold;">ERROR:</span> No template specified.
     }}<!--
     }}<!--
--></includeonly><noinclude>{{Documentation}}</noinclude>
--></includeonly><noinclude>{{Documentation}}</noinclude>