Difference between revisions of "Template:Location map-line/x"

From blackwiki
Jump to navigation Jump to search
imported>DarafshBot
m (r2.7.1) (Robot: Adding av:Шаблон:Бак1Карта/x)
imported>Zyxw
(add documentation template)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#expr:{{#switch:{{Location map {{{1}}}|type}}
+
<includeonly>{{#expr:{{#switch:{{#invoke:Location map|data|{{{1}}}|type}}
 
|custom={{Location map {{{1}}}/x|{{{2}}}|{{{3}}}}}
 
|custom={{Location map {{{1}}}/x|{{{2}}}|{{{3}}}}}
|polar={{Location map {{{1}}}|x}}+cos(0.0174532925*({{Location map {{{1}}}|alpha}}{{#ifexpr:{{Location map {{{1}}}|length_x}}<0|-|+}}({{#ifexpr:{{{2}}}<0|360+}}{{{2}}})*{{Location map {{{1}}}|mult}}))*{{Location map {{{1}}}|length_x}}*(1-abs({{{3}}})/90)
+
|polar={{#invoke:Location map|data|{{{1}}}|x}}+cos(0.0174532925*({{#invoke:Location map|data|{{{1}}}|alpha}}{{#ifexpr:{{#invoke:Location map|data|{{{1}}}|length_x}}<0|-|+}}({{#ifexpr:{{{2}}}<0|360+}}{{{2}}})*{{#invoke:Location map|data|{{{1}}}|mult}}))*{{#invoke:Location map|data|{{{1}}}|length_x}}*(1-abs({{{3}}})/90)
|100*({{{2}}}{{#ifexpr:({{{2}}}<{{Location map {{{1}}}|left}})*({{#if:{{Location map {{{1}}}|crosses180}}|1|0}})|+360}}-{{Location map {{{1}}}|left}})/({{Location map {{{1}}}|right}}-{{Location map {{{1}}}|left}})}}}}<noinclude>
+
|100*({{{2}}}{{#ifexpr:({{{2}}}<{{#invoke:Location map|data|{{{1}}}|left}})*({{#if:{{#invoke:Location map|data|{{{1}}}|crosses180}}|1|0}})|+360}}-{{#invoke:Location map|data|{{{1}}}|left}})/({{#invoke:Location map|data|{{{1}}}|right}}-{{#invoke:Location map|data|{{{1}}}|left}})}}}}{{#ifeq:{{{1}}}|Earth||{{#if:{{#invoke:this is a horrible hack to cause a script error}}|}}}}</includeonly><noinclude>
 
+
{{Documentation}}
[[av:Шаблон:Бак1Карта/x]]
 
[[az:Şablon:Yer xəritəsi/x]]
 
[[ba:Ҡалып:ПозКарта/x]]
 
[[be:Шаблон:На карце/x]]
 
[[be-x-old:Шаблён:Лякалізацыйная мапа/x]]
 
[[bxr:Template:Location map/x]]
 
[[cs:Šablona:LocMap/x]]
 
[[da:Skabelon:Location map-line/x]]
 
[[fa:الگو:Location map/x]]
 
[[xal:Кевләр:ПозКарта/x]]
 
[[hy:Կաղապար:Տեղորոշման քարտեզ/x]]
 
[[hi:साँचा:Location map/x]]
 
[[id:Templat:Location map-line/x]]
 
[[os:Хуызæг:ПозКартæ/x]]
 
[[krc:Шаблон:ПозКарта/x]]
 
[[ka:თარგი:პოზრუკა/x]]
 
[[kk:Үлгі:ПозКарта/x]]
 
[[ky:Калып:АймакКартасы/x]]
 
[[lez:Шаблон:ПозКарта/x]]
 
[[mk:Шаблон:ПозКарта-линија/x]]
 
[[xmf:თარგი:პოზრუკა/x]]
 
[[nl:Sjabloon:Positiekaart/x]]
 
[[ja:Template:Location map-line/x]]
 
[[ce:Куцкеп:ПозКарта/x]]
 
[[nn:Mal:Kartposisjon-linje/x]]
 
[[mhr:Кышкар:ПозКарта/x]]
 
[[or:ଛାଞ୍ଚ:Location map/x]]
 
[[pt:Predefinição:Location map/x]]
 
[[ro:Format:Location map-line/x]]
 
[[ru:Шаблон:ПозКарта/x]]
 
[[sk:Šablóna:LocMap/x]]
 
[[tt:Калып:ПозХарита/x]]
 
[[zh:Template:Location map-line/x]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 03:35, 29 November 2018

50px Template documentation[view] [edit] [history] [purge]

Usage

This template is used by {{Location map-line/draw line}} when drawing a longitude (vertical) line.

Parameters

  • |1= name of map template
  • |2= longitude in decimal degrees
  • |3= latitude in decimal degrees

Examples

Using Module:Location map/data/Earth:

  • {{Location map-line/x|Earth|0|0}} → 50
  • {{Location map-line/x|Earth|30|0}} → 58.333333333333
  • {{Location map-line/x|Earth|-30|0}} → 41.666666666667
  • {{Location map-line/x|Earth|90|0}} → 75
  • {{Location map-line/x|Earth|-90|0}} → 25

Supporting module

See also