Template:Class Tree: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{| style="border-collapse: collapse; border: 0px solid rgb(0, 0, 0); width=100%; align=center;" class="class-tree"
<includeonly>{{
|-
{{#vardefine: path_number | 1}}
{{#if:{{{1-0|{{{1-1|}}}}}}|
{{#vardefine: dunno | [[File:Dunno.png|40px|link=]] }}
{{!}} {{{1-0|[[File:Blank.png|40px|link=]]}}}
{{#if: {{{2-0|{{{2-1|}}}}}}| {{#vardefine: path_number | 2 }} }}
{{!}} [[File:Arrowright.png]]
{{#if: {{{3-0|{{{3-1|}}}}}}| {{#vardefine: path_number | 3 }} }}
{{!}} {{{1-1|[[File:Dunno.png|40px|link=]]}}}
{{#if: {{{4-0|{{{4-1|}}}}}}| {{#vardefine: path_number | 4 }} }}
{{!}} [[File:Arrowright.png]]
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">
{{!}} {{{1-2|[[File:Dunno.png|40px|link=]]}}}
{{#ifexpr: {{#var:path_number}}>0
{{!}} [[File:Arrowright.png]]
|
{{!}} {{{1-3|[[File:Dunno.png|40px|link=]]}}}
<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>
}}
}}
{{#if:{{{2-0|{{{2-1|}}}}}}|
{{#ifexpr: {{#var:path_number}}>1
{{!}} {{{2-0|[[File:Blank.png|40px|link=]]}}}
|
{{!}} [[File:Arrowright.png]]
<div class="has-arrow">{{{2-1|{{#var:dunno}}}}}</div>
{{!}} {{{2-1|[[File:Dunno.png|40px|link=]]}}}
<div class="has-arrow">{{{2-2|[[File:Dunno.png|link=]]}}}</div>
{{!}} [[File:Arrowright.png]]
<div>{{{2-3|{{#var:dunno}}}}}</div>
{{!}} {{{2-2|[[File:Dunno.png|40px|link=]]}}}
{{!}} [[File:Arrowright.png]]
{{!}} {{{2-3|[[File:Dunno.png|40px|link=]]}}}
{{!}}-
}}
}}
{{#if:{{{3-0|{{{3-1|}}}}}}|
{{#ifexpr: {{#var:path_number}}>2
{{!}} {{{3-0|[[File:Blank.png|40px|link=]]}}}
|
{{!}} [[File:Arrowright.png]]
<div class="has-arrow">{{{3-1|{{#var:dunno}}}}}</div>
{{!}} {{{3-1|[[File:Dunno.png|40px|link=]]}}}
<div class="has-arrow">{{{3-2|{{#var:dunno}}}}}</div>
{{!}} [[File:Arrowright.png]]
<div>{{{3-3|{{#var:dunno}}}}}</div>
{{!}} {{{3-2|[[File:Dunno.png|40px|link=]]}}}
{{!}} [[File:Arrowright.png]]
{{!}} {{{3-3|[[File:Dunno.png|40px|link=]]}}}
{{!}}-
}}
}}
{{#if:{{{4-0|{{{4-1|}}}}}}|
{{#ifexpr: {{#var:path_number}}>3
{{!}} {{{4-0|[[File:Blank.png|40px|link=]]}}}
|
{{!}} [[File:Arrowright.png]]
<div class="has-arrow">{{{4-1|{{#var:dunno}}}}}</div>
{{!}} {{{4-1|[[File:Dunno.png|40px|link=]]}}}
<div class="has-arrow">{{{4-2|{{#var:dunno}}}}}</div>
{{!}} [[File:Arrowright.png]]
<div>{{{4-3|{{#var:dunno}}}}}</div>
{{!}} {{{4-2|[[File:Dunno.png|40px|link=]]}}}
{{!}} [[File:Arrowright.png]]
{{!}} {{{4-3|[[File:Dunno.png|40px|link=]]}}}
{{!}}-
}}
}}
|}
</div></includeonly>
<noinclude>{{Class Tree|1-0=[[File:Dunno.png|40px|link=]]|2-0=[[File:Dunno.png|40px|link=]]|3-0=[[File:Dunno.png|40px|link=]]|4-0=[[File:Dunno.png|40px|link=]]}}</noinclude>
<noinclude>{{Doc}}</noinclude>