Difference between revisions of "Template:UOAtlasHeader"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) m |
||
Line 1: | Line 1: | ||
{{#vardefine:scale|{{{scale}}}}}<!-- | {{#vardefine:scale|{{{scale}}}}}<!-- | ||
− | -->{{#vardefine: | + | -->{{#vardefine:width|{{#expr: {{{x2}}} - {{{x1}}} }}}}<!-- |
− | + | -->{{#vardefine:height|{{#expr: {{{y2}}} - {{{y1}}} }}}}<!-- | |
− | - | ||
− | |||
− | -->{{#vardefine: | ||
− | |||
-->{{#vardefine:mapWidth|{{{mapWidth}}}}}<!-- | -->{{#vardefine:mapWidth|{{{mapWidth}}}}}<!-- | ||
-->{{#vardefine:mapHeight|{{{mapHeight}}}}}<!-- | -->{{#vardefine:mapHeight|{{{mapHeight}}}}}<!-- | ||
-->{{#vardefine: map|{{{map}}}}}<!-- | -->{{#vardefine: map|{{{map}}}}}<!-- | ||
− | -->{{#vardefine: clippath|inset({{ | + | -->{{#vardefine: clippath|inset({{{y1}}}px {{#expr: {{#expr: {{#var:mapWidth}} - {{{x1}}} }} - {{#var:width}} }}px {{#expr: {{#expr: {{#var:mapHeight}} - {{{y1}}} }} - {{#var:height}} }}px {{{x1}}}px)}}<!-- |
--><div class="map-holder {{#if: {{#varexists:noscroll}}| noscroll}}" style="width:{{{parentWidth}}}%;float:right;"><!-- | --><div class="map-holder {{#if: {{#varexists:noscroll}}| noscroll}}" style="width:{{{parentWidth}}}%;float:right;"><!-- | ||
− | --><div style="display:inline-block;transform:scale({{#var:scale}}) translate(-{{ | + | --><div style="display:inline-block;transform:scale({{#var:scale}}) translate(-{{{x1}}}px, -{{{y1}}}px);"><!-- |
− | --><div class="map" data-x1="{{ | + | --><div class="map" data-x1="{{{x1}}}" data-y1="{{{y1}}}" data-x2="{{{y2}}}" data-y2="{{{y2}}}" style="-webkit-clip-path: {{#var:clippath}};clip-path: {{#var:clippath}}">[[File:MAP{{#var: map}}-1.png|link=]]</div> |
Revision as of 15:31, 20 September 2016
<div class="map" data-x1="{{{x1}}}" data-y1="{{{y1}}}" data-x2="{{{y2}}}" data-y2="{{{y2}}}" style="-webkit-clip-path: inset({{{y1}}}px Expression error: Unexpected < operator.px Expression error: Unexpected < operator.px {{{x1}}}px);clip-path: inset({{{y1}}}px Expression error: Unexpected < operator.px Expression error: Unexpected < operator.px {{{x1}}}px)">[[File:MAP{{{map}}}-1.png|link=]]