Template:OSM Location map/cssmapping: Difference between revisions

Content deleted Content added
m Protected "Template:OSM Location map/cssmapping": High-risk template or module: 5580 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
Add optional height value to photo-panel
Line 19:
left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;
width: {{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}px;
height: 48px{{if empty|{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}|48}}px; border-radius: 2px;
background-color: #E8E8D6;
outline: 2px solid {{{label-color|blue}}};"></div>{{#ifeq:{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=2}}|0||<div style="display:inline-block; position: absolute;
Line 25:
{{#ifeq:{{{label-pos|left}}}|left
|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}}{{!}}x48px]]</div>}}<div style="display:inline-block; position: absolute;
top: {{#expr:{{{y1|40}}}+{{{ldy|20}}}-24}}px;
left: {{#expr:{{{x1|40}}}+{{{ldx|20}}}-{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}/2}}px;
width: {{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}px;
height: 48px{{if empty|{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}|48}}px; border-radius: 2px;
background-color: transparent; box-shadow: 4px 4px #16591644;
outline: 2px solid {{{label-color|blue}}};"></div> }}{{#ifeq:{{{mark-width|1}}}|0||<div style="display:inline-block; position: absolute;