Template:GridSector: Difference between revisions

From Mutant Year Zero
mNo edit summary
mNo edit summary
 
(43 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div
<div
{{#if: {{{active|}}}|id="active"}}
  class="gridsector {{#if: {{{visited|}}}||unknown}} rotlevel{{{rotlevel|Unknown}}}"
  class="gridsector {{#if: {{{visited|}}}||unknown}} rotlevel{{{rotlevel|0}}}"
  style="
  style="
   background-position: -{{#expr: 80 * ({{{column}}}-1)+1}}px -{{#expr: 80 * ({{{row}}}-1)+1}}px ;
   background-position: -{{#expr: 80 * ({{{column}}}-1)+1}}px -{{#expr: 80 * ({{#switch:{{{row}}}|A=1|B=2|C=3|D=4|E=5|F=6|G=7|H=8|I=9|J=10|K=11|L=12|M=13|N=14|O=15|P=16|Q=17|R=18|S=19}}-1)+1}}px ;
   grid-column: {{{column}}};
   grid-column: {{{column}}};
   grid-row: {{{row}}};
   grid-row: {{#switch:{{{row}}}|A=1|B=2|C=3|D=4|E=5|F=6|G=7|H=8|I=9|J=10|K=11|L=12|M=13|N=14|O=15|P=16|Q=17|R=18|S=19}};
   {{#if: {{{bordercolor|}}} | border:1px {{{borderstyle|solid}}} {{{bordercolor|transparent}}};}}
   {{#if: {{{bordercolor|}}} | border:1px {{{borderstyle|solid}}} {{{bordercolor|transparent}}};}}
   font-size:{{{fontSize|32px}}};
   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>{{#if: {{{found|}}} | <div style="font-size:70%;">{{#replace:{{#replace:{{#replace:{{#replace:{{{found|}}}|b| stylus}}|W| water_drop}}|G| restaurant}}|A| trophy}}</div>}}{{#if: {{{active|}}} | <div style="font-size:70%;"><span style="color:red;">●</span> {{{active|}}}</div>}}</span>
>{{{sectorText|}}}<span class="tooltiptext">{{{row}}}-{{{column}}}: {{{tooltip|}}}{{#if: {{{image|}}} | [[File:{{{image}}}|160px]]}}<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 | #DC7633 | #666}};">restaurant</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|W}} > 0 | skyblue | #666}};">water_drop</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|B}} > 0 | #D2B4DE | #666}};">tools_phillips</span><span style="color:{{#ifexpr: {{#count:{{{found|}}}|A}} > 0 | gold | #666}};">trophy</span></div>
{{#if: {{{active|}}} | <div class="reddot"></div>}}
</div>
</div>

Latest revision as of 15:17, 12 March 2024