Information: If you want to test this template, please use Sandbox.
The documentation does not exist, you can click here to create.
Template:Class Tree: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{| | <includeonly>{{ | ||
{{#vardefine: path_number | 1}} | |||
{{#if:{{{ | {{#vardefine: dunno | [[File:Dunno.png|40px|link=]] }} | ||
{{ | {{#if: {{{2-0|{{{2-1|}}}}}}| {{#vardefine: path_number | 2 }} }} | ||
{{ | {{#if: {{{3-0|{{{3-1|}}}}}}| {{#vardefine: path_number | 3 }} }} | ||
{{ | {{#if: {{{4-0|{{{4-1|}}}}}}| {{#vardefine: path_number | 4 }} }} | ||
{{ | trim2}}<div class="class-tree" style="display: inline-grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat({{#var:path_number}}, 1fr); gap: 0.2rem 23px"> | ||
{{ | {{#ifexpr: {{#var:path_number}}>0 | ||
{{ | | | ||
{{ | <div style="grid-row: span {{#var:path_number}}; align-self: center;" class="has-arrow">{{{4-0|{{{3-0|{{{2-0|{{{1-0|}}}}}}}}}}}}</div> | ||
<div class="has-arrow">{{{1-1|{{#var:dunno}}}}}</div> | |||
<div class="has-arrow">{{{1-2|{{#var:dunno}}}}}</div> | |||
<div>{{{1-3|{{#var:dunno}}}}}</div> | |||
}} | }} | ||
{{# | {{#ifexpr: {{#var:path_number}}>1 | ||
| | |||
<div class="has-arrow">{{{2-1|{{#var:dunno}}}}}</div> | |||
<div class="has-arrow">{{{2-2|[[File:Dunno.png|link=]]}}}</div> | |||
<div>{{{2-3|{{#var:dunno}}}}}</div> | |||
}} | }} | ||
{{# | {{#ifexpr: {{#var:path_number}}>2 | ||
| | |||
{{ | <div class="has-arrow">{{{3-1|{{#var:dunno}}}}}</div> | ||
<div class="has-arrow">{{{3-2|{{#var:dunno}}}}}</div> | |||
<div>{{{3-3|{{#var:dunno}}}}}</div> | |||
}} | }} | ||
{{# | {{#ifexpr: {{#var:path_number}}>3 | ||
| | |||
{{ | <div class="has-arrow">{{{4-1|{{#var:dunno}}}}}</div> | ||
<div class="has-arrow">{{{4-2|{{#var:dunno}}}}}</div> | |||
<div>{{{4-3|{{#var:dunno}}}}}</div> | |||
}} | }} | ||
</div></includeonly> | |||
<noinclude>{{ | <noinclude>{{Doc}}</noinclude> |