Template:OSM Location map/cssmapping: Difference between revisions

Content deleted Content added
try stri[ping out the if empty's for photo-panel height
include length of numbered in n-line label
Line 148:
left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+2-( {{{label-size|12}}}*{{Str find|{{{label|}}}<br>|<br>}}/4.2)+( {{{jdx|0}}}/2) }}px;
text-align: center; }}
|1|4= {{#switch:{{{label-pos|top}}}<!-- same again for use with nwith-line and withn-line -->
|right =
top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}-( {{{label-size|12}}}/2)-1-( {{str count|{{{label|}}}|pattern=<br>|plain=1}}*{{{label-size|12}}}*1.25/2) }}px;
Line 154:
|left =
top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}-( {{{label-size|12}}}/2)-1-( {{str count|{{{label|}}}|pattern=<br>|plain=1}}*{{{label-size|12}}}*1.25/2) }}px;
{{#ifeq:{{Str left |{{{label-line|0}}}| 1}}|1| <!--only add in length of numbered if 4 (n-line) -->
left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}-( {{{label-size|12}}}*{{Str find|{{{label|}}}<br>|<br>}}/2.1 )+{{{jdx|0}}} }}px;|
left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}-( {{{label-size|12}}}* {{Str find|{{{numbered|0}}}. {{{label|}}}<br>|<br>}}/2.1)+{{{jdx|0}}} }}px; }}
text-align: right;
| top =