Content deleted Content added
include length of numbered in n-line label |
just add length to top j |
||
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 =
Line 162 ⟶ 160:
top: {{#expr:{{{ldy|0}}}+{{{y1|0}}}-(5-{{{label-size|12}}} )-( ({{str count|{{{label|}}}|pattern=<br>|plain=1}}+1 )*{{{label-size|12}}}*1.4) }}px;|
top: {{#expr:{{{ldy|0}}}+{{{y1|0}}}-( ({{str count|{{{label|}}}|pattern=<br>|plain=1}}+1 )*{{{label-size|12}}}*1.1) }}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}}}+2-( {{{label-size|12}}}*{{Str find|{{{label|}}}<br>|<br>}}/4.2 )+( {{{jdx|0}}}/2) }}px; ▼
▲ left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+2-( {{{label-size|12}}}*
▲ l left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+2-( {{{label-size|12}}}*{{{numbered|}}}{{Str find|{{{label|}}}<br>|<br>}}/4.2 )+( {{{jdx|0}}}/2) }}px; }}
text-align: center;
| bottom | center|centre=
|