Content deleted Content added
test adjustment for image vertical shift |
Revision with better text placement |
||
Line 49:
outline-width: 0; border-bottom: {{{outline-width|12}}}px {{{outline-style|solid}}} {{{shape-outline|blue}}};
transform: rotate( {{{shape-angle|20}}}deg);"></div>
|circle = top: {{#expr:{{{y1|
left: {{#expr:{{{x1|
width: {{{mark-width|15}}}px;
height: {{{mark-width|15}}}px;
Line 98:
transform: rotate({{{shape-angle|0}}}deg);
background-color: {{{shape-color|lightblue}}};"></div>
|image= top: {{#expr:{{{y1|
left: {{#expr:{{{x1|
background-color:transparent;
transform: rotate({{{shape-angle|0}}}deg);">[[file:{{{mark|Red pog.svg}}}{{!}}{{#expr:{{{mark-width|14}}}+2}}px{{!}}alt={{{mark-title|}}}{{!}}link=]]</div>
Line 106:
| {{#switch:{{{label-pos|top}}}
|left=
top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}+( {{Str number/trim|{{{label-size|12}}} }}/3) }}px;
left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+3}}px; text-align: left;
width: {{{mark-width|350}}}px;
|right=
top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}+( {{Str number/trim|{{{label-size|12}}} }}/3) }}px;
width: {{{mark-width|350}}}px;
text-align: right;
| top =
top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}+( {{Str number/trim|{{{label-size|12}}} }}/3) }}px;
left: {{#expr:{{{ldx|0}}}+{{{x1|
width: {{{mark-width|350}}}px;
text-align: center;
| bottom =
top: {{#expr:{{{ldy|0}}}+{{{y1|0}}}+( {{{mark-height|12}}} )-3-( ({{str count|{{{label|}}}|pattern=<br>|plain=1}}+1 )*{{Str number/trim|{{{label-size|12}}} }}*1.1) }}px;
left: {{#expr:{{{ldx|0}}}+{{{x1|
width: {{{mark-width|350}}}px;
text-align: center;
| center|centre =
top: {{#expr:{{{ldy|0}}}+{{{y1|0}}}+( {{{mark-height|12}}}/2 )-( ( {{str count|{{{label|}}}<br>|pattern=<br>|plain=1}} )*{{Str number/trim|{{{label-size|12}}} }}*0.6) }}px;
left: {{#expr:{{{ldx|0}}}+{{{x1|
width: {{{mark-width|350}}}px;
text-align: center; }}
|{{#switch:{{Str left |{{{label-line|0}}}| 1}}
|0|2=
{{#switch:{{{label-pos|
|right =
top: {{#expr:{{{ldy|0}}}+{{{y1|
left: {{#expr:{{{ldx|0}}}+{{{x1|
|left =
top: {{#expr:{{{ldy|0}}}+{{{y1|
text-align: right;
| top =
bottom: {{#expr:{{{height|250}}}-{{{y1|0}}}-{{{ldy|0}}}+({{{mark-height|12}}}/2)+1}}px;
width: {{{width|350}}}px;
text-align: center;
| bottom =
top: {{#expr:{{{ldy|0}}}+{{{y1|
left: {{#expr:{{{ldx|0}}}+{{{x1|
width: {{{width|350}}}px;
text-align: center;
| center|centre =
top: {{#expr:{{{ldy|0}}}+{{{y1|
left: {{#expr:{{{ldx|0}}}+{{{x1|
width: {{{width|350}}}px;
text-align: center; }}
|1|4= {{#switch:{{{label-pos|top}}}<!-- same again for use with with-line and n-line -->
|right =
top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}-( {{Str number/trim|{{{label-size|12}}} }}/2)-1-( {{str count|{{{label|}}}|pattern=<br>|plain=1}}*{{Str number/trim|{{{label-size|12}}} }}*1.25/2) }}px;
left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}
|left =
top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}-( {{Str number/trim|{{{label-size|12}}} }}/2)-1-( {{str count|{{{label|}}}|pattern=<br>|plain=1}}*{{Str number/trim|{{{label-size|12}}} }}*1.25/2) }}px;
right: {{#expr:{{{width|350}}}-{{{x1|240}}}-{{{ldx|0}}}+2}}px;
text-align: right;
| top =
bottom: {{#
width: {{{width|350}}}px;
text-align: center;
| bottom | center|centre=
top: {{#expr:{{{ldy|0}}}+{{{y1|0}}}-2 }}px;
left: {{#expr:{{{ldx|0}}}+{{{x1|
width: {{{width|350}}}px; text-align: center; }}
|3= top: {{#expr:{{{ldy|0}}}+{{{y1|30}}}-( {{Str number/trim|{{{label-size|12}}} }}/2)-1-( {{str count|{{{label|}}}|pattern=<br>|plain=1}}*{{Str number/trim|{{{label-size|12}}} }}*1.25
{{#ifeq:{{{label-pos|}}}|right <!-- idx4=panel-width, idx5=photo-width, idx2=dimension factor -->
| left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+
| left: {{#expr:{{{ldx|0}}}+{{{x1|30}}}+
}} width: {{#expr:{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=4}}-( {{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=5}}*{{#invoke:String2 |split |txt={{{label-line|}}}|sep=!|idx=2}} ) }}px;
}} }}
background-color: transparent; line-height: normal; transform: rotate({{{label-angle|0}}}deg)"><span style="color: {{{label-color|black}}};
{{#ifeq:{{Str count|{{{label-size|}}}|outline}}|1|border: 1px solid black; line-height:98%;padding:0px 3px;border-radius:6px;|}}
font-size: {{{label-size|13}}}px; font-weight:normal;">▼
background-color: {{#ifeq:{{Str count|{{{label-size|}}}|background}}|1|#F9F5E7|transparent}};
{{#ifeq:{{{label-line|0}}}|4|
{{#ifeq:{{str count|{{{mark-title|}}}|[}}|0
|'''{{{numbered|}}}'''.
top: {{#expr:{{{y1|40}}}-( {{{mark-height|15}}}*0.5)-1 }}px;
left: {{#expr:{{{x1|
width: {{{width|350}}}px; text-align: center;
background-color:transparent;
line-height: normal;"><span style="color: white;
Line 203 ⟶ 209:
*Shapes can also be set to auto- or manual-numbers to give a sequence of numbered shapes.
*Labels can optionally have a line to connect to their shape, as can shape-numbers if the shapes are congested.
*label-size can optionally include a plain background and/or 1px black outline around the label. eg label-size=12,outline,background
</noinclude>
|