Хуызæг:ПозКартæ~: различия между версиями

Содержимое удалено Содержимое добавлено
Tegel (ныхас | бавæрд)
ч Откат правок LL221W (обсуждение) к версии Addbot
Нет описания правки
 
Рæнхъ 1:
<includeonly><div style="
<includeonly><div style="font-size:{{#if:{{{label_size|}}}|{{{label_size}}}|88}}%;line-height:1.2em;position:absolute;z-index:2;left:{{ПозКартæ/x|{{{1|Уæрæсе}}}|{{#expr:({{{lon|{{{long|}}}}}}+0{{{lon_deg|}}}+0{{{lon_min|}}}*(1/60)+0{{{lon_sec|}}}*(1/3600))*{{#ifeq:{{{lon_dir}}}|W|-1|1}}}}|{{#expr:({{{lat|}}}+0{{{lat_deg|}}}+0{{{lat_min|}}}*(1/60)+0{{{lat_sec|}}}*(1/3600))*{{#ifeq:{{{lat_dir}}}|S|-1|1}}}}}}%;top:{{ПозКартæ/y|{{{1|Уæрæсе}}}|{{#expr:({{{lon|{{{long|}}}}}}+0{{{lon_deg|}}}+0{{{lon_min|}}}*(1/60)+0{{{lon_sec|}}}*(1/3600))*{{#ifeq:{{{lon_dir}}}|W|-1|1}}}}|{{#expr:({{{lat|}}}+0{{{lat_deg|}}}+0{{{lat_min|}}}*(1/60)+0{{{lat_sec|}}}*(1/3600))*{{#ifeq:{{{lat_dir}}}|S|-1|1}}}}}}%"><div style="position:relative;float:left;left:-{{#expr:-0.1+0{{{marksize|9}}}*0.5 round 0}}px;top:-{{#expr:-0.1+0{{{marksize|9}}}*0.5 round 0}}px;">[[Ныв:{{#if:{{{mark|}}}|{{{mark}}}|Red_pog.png}}|{{{marksize|9}}}x{{{marksize|9}}}px|link=]]</div><div style="position:absolute;width:156px;top:-0.5em;{{#switch:{{#switch:{{{position|auto}}}!|!|auto!={{#ifexpr:{{ПозКартæ/x|{{{1|Уæрæсе}}}|{{#expr:({{{lon|{{{long|}}}}}}+0{{{lon_deg|}}}+0{{{lon_min|}}}*(1/60)+0{{{lon_sec|}}}*(1/3600))*{{#ifeq:{{{lon_dir}}}|W|-1|1}}}}|{{#expr:({{{lat|}}}+0{{{lat_deg|}}}+0{{{lat_min|}}}*(1/60)+0{{{lat_sec|}}}*(1/3600))*{{#ifeq:{{{lat_dir}}}|S|-1|1}}}}}}>50|left|right}}|{{{position}}}}}|none=display:none|top=text-align:center;left:-78px;top:-1.8em|bottom=text-align:center;left:-78px;top:{{#expr:{{{marksize|9}}}*0.5+3}}px|right=text-align:left;left:{{#expr:{{{marksize|9}}}*0.5+2}}px|left=text-align:right;left:{{#expr:-{{{marksize|9}}}*0.5-158}}px}}"><span style="background:{{{background|none}}};padding:0 2px">{{{label|}}}</span></div></div></includeonly><noinclude>{{doc-inline}}См. документацию шаблона '''{{tl|ПозКартæ}}'''.
font-size: {{#if:{{{label_size|}}}|{{{label_size}}}|88}}%;
[[Категори:Шаблонтæ:Позицион картæтæ]]
line-height: 1.2em;
position: absolute;
z-index: 2;
left: {{ПозКартæ/x
|1= {{{1|Уæрæсе}}}
|2= {{#if: {{{coord|{{{2|}}}}}}
| {{#invoke:Coordinates|getLon|{{{coord|{{{2|}}}}}}}}
| {{#expr: ({{{lon|{{{long|}}}}}}+0{{{lon_deg|}}}+0{{{lon_min|}}}*(1/60)+0{{{lon_sec|}}}*(1/3600))*{{#ifeq:{{{lon_dir}}}|W|-1|1}}}}
}}
|3= {{#if: {{{coord|{{{2|}}}}}}
| {{#invoke:Coordinates|getLat|{{{coord|{{{2|}}}}}}}}
| {{#expr:({{{lat|}}}+0{{{lat_deg|}}}+0{{{lat_min|}}}*(1/60)+0{{{lat_sec|}}}*(1/3600))*{{#ifeq:{{{lat_dir}}}|S|-1|1}}}}
}}<!--
-->}}%;
top: {{ПозКартæ/y
|1= {{{1|Уæрæсе}}}
|2= {{#if: {{{coord|{{{2|}}}}}}
| {{#invoke:Coordinates|getLon|{{{coord|{{{2|}}}}}}}}
| {{#expr:({{{lon|{{{long|}}}}}}+0{{{lon_deg|}}}+0{{{lon_min|}}}*(1/60)+0{{{lon_sec|}}}*(1/3600))*{{#ifeq:{{{lon_dir}}}|W|-1|1}}}}
}}
|3= {{#if: {{{coord|{{{2|}}}}}}
| {{#invoke:Coordinates|getLat|{{{coord|{{{2|}}}}}}}}
| {{#expr:({{{lat|}}}+0{{{lat_deg|}}}+0{{{lat_min|}}}*(1/60)+0{{{lat_sec|}}}*(1/3600))*{{#ifeq:{{{lat_dir}}}|S|-1|1}}}}
}}<!--
-->}}%"><!--
 
--><div style="
</noinclude>
position: relative;
float: left;
left: -{{#expr: -0.1 + 0{{#if: {{#if: {{{rama|}}} | {{{ramawidth|}}} }} | {{{ramawidth|}}} | {{{marksize|9}}} }} * 0.5 round 0 }}px;
top: -{{#expr: -0.1 + 0{{#if: {{#if: {{{rama|}}} | {{{ramaheight|}}} }} | {{{ramaheight|}}} | {{{marksize|9}}} }} * 0.5 round 0 }}px;
line-height: 0;
">{{#if:{{{rama|}}}
| <div style="position:relative; width:{{{ramawidth|1}}}px; height:{{{ramaheight|1}}}px; border:{{{rama|1}}}px solid {{{ramacolor|#ff0000}}};{{Transform-rotate|{{{rotate|0}}}|display=block}}{{border-radius|{{{radius|0}}}px}}"></div>
| [[Файл:{{#if:{{{mark|}}}|{{{mark}}}|Red_pog.png}}|{{{marksize|9}}}x{{{marksize|9}}}px|link={{{link|}}}{{#if:{{{alt|}}}|{{!}}alt={{{alt|}}}{{!}}{{{alt|}}}}}]]
}}</div><!--
 
--><div style="
position: absolute;
width: 156px;
top: -0.5em;
{{#switch:
{{#switch: {{{position|auto}}}!
|!|auto!= {{#ifexpr: {{ПозКартæ/x
|1= {{{1|Уæрæсе}}}
|2= {{#if: {{{coord|{{{2|}}}}}}
| {{#invoke:Coordinates|getLon|{{{coord|{{{2|}}}}}}}}
| {{#expr:({{{lon|{{{long|}}}}}}+0{{{lon_deg|}}}+0{{{lon_min|}}}*(1/60)+0{{{lon_sec|}}}*(1/3600))*{{#ifeq:{{{lon_dir}}}|W|-1|1}}}}
}}
|3= {{#if: {{{coord|{{{2|}}}}}}
| {{#invoke:Coordinates|getLat|{{{coord|{{{2|}}}}}}}}
| {{#expr:({{{lat|}}}+0{{{lat_deg|}}}+0{{{lat_min|}}}*(1/60)+0{{{lat_sec|}}}*(1/3600))*{{#ifeq:{{{lat_dir}}}|S|-1|1}}}}
}}<!--
-->}} > 50 | left | right }}
| {{{position}}}
}}
|none= display: none;
|top= text-align: center; left: -78px; top: -1.8em;
|bottom= text-align: center; left: -78px; top: {{#expr: {{#if: {{#if: {{{rama|}}} | {{{ramaheight|}}} }} | {{{ramaheight|}}} | {{{marksize|9}}} }} * 0.5 + 3 }}px
|right= text-align: left; left: {{#expr: {{#if: {{#if: {{{rama|}}} | {{{ramawidth|}}} }} | {{{ramawidth|}}} | {{{marksize|9}}} }} * 0.5 + 2 }}px
|left= text-align: right; left: {{#expr: -{{#if: {{#if: {{{rama|}}} | {{{ramawidth|}}} }} | {{{ramawidth|}}} | {{{marksize|9}}} }} * 0.5 - 158 }}px
}}">{{#if: {{{background|}}} | <span style="background:{{{background}}}; padding:0 2px">}}{{{label|}}}{{#if: {{{background|}}} | </span> }}</div><!--
 
--></div></includeonly><noinclude>{{doc|ПозКартæ/doc}}</noinclude>