Difference between revisions of "Template:UOAtlasHeader"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) m |
||
Line 11: | Line 11: | ||
-->{{#vardefine: clippath|inset({{#var: a}} {{#var: b}} {{#var: c}} {{#var: d}})}}<!-- | -->{{#vardefine: clippath|inset({{#var: a}} {{#var: b}} {{#var: c}} {{#var: d}})}}<!-- | ||
--><div style="--mapheight: {{#var:height}}px; --scalemod: {{{scalemod|0}}}; float: right; image-rendering: pixelated; width: {{#expr: {{#expr:2.5-{{{scalemod|0}}} }} * {{#var:width}}}}px; overflow: hidden; border-radius: 25px;" class="mapOuterDiv"> | --><div style="--mapheight: {{#var:height}}px; --scalemod: {{{scalemod|0}}}; float: right; image-rendering: pixelated; width: {{#expr: {{#expr:2.5-{{{scalemod|0}}} }} * {{#var:width}}}}px; overflow: hidden; border-radius: 25px;" class="mapOuterDiv"> | ||
− | <div style="position:absolute; left: 0; top: 0;"><div style="transform-origin: top left; width: {{#var:width}}px;" class="mapInnerDiv"><div style="transform: translate(-{{{x1}}}px, -{{{y1}}}px); width: {{{mapWidth}}}px; height: {{{mapHeight}}}px;">[[File:MAP{{#var: map}}-1.png|link=|class=map]]</div></div></div><div style="position:absolute; width: {{{mapWidth}}}px; left: 0; top: 0; transform: translate(-{{{x1}}}px, -{{{y1}}}px)"> | + | <div style="position:absolute; left: 0; top: 0;"><div style="transform-origin: top left; width: {{#var:width}}px;" class="mapInnerDiv"><div style="transform: translate(-{{{x1}}}px, -{{{y1}}}px); width: {{{mapWidth}}}px; height: {{{mapHeight}}}px;">[[File:MAP{{#var: map}}-1.png|link=|class=map]]</div></div></div><div style="position:absolute; width: {{{mapWidth}}}px; left: 0; top: 0; transform: translate(-{{{x1}}}px, -{{{y1}}}px) scale(calc(2.5 - var(--scalemod)));"> |
Revision as of 04:41, 28 August 2020
<div style="--mapheight: Expression error: Unrecognized punctuation character "{".px; --scalemod: 0; float: right; image-rendering: pixelated; width: Expression error: Unexpected < operator.px; overflow: hidden; border-radius: 25px;" class="mapOuterDiv">
<div style="transform-origin: top left; width: Expression error: Unrecognized punctuation character "{".px;" class="mapInnerDiv">
[[File:MAP{{{map}}}-1.png|link=|class=map]]