Difference between revisions of "Template:UOAtlasHeader"

m
m
Line 1: Line 1:
{{#vardefine:scale|{{{scale}}}}}<!--
+
<!--
 
-->{{#vardefine:width|{{#expr: {{{x2}}} - {{{x1}}} }}}}<!--
 
-->{{#vardefine:width|{{#expr: {{{x2}}} - {{{x1}}} }}}}<!--
 
-->{{#vardefine:height|{{#expr: {{{y2}}} - {{{y1}}} }}}}<!--
 
-->{{#vardefine:height|{{#expr: {{{y2}}} - {{{y1}}} }}}}<!--
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="float: right; image-rendering: pixelated; height: {{#expr: 2.5 * {{#var:height}}}}px; width: {{#expr: 2.5 * {{#var:width}}}}px; overflow: hidden; border-radius: 25px;">
 
--><div style="float: right; image-rendering: pixelated; height: {{#expr: 2.5 * {{#var:height}}}}px; width: {{#expr: 2.5 * {{#var:width}}}}px; overflow: hidden; border-radius: 25px;">
<div style="transform-origin: top left; height: {{#expr:{{#var:height}} * 2}}px; width: {{#var:width}}px; transform: scale(2.5);">
+
<div style="transform-origin: top left; height: {{#expr:{{#var:height}} * 2}}px; width: {{#var:width}}px; transform: scale(2.5);"><div style="transform: translate(-{{{x1}}}px, -{{{y1}}}px); width: {{{mapWidth}}}px; height: {{{mapHeight}}}px;">[[File:MAP{{#var: map}}-1.png|link=|class=map]]
<div style="transform: translate(-{{{x1}}}px, -{{{y1}}}px); width: {{{mapWidth}}}px; height: {{{mapHeight}}}px;">
 
[[File:MAP{{#var: map}}-1.png|link=|class=map]]
 

Revision as of 00:07, 23 August 2020

<div style="float: right; image-rendering: pixelated; height: Expression error: Unexpected < operator.px; width: Expression error: Unexpected < operator.px; overflow: hidden; border-radius: 25px;">

<div style="transform-origin: top left; height: Expression error: Unexpected < operator.px; width: Expression error: Unrecognized punctuation character "{".px; transform: scale(2.5);">

[[File:MAP{{{map}}}-1.png|link=|class=map]]