Anonymous

Template:Class Tree: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 15: Line 15:
{{#vardefine: arg_count | {{#expr: {{#var:arg_count}}+1 }} }}
{{#vardefine: arg_count | {{#expr: {{#var:arg_count}}+1 }} }}
}}
}}
{{#var:arg_count}}
<div class="class-tree" style="display: inline-grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat({{#ifeq:{{#var:arg_count}}|4|1|{{#var:path_number}} }}, 1fr); gap: 0.2rem 23px">
<div class="class-tree" style="display: inline-grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat({{#ifeq:{{#var:arg_count}}|4|1|{{#var:path_number}} }}, 1fr); gap: 0.2rem 23px">
{{#ifexpr: {{#var:path_number}}>0
{{#ifexpr: {{#var:path_number}}>0