Template:OSM Location map/cssmapping: Difference between revisions

Content deleted Content added
apply to panel line
take out test text
Line 6:
| x1={{#expr:{{{x1|30}}}+{{{mark-width|30}}}/2}}| y1={{#expr:{{{y1|40}}}+{{{mark-height|30}}}/2}}
| x2={{{x2|50}}}| y2={{{y2|60}}}
| outline-width={{#invoke:String2 |split |txt={{{label-line|}}}|sep=,|idx=2}}
| outline-style={{#invoke:String2 |split |txt={{{label-line|}}}|sep=,|idx=3}}
| shape-outline={{{shape-outline|darkgrey}}} | double={{#invoke:String2 |split |txt={{{label-line|}}}|sep=,|idx=4}} }} }} }}
|{{OSM Location map/cssline| x1={{{x1|30}}}| y1={{{y1|40}}}
| x2={{{x2|50}}}| y2={{{y2|60}}}
| outline-width={{#invoke:String2 |split |txt={{{label-line|}}}|sep=,|idx=2}}
| outline-style={{#invoke:String2 |split |txt={{{label-line|}}}|sep=,|idx=3}}
| shape-outline={{{shape-outline|darkgrey}}} | double={{#invoke:String2 |split |txt={{{label-line|}}}|sep=,|idx=4}} }} }} }}
Line 172 ⟶ 173:
}} }}
background-color:transparent; line-height: normal; transform: rotate({{{label-angle|0}}}deg)"><span style="color: {{{label-color|black}}};
font-size: {{{label-size|13}}}px; font-weight:normal;">{{#ifeq:{{{label-line|0}}}|4|{{{numbered|}}}. |}}{{{label|}}}<br>LL={{{label-line|}}}</span></div>{{#ifexpr:{{{numbered|0}}}>0|{{#ifeq:{{{label-line|0}}}|4||<div style="display:inline-block; position: absolute;
top: {{#expr:{{{y1|40}}}-( {{{mark-height|15}}}*0.5) }}px;
left: {{#expr:{{{x1|40}}}+2-( {{str len|{{{numbered|15}}} }} * ( {{{mark-height|15}}}-4.2 )/2.8 ) }}px;