Difference between revisions of "Template:Location map~/old"
Jump to navigation
Jump to search
Template documentation
imported>Инокентиј (←Replaced content with '<includeonly>{{#invoke:Location map|mark}}</includeonly><noinclude> {{Documentation}} </noinclude>') |
imported>Инокентиј |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#invoke:Location map|mark}}</includeonly><noinclude> | + | <includeonly><div style="position: absolute; top: {{#expr:{{#if:{{#invoke:Location map|data|{{{1}}}|y}}| |
− | {{ | + | {{#invoke:Location map|data|{{{1}}}|y|{{Location map/old/decdeg |
− | </noinclude> | + | |dec = {{{lat|}}} |
+ | |deg = {{{lat_deg|}}} | ||
+ | |min = {{{lat_min|}}} | ||
+ | |sec = {{{lat_sec|}}} | ||
+ | |hem = {{{lat_dir|}}}}}|{{Location map/old/decdeg | ||
+ | |dec = {{{long|}}} | ||
+ | |deg = {{{lon_deg|}}} | ||
+ | |min = {{{lon_min|}}} | ||
+ | |sec = {{{lon_sec|}}} | ||
+ | |hem = {{{lon_dir|}}}}}}}|100 * ({{#invoke:Location map|data|{{{1}}}|top}} - {{Location map/old/decdeg | ||
+ | |dec = {{{lat|}}} | ||
+ | |deg = {{{lat_deg|}}} | ||
+ | |min = {{{lat_min|}}} | ||
+ | |sec = {{{lat_sec|}}} | ||
+ | |hem = {{{lat_dir|}}}}}) / ({{#invoke:Location map|data|{{{1}}}|top}} - {{#invoke:Location map|data|{{{1}}}|bottom}}) round 1 | ||
+ | }}}}%; left: {{#expr:{{#if:{{#invoke:Location map|data|{{{1}}}|x}}| | ||
+ | {{#invoke:Location map|data|{{{1}}}|x|{{Location map/old/decdeg | ||
+ | |dec = {{{lat|}}} | ||
+ | |deg = {{{lat_deg|}}} | ||
+ | |min = {{{lat_min|}}} | ||
+ | |sec = {{{lat_sec|}}} | ||
+ | |hem = {{{lat_dir|}}}}}|{{Location map/old/decdeg | ||
+ | |dec = {{{long|}}} | ||
+ | |deg = {{{lon_deg|}}} | ||
+ | |min = {{{lon_min|}}} | ||
+ | |sec = {{{lon_sec|}}} | ||
+ | |hem = {{{lon_dir|}}}}}}}|{{#expr:{{#if:{{#invoke:Location map|data|{{{1}}}|crosses180}}|{{#ifeq: {{{lon_dir|}}}|W|-36000/({{#invoke:Location map|data|{{{1}}}|left}}-{{#invoke:Location map|data|{{{1}}}|right}})|}}|}}}} + 100 * ({{Location map/old/decdeg | ||
+ | |dec = {{{long|}}} | ||
+ | |deg = {{{lon_deg|}}} | ||
+ | |min = {{{lon_min|}}} | ||
+ | |sec = {{{lon_sec|}}} | ||
+ | |hem = {{{lon_dir|}}}}} - {{#invoke:Location map|data|{{{1}}}|left}}) / ({{#invoke:Location map|data|{{{1}}}|right}} - {{#invoke:Location map|data|{{{1}}}|left}}) round 1 | ||
+ | }}}}%; height: 0; width: 0; margin: 0; padding: 0;"><div style="position: relative; text-align: center; {{#if: {{{marksize|}}} | ||
+ | | left: -{{#expr: {{{marksize}}} / 2 round 0 }}px; top: -{{#expr: {{{marksize}}} / 2 round 0 }}px; width: {{{marksize}}}px; font-size: {{{marksize}}}px; line-height:0; | ||
+ | | left: -{{#expr: {{#if: {{#invoke:Location map|data|{{{1}}}|marksize}}|{{#invoke:Location map|data|{{{1}}}|marksize}}|8}} / 2 round 0 }}px; top: -{{#expr: {{#if: {{#invoke:Location map|data|{{{1}}}|marksize}}|{{#invoke:Location map|data|{{{1}}}|marksize}}|8}} / 2 round 0 }}px; width: {{#if: {{#invoke:Location map|data|{{{1}}}|marksize}}|{{#invoke:Location map|data|{{{1}}}|marksize}}|8}}px; font-size: {{#if: {{#invoke:Location map|data|{{{1}}}|marksize}}|{{#invoke:Location map|data|{{{1}}}|marksize}}|8}}px; line-height: 0; | ||
+ | }}" title="{{{2|}}}">[[File:{{#if: {{{mark|}}} | ||
+ | | {{{mark}}} | ||
+ | | {{#if: {{#invoke:Location map|data|{{{1}}}|mark}}|{{#invoke:Location map|data|{{{1}}}|mark}}|Red pog.svg}} | ||
+ | }}|{{#if: {{{marksize|}}} | ||
+ | | {{{marksize}}}x{{{marksize}}} | ||
+ | | {{#if: {{#invoke:Location map|data|{{{1}}}|marksize}}|{{#invoke:Location map|data|{{{1}}}|marksize}}|8}}x{{#if: {{#invoke:Location map|data|{{{1}}}|marksize}}|{{#invoke:Location map|data|{{{1}}}|marksize}}|8}} | ||
+ | }}px|{{#if: {{{label|}}} | ||
+ | | {{{label}}} | ||
+ | | {{PAGENAME}} | ||
+ | }}|link={{{link|}}}|alt={{{alt|}}}]]</div>{{#ifeq: {{{position|}}} | none | ||
+ | | | ||
+ | |<div style="font-size: {{#if:{{{label_size|}}}|{{{label_size}}}|90}}%; line-height: 110%; position: relative; top: -1.5em; width: {{#if:{{{label_width|}}}|{{{label_width}}}|6}}em; {{#switch: {{{position}}} | ||
+ | |left = left: -6.5em; text-align: right; | ||
+ | |right = left: 0.5em; text-align: left; | ||
+ | |top = top:-2.65em; left:-3em; text-align: center; | ||
+ | |bottom = top:-0.15em; left: -3em; text-align: center; | ||
+ | |#default={{#ifexpr:{{#if:{{#invoke:Location map|data|{{{1}}}|x}}| | ||
+ | {{#invoke:Location map|data|{{{1}}}|x|{{Location map/old/decdeg | ||
+ | |dec = {{{lat|}}} | ||
+ | |deg = {{{lat_deg|}}} | ||
+ | |min = {{{lat_min|}}} | ||
+ | |sec = {{{lat_sec|}}} | ||
+ | |hem = {{{lat_dir|}}}}}|{{Location map/old/decdeg | ||
+ | |dec = {{{long|}}} | ||
+ | |deg = {{{lon_deg|}}} | ||
+ | |min = {{{lon_min|}}} | ||
+ | |sec = {{{lon_sec|}}} | ||
+ | |hem = {{{lon_dir|}}}}}}}|{{#expr:{{#if:{{#invoke:Location map|data|{{{1}}}|crosses180}}|{{#ifeq: {{{lon_dir|}}}|W|-36000/({{#invoke:Location map|data|{{{1}}}|left}}-{{#invoke:Location map|data|{{{1}}}|right}})|}}|}}}} + 100 * ({{Location map/old/decdeg | ||
+ | |dec = {{{long|}}} | ||
+ | |deg = {{{lon_deg|}}} | ||
+ | |min = {{{lon_min|}}} | ||
+ | |sec = {{{lon_sec|}}} | ||
+ | |hem = {{{lon_dir|}}}}} - {{#invoke:Location map|data|{{{1}}}|left}}) / ({{#invoke:Location map|data|{{{1}}}|right}} - {{#invoke:Location map|data|{{{1}}}|left}}) round 1 | ||
+ | }} > 70|left: -6.5em; text-align: right;|left: 0.5em; text-align: left;}} | ||
+ | }}"><span style="padding: 1px; {{#if: {{{background|}}} | ||
+ | | background-color: {{{background}}}; | ||
+ | }}">{{{label|}}}</span></div> | ||
+ | }}</div></includeonly><noinclude>{{documentation|content= | ||
+ | This is an old version of {{tl|location map~}}, which does not use LUA. It has been preserved for comparison with the current version. | ||
+ | }}</noinclude> |
Latest revision as of 03:08, 30 December 2018

This is an old version of {{location map~}}, which does not use LUA. It has been preserved for comparison with the current version.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |