Template:CharTree: Difference between revisions

From Elwiki
No edit summary
(Replaced content with "<includeonly>{{#invoke:CharTree|main}}</includeonly><noinclude>{{Doc}}</noinclude>")
Tag: Replaced
 
Line 1: Line 1:
<includeonly>{{
<includeonly>{{#invoke:CharTree|main}}</includeonly><noinclude>{{Doc}}</noinclude>
{{#arraydefine: classes |
{{#replace: {{{1x1|}}}|Lofty:|Lofty}},
{{#replace: {{{2x1|}}}|Lofty:|Lofty}},
{{#replace: {{{3x1|}}}|Lofty:|Lofty}},
{{#replace: {{{4x1|}}}|Lofty:|Lofty}},
}}
{{#arraydefine: classes |
{{#replace:{{#arrayindex: classes|0}}|Code:|Code}},
{{#replace:{{#arrayindex: classes|1}}|Code:|Code}},
{{#replace:{{#arrayindex: classes|2}}|Code:|Code}},
{{#replace:{{#arrayindex: classes|3}}|Code:|Code}},
{{#replace:{{{1x2|}}}|Code:|Code}},
{{#replace:{{{2x2|}}}|Code:|Code}},
{{#replace:{{{3x2|}}}|Code:|Code}},
{{#replace:{{{4x2|}}}|Code:|Code}},
{{#replace:{{{1x3|}}}|Code:|Code}},
{{#replace:{{{2x3|}}}|Code:|Code}},
{{#replace:{{{3x3|}}}|Code:|Code}},
{{#replace:{{{4x3|}}}|Code:|Code}}
}}
trim2}}<div class="char-banner-tree" data-base="{{{1|}}}">
<!-- 1st job -->
<div class="char-banner-tree-image" data-class-name="{{{1x1|}}}">[[File:{{#if: {{{no1path|}}}|Dunno|Icon - {{#arrayindex: classes|0}}}}.png|link={{#if: {{{no1path|}}}||{{{1x1|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{2x1|}}}">[[File:{{#if: {{{no2path|}}}|Dunno|Icon - {{#arrayindex: classes|1}}}}.png|link={{#if: {{{no2path|}}}||{{{2x1|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{3x1|}}}">[[File:{{#if: {{{no3path|}}}|Dunno|Icon - {{#arrayindex: classes|2}}}}.png|link={{#if: {{{no3path|}}}||{{{3x1|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{4x1|}}}">[[File:{{#if: {{{no4path|}}}|Dunno|Icon - {{#arrayindex: classes|3}}}}.png|link={{#if: {{{no4path|}}}||{{{4x1|}}}}}]]</div>
<!-- 2nd job -->
<div class="char-banner-tree-image" data-class-name="{{{1x2|}}}">[[File:{{#if: {{{no1path|}}}|Dunno|Icon - {{#arrayindex: classes|4}}}}.png|link={{#if: {{{no1path|}}}||{{{1x2|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{2x2|}}}">[[File:{{#if: {{{no2path|}}}|Dunno|Icon - {{#arrayindex: classes|5}}}}.png|link={{#if: {{{no2path|}}}||{{{2x2|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{3x2|}}}">[[File:{{#if: {{{no3path|}}}|Dunno|Icon - {{#arrayindex: classes|6}}}}.png|link={{#if: {{{no3path|}}}||{{{3x2|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{4x2|}}}">[[File:{{#if: {{{no4path|}}}|Dunno|Icon - {{#arrayindex: classes|7}}}}.png|link={{#if: {{{no4path|}}}||{{{4x2|}}}}}]]</div>
<!-- 3rd job -->
<div class="char-banner-tree-image" data-class-name="{{{1x3|}}}" {{#if:{{{no1path3job|}}}|data-unreleased="true"}}>[[File:{{#if: {{{no1path|{{{no1path3job|}}}}}}|Dunno|Icon - {{#arrayindex: classes|8}}}}.png|link={{#if: {{{no1path|}}}||{{{1x3|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{2x3|}}}" {{#if:{{{no2path3job|}}}|data-unreleased="true"}}>[[File:{{#if: {{{no2path|{{{no2path3job|}}}}}}|Dunno|Icon - {{#arrayindex: classes|9}}}}.png|link={{#if: {{{no2path|}}}||{{{2x3|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{3x3|}}}" {{#if:{{{no3path3job|}}}|data-unreleased="true"}}>[[File:{{#if: {{{no3path|{{{no3path3job|}}}}}}|Dunno|Icon - {{#arrayindex: classes|10}}}}.png|link={{#if: {{{no3path|}}}||{{{3x3|}}}}}]]</div>
<div class="char-banner-tree-image" data-class-name="{{{4x3|}}}" {{#if:{{{no4path3job|}}}|data-unreleased="true"}}>[[File:{{#if: {{{no4path|{{{no4path3job|}}}}}}|Dunno|Icon - {{#arrayindex: classes|11}}}}.png|link={{#if: {{{no4path|}}}||{{{4x3|}}}}}]]</div>
</div>
</includeonly><noinclude>{{Doc}}</noinclude>

Latest revision as of 10:11, 30 June 2022

Information: If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:CharTree/doc.