Difference between revisions of "User:Jynx/Sandbox/Template2"

From Jackpoint
Line 1: Line 1:
 
<table class="wikitable">
 
<table class="wikitable">
 
   <tr>
 
   <tr>
     <th>Foo</th> {{#if: {{{bar|}}} | <th>Bar</th> }}
+
     <th>A</th>
 +
    <th>B</th>
 +
    <th>C</th>
 
   </tr>
 
   </tr>
 +
{{#ifexpr: {{{max|0}}} >= 1 |
 
   <tr>
 
   <tr>
    <td>foo</td> {{#if: {{{bar|}}} | <td>{{{bar|}}}</td> }}
+
{{#ifexpr: {{{max|0}}} >= 1 | <td></td> }}}
 +
{{#ifexpr: {{{max|0}}} >= 2 | <td></td> }}}
 +
{{#ifexpr: {{{max|0}}} >= 3 | <td></td> }}}
 
   </tr>
 
   </tr>
 +
}}
 +
{{#ifexpr: {{{max|0}}} >= 4 |
 +
  <tr>
 +
{{#ifexpr: {{{max|0}}} >= 4 | <td></td> }}}
 +
{{#ifexpr: {{{max|0}}} >= 5 | <td></td> }}}
 +
{{#ifexpr: {{{max|0}}} >= 6 | <td></td> }}}
 +
  </tr>
 +
}}
 +
 
</table>
 
</table>
 
{{#ifexpr: {{{x|0}}} >= 1 | Hello }}
 
{{#ifexpr: {{{x|0}}} >= 2 | Hello }}
 
{{#ifexpr: {{{x|0}}} >= 3 | Hello }}
 
{{#ifexpr: {{{x|0}}} >= 4 | Hello }}
 
{{#ifexpr: {{{x|0}}} >= 5 | Hello }}
 

Revision as of 20:49, 15 December 2020

A B C