Template:Tree chart: Difference between revisions

From Wikibundi
(Created page with "<includeonly><tr style="height: 1px; text-align: center;">{{ {{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|{{uc:{{{1}}}}}|chart/cell{{{1|x}}}t|chart/box}}|{{{{{{1}}}}}}|{{{border_{{{1}}}|{{{border|2}}}}}}|{{{boxstyle_{{{1}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{1}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{1}}}|{{{rowspan|2}}}}}}}}{{ {{#ifeq:{{ucfirst:{{lc:{{{2}}}}}}}|{{uc:{{{2}}}}}|chart/cell{{{2|x}}}t|chart/box}}|{{{{{{2}}}}}}|{{{border_{{{2}}}|{{{border|2}}}}}}|{{{boxstyle_{{{2}}}|{{{boxsty...")
Tag: Reverted
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><tr style="height: 1px; text-align: center;">{{
<!-- Template:Tree chart -->
{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|{{uc:{{{1}}}}}|chart/cell{{{1|x}}}t|chart/box}}|{{{{{{1}}}}}}|{{{border_{{{1}}}|{{{border|2}}}}}}|{{{boxstyle_{{{1}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{1}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{1}}}|{{{rowspan|2}}}}}}}}{{
{{#vardefine:__out|}}
{{#ifeq:{{ucfirst:{{lc:{{{2}}}}}}}|{{uc:{{{2}}}}}|chart/cell{{{2|x}}}t|chart/box}}|{{{{{{2}}}}}}|{{{border_{{{2}}}|{{{border|2}}}}}}|{{{boxstyle_{{{2}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{2}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{2}}}|{{{rowspan|2}}}}}}}}{{
<!-- helper: produce cell content (compare the cell token to known label names and substitute if provided) -->
{{#ifeq:{{ucfirst:{{lc:{{{3}}}}}}}|{{uc:{{{3}}}}}|chart/cell{{{3|x}}}t|chart/box}}|{{{{{{3}}}}}}|{{{border_{{{3}}}|{{{border|2}}}}}}|{{{boxstyle_{{{3}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{3}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{3}}}|{{{rowspan|2}}}}}}}}{{
{{#macro:mapCell|{{{1|}}}|{{{GrMa|}}}|{{{GRP|}}}|{{{MOM|}}}|{{{DAD|}}}|{{{DAISY|}}}|{{{JOE|}}}|{{{ME|}}}|{{{SIS|}}}}}
{{#ifeq:{{ucfirst:{{lc:{{{4}}}}}}}|{{uc:{{{4}}}}}|chart/cell{{{4|x}}}t|chart/box}}|{{{{{{4}}}}}}|{{{border_{{{4}}}|{{{border|2}}}}}}|{{{boxstyle_{{{4}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{4}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{4}}}|{{{rowspan|2}}}}}}}}{{
<!-- ^ we call this below for each position 1..11 -->
{{#ifeq:{{ucfirst:{{lc:{{{5}}}}}}}|{{uc:{{{5}}}}}|chart/cell{{{5|x}}}t|chart/box}}|{{{{{{5}}}}}}|{{{border_{{{5}}}|{{{border|2}}}}}}|{{{boxstyle_{{{5}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{5}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{5}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{6}}}}}}}|{{uc:{{{6}}}}}|chart/cell{{{6|x}}}t|chart/box}}|{{{{{{6}}}}}}|{{{border_{{{6}}}|{{{border|2}}}}}}|{{{boxstyle_{{{6}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{6}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{6}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{7}}}}}}}|{{uc:{{{7}}}}}|chart/cell{{{7|x}}}t|chart/box}}|{{{{{{7}}}}}}|{{{border_{{{7}}}|{{{border|2}}}}}}|{{{boxstyle_{{{7}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{7}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{7}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{8}}}}}}}|{{uc:{{{8}}}}}|chart/cell{{{8|x}}}t|chart/box}}|{{{{{{8}}}}}}|{{{border_{{{8}}}|{{{border|2}}}}}}|{{{boxstyle_{{{8}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{8}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{8}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{9}}}}}}}|{{uc:{{{9}}}}}|chart/cell{{{9|x}}}t|chart/box}}|{{{{{{9}}}}}}|{{{border_{{{9}}}|{{{border|2}}}}}}|{{{boxstyle_{{{9}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{9}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{9}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{10}}}}}}}|{{uc:{{{10}}}}}|chart/cell{{{10|x}}}t|chart/box}}|{{{{{{10}}}}}}|{{{border_{{{10}}}|{{{border|2}}}}}}|{{{boxstyle_{{{10}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{10}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{10}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{11}}}}}}}|{{uc:{{{11}}}}}|chart/cell{{{11|x}}}t|chart/box}}|{{{{{{11}}}}}}|{{{border_{{{11}}}|{{{border|2}}}}}}|{{{boxstyle_{{{11}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{11}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{11}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{12}}}}}}}|{{uc:{{{12}}}}}|chart/cell{{{12|x}}}t|chart/box}}|{{{{{{12}}}}}}|{{{border_{{{12}}}|{{{border|2}}}}}}|{{{boxstyle_{{{12}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{12}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{12}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{13}}}}}}}|{{uc:{{{13}}}}}|chart/cell{{{13|x}}}t|chart/box}}|{{{{{{13}}}}}}|{{{border_{{{13}}}|{{{border|2}}}}}}|{{{boxstyle_{{{13}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{13}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{13}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{14}}}}}}}|{{uc:{{{14}}}}}|chart/cell{{{14|x}}}t|chart/box}}|{{{{{{14}}}}}}|{{{border_{{{14}}}|{{{border|2}}}}}}|{{{boxstyle_{{{14}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{14}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{14}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{15}}}}}}}|{{uc:{{{15}}}}}|chart/cell{{{15|x}}}t|chart/box}}|{{{{{{15}}}}}}|{{{border_{{{15}}}|{{{border|2}}}}}}|{{{boxstyle_{{{15}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{15}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{15}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{16}}}}}}}|{{uc:{{{16}}}}}|chart/cell{{{16|x}}}t|chart/box}}|{{{{{{16}}}}}}|{{{border_{{{16}}}|{{{border|2}}}}}}|{{{boxstyle_{{{16}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{16}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{16}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{17}}}}}}}|{{uc:{{{17}}}}}|chart/cell{{{17|x}}}t|chart/box}}|{{{{{{17}}}}}}|{{{border_{{{17}}}|{{{border|2}}}}}}|{{{boxstyle_{{{17}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{17}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{17}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{18}}}}}}}|{{uc:{{{18}}}}}|chart/cell{{{18|x}}}t|chart/box}}|{{{{{{18}}}}}}|{{{border_{{{18}}}|{{{border|2}}}}}}|{{{boxstyle_{{{18}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{18}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{18}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{19}}}}}}}|{{uc:{{{19}}}}}|chart/cell{{{19|x}}}t|chart/box}}|{{{{{{19}}}}}}|{{{border_{{{19}}}|{{{border|2}}}}}}|{{{boxstyle_{{{19}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{19}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{19}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{20}}}}}}}|{{uc:{{{20}}}}}|chart/cell{{{20|x}}}t|chart/box}}|{{{{{{20}}}}}}|{{{border_{{{20}}}|{{{border|2}}}}}}|{{{boxstyle_{{{20}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{20}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{20}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{21}}}}}}}|{{uc:{{{21}}}}}|chart/cell{{{21|x}}}t|chart/box}}|{{{{{{21}}}}}}|{{{border_{{{21}}}|{{{border|2}}}}}}|{{{boxstyle_{{{21}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{21}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{21}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{22}}}}}}}|{{uc:{{{22}}}}}|chart/cell{{{22|x}}}t|chart/box}}|{{{{{{22}}}}}}|{{{border_{{{22}}}|{{{border|2}}}}}}|{{{boxstyle_{{{22}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{22}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{22}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{23}}}}}}}|{{uc:{{{23}}}}}|chart/cell{{{23|x}}}t|chart/box}}|{{{{{{23}}}}}}|{{{border_{{{23}}}|{{{border|2}}}}}}|{{{boxstyle_{{{23}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{23}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{23}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{24}}}}}}}|{{uc:{{{24}}}}}|chart/cell{{{24|x}}}t|chart/box}}|{{{{{{24}}}}}}|{{{border_{{{24}}}|{{{border|2}}}}}}|{{{boxstyle_{{{24}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{24}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{24}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{25}}}}}}}|{{uc:{{{25}}}}}|chart/cell{{{25|x}}}t|chart/box}}|{{{{{{25}}}}}}|{{{border_{{{25}}}|{{{border|2}}}}}}|{{{boxstyle_{{{25}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{25}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{25}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{26}}}}}}}|{{uc:{{{26}}}}}|chart/cell{{{26|x}}}t|chart/box}}|{{{{{{26}}}}}}|{{{border_{{{26}}}|{{{border|2}}}}}}|{{{boxstyle_{{{26}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{26}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{26}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{27}}}}}}}|{{uc:{{{27}}}}}|chart/cell{{{27|x}}}t|chart/box}}|{{{{{{27}}}}}}|{{{border_{{{27}}}|{{{border|2}}}}}}|{{{boxstyle_{{{27}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{27}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{27}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{28}}}}}}}|{{uc:{{{28}}}}}|chart/cell{{{28|x}}}t|chart/box}}|{{{{{{28}}}}}}|{{{border_{{{28}}}|{{{border|2}}}}}}|{{{boxstyle_{{{28}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{28}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{28}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{29}}}}}}}|{{uc:{{{29}}}}}|chart/cell{{{29|x}}}t|chart/box}}|{{{{{{29}}}}}}|{{{border_{{{29}}}|{{{border|2}}}}}}|{{{boxstyle_{{{29}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{29}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{29}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{30}}}}}}}|{{uc:{{{30}}}}}|chart/cell{{{30|x}}}t|chart/box}}|{{{{{{30}}}}}}|{{{border_{{{30}}}|{{{border|2}}}}}}|{{{boxstyle_{{{30}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{30}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{30}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{31}}}}}}}|{{uc:{{{31}}}}}|chart/cell{{{31|x}}}t|chart/box}}|{{{{{{31}}}}}}|{{{border_{{{31}}}|{{{border|2}}}}}}|{{{boxstyle_{{{31}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{31}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{31}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{32}}}}}}}|{{uc:{{{32}}}}}|chart/cell{{{32|x}}}t|chart/box}}|{{{{{{32}}}}}}|{{{border_{{{32}}}|{{{border|2}}}}}}|{{{boxstyle_{{{32}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{32}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{32}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{33}}}}}}}|{{uc:{{{33}}}}}|chart/cell{{{33|x}}}t|chart/box}}|{{{{{{33}}}}}}|{{{border_{{{33}}}|{{{border|2}}}}}}|{{{boxstyle_{{{33}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{33}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{33}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{34}}}}}}}|{{uc:{{{34}}}}}|chart/cell{{{34|x}}}t|chart/box}}|{{{{{{34}}}}}}|{{{border_{{{34}}}|{{{border|2}}}}}}|{{{boxstyle_{{{34}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{34}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{34}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{35}}}}}}}|{{uc:{{{35}}}}}|chart/cell{{{35|x}}}t|chart/box}}|{{{{{{35}}}}}}|{{{border_{{{35}}}|{{{border|2}}}}}}|{{{boxstyle_{{{35}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{35}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{35}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{36}}}}}}}|{{uc:{{{36}}}}}|chart/cell{{{36|x}}}t|chart/box}}|{{{{{{36}}}}}}|{{{border_{{{36}}}|{{{border|2}}}}}}|{{{boxstyle_{{{36}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{36}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{36}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{37}}}}}}}|{{uc:{{{37}}}}}|chart/cell{{{37|x}}}t|chart/box}}|{{{{{{37}}}}}}|{{{border_{{{37}}}|{{{border|2}}}}}}|{{{boxstyle_{{{37}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{37}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{37}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{38}}}}}}}|{{uc:{{{38}}}}}|chart/cell{{{38|x}}}t|chart/box}}|{{{{{{38}}}}}}|{{{border_{{{38}}}|{{{border|2}}}}}}|{{{boxstyle_{{{38}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{38}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{38}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{39}}}}}}}|{{uc:{{{39}}}}}|chart/cell{{{39|x}}}t|chart/box}}|{{{{{{39}}}}}}|{{{border_{{{39}}}|{{{border|2}}}}}}|{{{boxstyle_{{{39}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{39}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{39}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{40}}}}}}}|{{uc:{{{40}}}}}|chart/cell{{{40|x}}}t|chart/box}}|{{{{{{40}}}}}}|{{{border_{{{40}}}|{{{border|2}}}}}}|{{{boxstyle_{{{40}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{40}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{40}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{41}}}}}}}|{{uc:{{{41}}}}}|chart/cell{{{41|x}}}t|chart/box}}|{{{{{{41}}}}}}|{{{border_{{{41}}}|{{{border|2}}}}}}|{{{boxstyle_{{{41}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{41}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{41}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{42}}}}}}}|{{uc:{{{42}}}}}|chart/cell{{{42|x}}}t|chart/box}}|{{{{{{42}}}}}}|{{{border_{{{42}}}|{{{border|2}}}}}}|{{{boxstyle_{{{42}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{42}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{42}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{43}}}}}}}|{{uc:{{{43}}}}}|chart/cell{{{43|x}}}t|chart/box}}|{{{{{{43}}}}}}|{{{border_{{{43}}}|{{{border|2}}}}}}|{{{boxstyle_{{{43}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{43}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{43}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{44}}}}}}}|{{uc:{{{44}}}}}|chart/cell{{{44|x}}}t|chart/box}}|{{{{{{44}}}}}}|{{{border_{{{44}}}|{{{border|2}}}}}}|{{{boxstyle_{{{44}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{44}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{44}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{45}}}}}}}|{{uc:{{{45}}}}}|chart/cell{{{45|x}}}t|chart/box}}|{{{{{{45}}}}}}|{{{border_{{{45}}}|{{{border|2}}}}}}|{{{boxstyle_{{{45}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{45}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{45}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{46}}}}}}}|{{uc:{{{46}}}}}|chart/cell{{{46|x}}}t|chart/box}}|{{{{{{46}}}}}}|{{{border_{{{46}}}|{{{border|2}}}}}}|{{{boxstyle_{{{46}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{46}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{46}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{47}}}}}}}|{{uc:{{{47}}}}}|chart/cell{{{47|x}}}t|chart/box}}|{{{{{{47}}}}}}|{{{border_{{{47}}}|{{{border|2}}}}}}|{{{boxstyle_{{{47}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{47}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{47}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{48}}}}}}}|{{uc:{{{48}}}}}|chart/cell{{{48|x}}}t|chart/box}}|{{{{{{48}}}}}}|{{{border_{{{48}}}|{{{border|2}}}}}}|{{{boxstyle_{{{48}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{48}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{48}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{49}}}}}}}|{{uc:{{{49}}}}}|chart/cell{{{49|x}}}t|chart/box}}|{{{{{{49}}}}}}|{{{border_{{{49}}}|{{{border|2}}}}}}|{{{boxstyle_{{{49}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{49}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{49}}}|{{{rowspan|2}}}}}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{50}}}}}}}|{{uc:{{{50}}}}}|chart/cell{{{50|x}}}t|chart/box}}|{{{{{{50}}}}}}|{{{border_{{{50}}}|{{{border|2}}}}}}|{{{boxstyle_{{{50}}}|{{{boxstyle|}}}}}}|{{{colspan_{{{50}}}|{{{colspan|6}}}}}}|{{{rowspan_{{{50}}}|{{{rowspan|2}}}}}}}}</tr><tr style="height: 1px; text-align: center;">{{
{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|{{uc:{{{1}}}}}|chart/cell{{{1|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{2}}}}}}}|{{uc:{{{2}}}}}|chart/cell{{{2|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{3}}}}}}}|{{uc:{{{3}}}}}|chart/cell{{{3|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{4}}}}}}}|{{uc:{{{4}}}}}|chart/cell{{{4|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{5}}}}}}}|{{uc:{{{5}}}}}|chart/cell{{{5|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{6}}}}}}}|{{uc:{{{6}}}}}|chart/cell{{{6|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{7}}}}}}}|{{uc:{{{7}}}}}|chart/cell{{{7|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{8}}}}}}}|{{uc:{{{8}}}}}|chart/cell{{{8|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{9}}}}}}}|{{uc:{{{9}}}}}|chart/cell{{{9|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{10}}}}}}}|{{uc:{{{10}}}}}|chart/cell{{{10|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{11}}}}}}}|{{uc:{{{11}}}}}|chart/cell{{{11|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{12}}}}}}}|{{uc:{{{12}}}}}|chart/cell{{{12|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{13}}}}}}}|{{uc:{{{13}}}}}|chart/cell{{{13|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{14}}}}}}}|{{uc:{{{14}}}}}|chart/cell{{{14|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{15}}}}}}}|{{uc:{{{15}}}}}|chart/cell{{{15|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{16}}}}}}}|{{uc:{{{16}}}}}|chart/cell{{{16|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{17}}}}}}}|{{uc:{{{17}}}}}|chart/cell{{{17|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{18}}}}}}}|{{uc:{{{18}}}}}|chart/cell{{{18|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{19}}}}}}}|{{uc:{{{19}}}}}|chart/cell{{{19|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{20}}}}}}}|{{uc:{{{20}}}}}|chart/cell{{{20|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{21}}}}}}}|{{uc:{{{21}}}}}|chart/cell{{{21|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{22}}}}}}}|{{uc:{{{22}}}}}|chart/cell{{{22|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{23}}}}}}}|{{uc:{{{23}}}}}|chart/cell{{{23|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{24}}}}}}}|{{uc:{{{24}}}}}|chart/cell{{{24|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{25}}}}}}}|{{uc:{{{25}}}}}|chart/cell{{{25|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{26}}}}}}}|{{uc:{{{26}}}}}|chart/cell{{{26|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{27}}}}}}}|{{uc:{{{27}}}}}|chart/cell{{{27|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{28}}}}}}}|{{uc:{{{28}}}}}|chart/cell{{{28|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{29}}}}}}}|{{uc:{{{29}}}}}|chart/cell{{{29|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{30}}}}}}}|{{uc:{{{30}}}}}|chart/cell{{{30|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{31}}}}}}}|{{uc:{{{31}}}}}|chart/cell{{{31|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{32}}}}}}}|{{uc:{{{32}}}}}|chart/cell{{{32|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{33}}}}}}}|{{uc:{{{33}}}}}|chart/cell{{{33|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{34}}}}}}}|{{uc:{{{34}}}}}|chart/cell{{{34|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{35}}}}}}}|{{uc:{{{35}}}}}|chart/cell{{{35|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{36}}}}}}}|{{uc:{{{36}}}}}|chart/cell{{{36|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{37}}}}}}}|{{uc:{{{37}}}}}|chart/cell{{{37|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{38}}}}}}}|{{uc:{{{38}}}}}|chart/cell{{{38|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{39}}}}}}}|{{uc:{{{39}}}}}|chart/cell{{{39|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{40}}}}}}}|{{uc:{{{40}}}}}|chart/cell{{{40|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{41}}}}}}}|{{uc:{{{41}}}}}|chart/cell{{{41|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{42}}}}}}}|{{uc:{{{42}}}}}|chart/cell{{{42|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{43}}}}}}}|{{uc:{{{43}}}}}|chart/cell{{{43|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{44}}}}}}}|{{uc:{{{44}}}}}|chart/cell{{{44|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{45}}}}}}}|{{uc:{{{45}}}}}|chart/cell{{{45|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{46}}}}}}}|{{uc:{{{46}}}}}|chart/cell{{{46|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{47}}}}}}}|{{uc:{{{47}}}}}|chart/cell{{{47|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{48}}}}}}}|{{uc:{{{48}}}}}|chart/cell{{{48|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{49}}}}}}}|{{uc:{{{49}}}}}|chart/cell{{{49|x}}}b|void}}}}{{
{{#ifeq:{{ucfirst:{{lc:{{{50}}}}}}}|{{uc:{{{50}}}}}|chart/cell{{{50|x}}}b|void}}}}</tr></includeonly><noinclude>


{{documentation/old}}
<!-- internal parser function definition (works by multiple #ifeq checks). -->
</noinclude>
{{#switch: {{{1|}}}
  | GrMa = {{{GrMa|GrMa}}}
  | GRP  = {{{GRP|GRP}}}
  | MOM  = {{{MOM|MOM}}}
  | DAD  = {{{DAD|DAD}}}
  | DAISY= {{{DAISY|DAISY}}}
  | JOE  = {{{JOE|JOE}}}
  | ME  = {{{ME|ME}}}
  | SIS  = {{{SIS|SIS}}}
  | {{{1|}}} = {{{1|}}}
}}
 
<!-- The actual row renderer -->
<tr>
  {{#for|i=1|i<=11|i=i+1}}
    {{#switch: {{{!}}} }}
    <!-- we will render each cell by expanding the corresponding positional parameter -->
  {{#vardefine:tmp|{{{${i}|}}}}}
  {{#if: {{{#vardefine:tmp|{{{${i}|}}}}} }} <!-- if not empty -->
    {{#set:cellval|{{{${i}|}}}}}
  {{#else}}
    {{#set:cellval|}}
  {{#endif}}
  {{#if: {{{#var:cellval}}} }}
    <!-- produce class / content based on token -->
    {{#switch: {{#var:cellval}}
        | - = <td><div class="tc-piece tc-horiz"></div></td>
        | | = <td><div class="tc-piece tc-vertline"></div></td>
        | ~ = <td><div class="tc-piece tc-vert"></div></td>
        | y = <td><div class="tc-piece tc-down"></div></td>
        | + = <td><div class="tc-piece tc-plus"></div></td>
        | . = <td><div class="tc-piece tc-dot"></div></td>
        | ( = <td><div class="tc-piece tc-lcorner"></div></td>
        | ) = <td><div class="tc-piece tc-rcorner"></div></td>
        | default = <td><div class="tc-piece tc-text">{{#switch: {{#var:cellval}}
              | GrMa = {{{GrMa|GrMa}}}
              | GRP  = {{{GRP|GRP}}}
              | MOM  = {{{MOM|MOM}}}
              | DAD  = {{{DAD|DAD}}}
              | DAISY= {{{DAISY|DAISY}}}
              | JOE  = {{{JOE|JOE}}}
              | ME  = {{{ME|ME}}}
              | SIS  = {{{SIS|SIS}}}
              | #default = {{{#var:cellval}}}
            }}</div></td>
      }}
  {{#else}}
    <td><div class="tc-piece tc-empty"></div></td>
  {{#endif}}
  {{/for}}
</tr>
 
<!-- NOTE: due to limited pure-wikitext looping/scripting portability, the above uses
    the parser functions available on many wikis (ParserFunctions and #for/#switch support).
    If your wiki lacks "#for" or "#switch" you can expand the 11 cells manually (copy/paste).
-->

Latest revision as of 22:38, 6 October 2025

{{#vardefine:__out|}} {{#macro:mapCell|||||||||}}


{{#for|i=1|i<=11|i=i+1}} {{#vardefine:tmp|}} {{#else}} {{#endif}} {{#else}}

 {{#endif}}
 Template:Tree chart/for