Template:Class Tree: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
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-1|}}}| {{#vardefine: path_number | 2 }} }}
{{!}} [[File:Arrowright.png]]
{{#if: {{{3-1|}}}| {{#vardefine: path_number | 3 }} }}
{{!}} {{{1-1|[[File:Dunno.png|40px|link=]]}}}
{{#if: {{{4-1|}}}| {{#vardefine: path_number | 4 }} }}
{{!}} [[File:Arrowright.png]]
{{#vardefine: arg_count|0}}trim2}}
{{!}} {{{1-2|[[File:Dunno.png|40px|link=]]}}}
{{#forargs:
{{!}} [[File:Arrowright.png]]
| key
{{!}} {{{1-3|[[File:Dunno.png|40px|link=]]}}}
| value
{{!}}-
| <nowiki />
{{#vardefine: arg_count | {{#expr: {{#var:arg_count}}+1 }} }}
}}
}}
{{#if:{{{2-0|{{{2-1|}}}}}}|
<div class="class-tree" style="display: inline-grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat({{#ifeq:{{#var:arg_count}}|5|1|{{#var:path_number}} }}, 1fr); gap: 0.2rem 23px">
{{!}} {{{2-0|[[File:Blank.png|40px|link=]]}}}
{{#ifexpr: {{#var:path_number}}>0|
{{!}} [[File:Arrowright.png]]
<div style="{{#ifeq:{{#var:arg_count}}|5||grid-row: span {{#var:path_number}}; align-self:center;}}" class="has-arrow">{{{4-0|{{{3-0|{{{2-0|{{{1-0|}}}}}}}}}}}}</div>
{{!}} {{{2-1|[[File:Dunno.png|40px|link=]]}}}
{{#if: {{{1-1|}}}|
{{!}} [[File:Arrowright.png]]
<div class="has-arrow">{{{1-1|{{#var:dunno}}}}}</div>
{{!}} {{{2-2|[[File:Dunno.png|40px|link=]]}}}
<div class="has-arrow">{{{1-2|{{#var:dunno}}}}}</div>
{{!}} [[File:Arrowright.png]]
<div>{{{1-3|{{#var:dunno}}}}}</div>
{{!}} {{{2-3|[[File:Dunno.png|40px|link=]]}}}
{{!}}-
}}
}}
{{#if:{{{3-0|{{{3-1|}}}}}}|
}}{{#ifexpr: {{#var:path_number}}>1|{{#if: {{{2-1|}}}|<div class="has-arrow">{{{2-1|{{#var:dunno}}}}}</div><div class="has-arrow">{{{2-2|{{#var:dunno}}}}}</div><div>{{{2-3|{{#var:dunno}}}}}</div>
{{!}} {{{3-0|[[File:Blank.png|40px|link=]]}}}
{{!}} [[File:Arrowright.png]]
{{!}} {{{3-1|[[File:Dunno.png|40px|link=]]}}}
{{!}} [[File:Arrowright.png]]
{{!}} {{{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}}>2|
{{!}} {{{4-0|[[File:Blank.png|40px|link=]]}}}
{{#if: {{{3-1|}}}|
{{!}} [[File:Arrowright.png]]
<div class="has-arrow">{{{3-1|{{#var:dunno}}}}}</div>
{{!}} {{{4-1|[[File:Dunno.png|40px|link=]]}}}
<div class="has-arrow">{{{3-2|{{#var:dunno}}}}}</div>
{{!}} [[File:Arrowright.png]]
<div>{{{3-3|{{#var:dunno}}}}}</div>
{{!}} {{{4-2|[[File:Dunno.png|40px|link=]]}}}
{{!}} [[File:Arrowright.png]]
{{!}} {{{4-3|[[File:Dunno.png|40px|link=]]}}}
{{!}}-
}}
}}
|}
}}{{#ifexpr: {{#var:path_number}}>3|
<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>
{{#if: {{{4-1|}}}|
<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>{{Doc}}</noinclude>