Template:GridSector: Difference between revisions
From Mutant Year Zero
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div | <div | ||
{{#if: {{{active|}}}|id="active"}} | {{#if: {{{active|}}}|id="active"}} | ||
class="gridsector {{#if: {{{visited|}}}||unknown}} sectortext rotlevel{{{rotlevel|0}}}" | class="gridsector {{#if: {{{visited|}}}||unknown}} sectortext rotlevel{{{rotlevel|0}}}" | ||
style=" | style=" | ||
background-position: -{{#expr: 80 * ({{{column}}}-1)}}px -{{#expr: 80 * ({{{row}}}-1)}}px ; | background-position: -{{#expr: 80 * ({{{column}}}-1)}}px -{{#expr: 80 * ({{{row}}}-1)}}px ; | ||
grid-column: {{{column}}}; | grid-column: {{{column}}}; | ||
grid-row: {{{row}}}; | grid-row: {{{row}}}; | ||
border:1px {{{borderstyle|solid}}} {{{bordercolor|transparent}}}; | border:1px {{{borderstyle|solid}}} {{{bordercolor|transparent}}}; | ||
font-size:{{{fontSize|32px}}}; | font-size:{{{fontSize|32px}}}; | ||
color:{{{color|white}}}" | color:{{{color|white}}}" | ||
> | > | ||
Line 15: | Line 15: | ||
{{#if: {{{rotlevel|}}} | <div style="font-size:70%;">[Rot Level: {{{rotlevel|}}}]</div>}} | {{#if: {{{rotlevel|}}} | <div style="font-size:70%;">[Rot Level: {{{rotlevel|}}}]</div>}} | ||
{{#if: {{{active|}}} | <div style="font-size:70%;"><span style="color:red;">●</span> {{{active|}}}</div>}} | {{#if: {{{active|}}} | <div style="font-size:70%;"><span style="color:red;">●</span> {{{active|}}}</div>}} | ||
</span> | |||
{{#if: {{{active|}}} | <div class="reddot"></div>}} | {{#if: {{{active|}}} | <div class="reddot"></div>}} | ||
</div> | </div> |