Template:GridSector: Difference between revisions
From Mutant Year Zero
mNo edit summary Tags: Manual revert Reverted |
mNo edit summary Tags: Manual revert Reverted |
||
Line 5: | Line 5: | ||
background-position: -{{#expr: 80 * ({{{column}}}-1)+1}}px -{{#expr: 80 * ({{{row}}}-1)+1}}px ; | background-position: -{{#expr: 80 * ({{{column}}}-1)+1}}px -{{#expr: 80 * ({{{row}}}-1)+1}}px ; | ||
grid-column: {{{column}}}; | grid-column: {{{column}}}; | ||
grid-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|}}}}} > 3|16px| {{#ifexpr: {{#len:{{{sectorText|}}}}} > 1|28px|40px}}}}}}}; | font-size:{{{fontsize|{{#ifexpr: {{#len:{{{sectorText|}}}}} > 3|16px| {{#ifexpr: {{#len:{{{sectorText|}}}}} > 1|28px|40px}}}}}}}; |