Template:GridSector: Difference between revisions
From Mutant Year Zero
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
grid-row: {{{row}}}; | grid-row: {{{row}}}; | ||
{{#if: {{{bordercolor|}}} | border:1px {{{borderstyle|solid}}} {{{bordercolor|transparent}}};}} | {{#if: {{{bordercolor|}}} | border:1px {{{borderstyle|solid}}} {{{bordercolor|transparent}}};}} | ||
font-size:{{{fontsize|{{#ifexpr: {{#len:{{{sectorText|}}}}} > | font-size:{{{fontsize|{{#ifexpr: {{#len:{{{sectorText|}}}}} > 3|16px| {{#ifexpr: {{#len:{{{sectorText|}}}}} < 1|28px|40px}}}}}}}; | ||
color:{{{color|white}}}" | color:{{{color|white}}}" | ||
>{{{sectorText|}}}<span class="tooltiptext">{{#sub:_ABCDEFGHIJKLMNOPQRSTUVWXYZ|{{{row}}}|1}}-{{{column}}}: {{{tooltip|}}}<div class="rotlevel{{{rotlevel|Unknown}}}">[{{#switch: {{{rotlevel}}} |0=Zone Oasis|1=Weak Rot|2=Strong Rot|3=Rot Hotspot |Unknown Rot Level}}]</div><div class="found"><span style="color:{{#ifexpr: {{#count:{{{found|}}}|G}} > 0 | tomato | #444}};">restaurant</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|W}} > 0 | skyblue | #444}};">water_drop</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|B}} > 0 | silver | #444}};">tools_phillips</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|A}} > 0 | gold | #444}};">trophy</span></div> | >{{{sectorText|}}}<span class="tooltiptext">{{#sub:_ABCDEFGHIJKLMNOPQRSTUVWXYZ|{{{row}}}|1}}-{{{column}}}: {{{tooltip|}}}<div class="rotlevel{{{rotlevel|Unknown}}}">[{{#switch: {{{rotlevel}}} |0=Zone Oasis|1=Weak Rot|2=Strong Rot|3=Rot Hotspot |Unknown Rot Level}}]</div><div class="found"><span style="color:{{#ifexpr: {{#count:{{{found|}}}|G}} > 0 | tomato | #444}};">restaurant</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|W}} > 0 | skyblue | #444}};">water_drop</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|B}} > 0 | silver | #444}};">tools_phillips</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|A}} > 0 | gold | #444}};">trophy</span></div> |