Template:OSM Location map/cssmapping: Difference between revisions

Content deleted Content added
finish photo-panel height option
adjust image size if photo-panel height is set
Line 26:
|left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;
|left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}+{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2-( {{if empty|{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}|48}}*{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=2}} ) }}px;}}
background-color:transparent; border-radius: 2px;">[[file:{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=3}}{{!}}x48pxx{{if empty|{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}|48}}px]]</div>}}<div style="display:inline-block; position: absolute;
top: {{#expr:{{{y1|40}}}+{{{ldy|20}}}-({{if empty|{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}|48}}/2)}}px;
left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;