CINXE.COM
Модуль:Coordinates велыжын важшым ончымаш — Википедий
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-not-available" lang="mhr" dir="ltr"> <head> <meta charset="UTF-8"> <title>Модуль:Coordinates велыжын важшым ончымаш — Википедий</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-not-available";var cookie=document.cookie.match(/(?:^|; )mhrwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":true,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat": "dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"00e894c3-ce0d-490d-bd47-c0bba429325d","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Модуль:Coordinates","wgTitle":"Coordinates","wgCurRevisionId":195536,"wgRevisionId":0,"wgArticleId":32758,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Модуль:Coordinates","wgRelevantArticleId":32758,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en", "pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":30000,"wgCodeEditorCurrentLanguage":"lua","wgRelatedArticlesCompat":[],"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.codeEditor.styles":"ready", "skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.charinsert.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.codeEditor","ext.scribunto.edit","mediawiki.action.edit.collapsibleFooter","site","mediawiki.page.ready","skins.vector.js","ext.centralNotice.geoIP","ext.charinsert","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=mhr&modules=ext.charinsert.styles%7Cext.codeEditor.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=mhr&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=mhr&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.6"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="noindex,nofollow,max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Модуль:Coordinates велыжын важшым ончымаш — Википедий"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//mhr.m.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates"> <link rel="alternate" type="application/x-wiki" title="Тӧрлаташ" href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Википедий (mhr)"> <link rel="EditURI" type="application/rsd+xml" href="//mhr.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://mhr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.mhr"> <link rel="alternate" type="application/atom+xml" title="Википедий Atom кыл" href="/w/index.php?title=%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%9F%D1%8B%D1%82%D0%B0%D1%80%D1%82%D1%8B%D1%88_%D1%82%D3%A7%D1%80%D0%BB%D0%B0%D1%82%D1%8B%D0%BC%D0%B0%D1%88-%D0%B2%D0%BB%D0%B0%D0%BA&feed=atom"> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="codeeditor-loading skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-828 ns-subject mw-editable page-Модуль_Coordinates rootpage-Модуль_Coordinates skin-vector-2022 action-edit"><a class="mw-jump-link" href="#bodyContent">Содержанийышке куснаш</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Сайт"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Тӱҥ меню" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Тӱҥ меню</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Тӱҥ меню</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">ӧрдыж панельыш кусараш</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">шылташ</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Навигаций </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/%D0%A2%D3%B1%D2%A5_%D0%BB%D0%B0%D1%88%D1%82%D1%8B%D0%BA" title="Тӱҥ лаштыкыш куснаш [z]" accesskey="z"><span>Тӱҥ лаштык</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D0%B9:%D0%A2%D3%B1%D1%88%D0%BA%D0%B0" title="Проект нерген, мом тый ыштен кертат, мо кушто уло"><span>Тӱшка портал</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%9F%D1%8B%D1%82%D0%B0%D1%80%D1%82%D1%8B%D1%88_%D1%82%D3%A7%D1%80%D0%BB%D0%B0%D1%82%D1%8B%D0%BC%D0%B0%D1%88-%D0%B2%D0%BB%D0%B0%D0%BA" title="Викыште пытартыш вашталтымаш лӱмер [r]" accesskey="r"><span>Пытартыш тӧрлатымаш-влак</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%A1%D0%BB%D1%83%D1%87%D0%B0%D0%B9%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0" title="Чокым велыжым вераҥдаш [x]" accesskey="x"><span>Чокым лаштык</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D0%B9:%D0%9F%D0%BE%D0%BB%D1%8B%D1%88" title="Википедийым кучылтмо да тӧрлатыме шотышто полыш."><span>Полыш</span></a></li><li id="n-sidebar-sandbox" class="mw-list-item"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D0%B9:%D0%9C%D0%BE%D0%B4%D0%BC%D0%BE_%D0%B2%D0%B5%D1%80"><span>Модмо вер</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/%D0%A2%D3%B1%D2%A5_%D0%BB%D0%B0%D1%88%D1%82%D1%8B%D0%BA" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Википедий" src="/static/images/mobile/copyright/wikipedia-wordmark-mhr.svg" style="width: 7.5em; height: 1.5em;"> <img class="mw-logo-tagline" alt="эрыкан энциклопедий" src="/static/images/mobile/copyright/wikipedia-tagline-mhr.svg" width="120" height="11" style="width: 7.5em; height: 0.6875em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%9A%D1%8B%D1%87%D0%B0%D0%BB%D0%BC%D0%B0%D1%88" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Википедий сайтыште кычалаш [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Кычалмаш</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Википедий сайтыште кычалаш" aria-label="Википедий сайтыште кычалаш" autocapitalize="sentences" title="Википедий сайтыште кычалаш [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Лӱмын_ыштыме:Кычалмаш"> </div> <button class="cdx-button cdx-search-input__end-button">Кычалаш</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Лӱмал ӱзгар-влак"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Тӱжвал сын"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Измените внешний вид страницы, размер, ширину и цвет шрифта." > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Тӱжвал сын" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Тӱжвал сын</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=mhr.wikipedia.org&uselang=mhr" class=""><span>Надырлаш</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%A1%D0%BE%D0%B7%D0%B4%D0%B0%D1%82%D1%8C_%D1%83%D1%87%D1%91%D1%82%D0%BD%D1%83%D1%8E_%D0%B7%D0%B0%D0%BF%D0%B8%D1%81%D1%8C&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3ACoordinates&returntoquery=action%3Dedit" title="Ме тыланда регистрацийым эрташ да системыш пураш темлена." class=""><span>Аккаунтым ышташ</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%92%D1%85%D0%BE%D0%B4&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3ACoordinates&returntoquery=action%3Dedit" title="Тыште регистрацийым эртен кертат. Регистраций деч поснаат пашам ышташ лиеш. [o]" accesskey="o" class=""><span>Пураш</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Утларак йӧн-влак" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Лӱмал ӱзгар-влак" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Лӱмал ӱзгар-влак</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Ушнышын менюжо" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=mhr.wikipedia.org&uselang=mhr"><span>Надырлаш</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%A1%D0%BE%D0%B7%D0%B4%D0%B0%D1%82%D1%8C_%D1%83%D1%87%D1%91%D1%82%D0%BD%D1%83%D1%8E_%D0%B7%D0%B0%D0%BF%D0%B8%D1%81%D1%8C&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3ACoordinates&returntoquery=action%3Dedit" title="Ме тыланда регистрацийым эрташ да системыш пураш темлена."><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Аккаунтым ышташ</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%92%D1%85%D0%BE%D0%B4&returnto=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3ACoordinates&returntoquery=action%3Dedit" title="Тыште регистрацийым эртен кертат. Регистраций деч поснаат пашам ышташ лиеш. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Пураш</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Ӧрдыж редактор-влаклан странице-влак <a href="/wiki/%D0%9F%D0%BE%D0%BB%D1%88%D1%8B%D0%BA:%D0%9F%D0%B0%D0%BB%D0%B4%D0%B0%D1%80%D1%8B%D0%BC%D0%B0%D1%88" aria-label="Тӧрлымӧ нерген тӱрыс пален налаш"><span>утларак пален налаш</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%9C%D0%BE%D0%B9_%D0%B2%D0%BA%D0%BB%D0%B0%D0%B4" title="Тиде IP адрес гыч ыштыме тӧрлымаш списке [y]" accesskey="y"><span>Надыр</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%9C%D0%BE%D1%91_%D0%BE%D0%B1%D1%81%D1%83%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5" title="Мыйын IP адреслан каҥашымаш велыж [n]" accesskey="n"><span>Каҥашымаш</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Сайт"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <h1 id="firstHeading" class="firstHeading mw-first-heading">Модуль:Coordinates велыжын важшым ончымаш</h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Ты статья тиде йылме дене гына уло. Вес йылмылан келыштарыме статьям ешаре" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-0" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">Йылме-влакым ешараш</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="uls-after-portlet-link"></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Лӱм кумдык-влак"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-module" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates" title="Просмотреть страницу модуля [c]" accesskey="c"><span>Модуль</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%D0%9E%D0%B1%D1%81%D1%83%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5_%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%8F:Coordinates&action=edit&redlink=1" rel="discussion" class="new" title="Лаштыкыште возымым каҥашаш (тыгай лаштык уке) [t]" accesskey="t"><span>Каҥашымаш</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Йылме вариантым вашталташ" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Ончымаш-влак"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="vector-tab-noicon mw-list-item"><a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates"><span>Лудаш</span></a></li><li id="ca-edit" class="selected vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates&action=edit" title="Править исходный текст этой страницы"><span>Кодым тӧрлаташ</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates&action=history" title="Лаштыкын ондаксе тӧрлатымаш [h]" accesskey="h"><span>Эртымгорным ончалаш</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Битләр ясау өчен кораллар"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Ӱзгар-влак" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Ӱзгар-влак</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Ӱзгар-влак</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">ӧрдыж панельыш кусараш</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">шылташ</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Шукырак йӧн" > <div class="vector-menu-heading"> Ыштымаш </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="vector-more-collapsible-item mw-list-item"><a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates"><span>Лудаш</span></a></li><li id="ca-more-edit" class="selected vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates&action=edit" title="Править исходный текст этой страницы [e]" accesskey="e"><span>Кодым тӧрлаташ</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates&action=history"><span>Эртымгорным ончалаш</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Чумыр </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%A1%D1%81%D1%8B%D0%BB%D0%BA%D0%B8_%D1%81%D1%8E%D0%B4%D0%B0/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates" title="Тышке кылвер дене чыла вики велыж-влак списке [j]" accesskey="j"><span>Тышке кондышо кылвер-влак</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%A1%D0%B2%D1%8F%D0%B7%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5_%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B8/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates" rel="nofollow" title="Тиде лаштык дене кылдалтше пытартыш тӧрлатымаш-влак [k]" accesskey="k"><span>Ваш кылдалтше тӧрлатымаш-влак</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=mhr" title="Файл-влакым пурташ [u]" accesskey="u"><span>Файлым вераҥдаш</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:%D0%A1%D0%BF%D0%B5%D1%86%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D1%8B" title="Спецлаштык-влак [q]" accesskey="q"><span>Спецвелыж-влак</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates&action=info" title="Тиде велыж нерген кумданрак"><span>Велыж нерген информаций</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:UrlQ%C4%B1sald%C4%B1c%C4%B1s%C4%B1&url=https%3A%2F%2Fmhr.wikipedia.org%2Fw%2Findex.php%3Ftitle%3D%25D0%259C%25D0%25BE%25D0%25B4%25D1%2583%25D0%25BB%25D1%258C%3ACoordinates%26action%3Dedit"><span>Кӱчык URL-адресым налаш</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=%D0%9B%D3%B1%D0%BC%D1%8B%D0%BD_%D1%8B%D1%88%D1%82%D1%8B%D0%BC%D0%B5:QrKodu&url=https%3A%2F%2Fmhr.wikipedia.org%2Fw%2Findex.php%3Ftitle%3D%25D0%259C%25D0%25BE%25D0%25B4%25D1%2583%25D0%25BB%25D1%258C%3ACoordinates%26action%3Dedit"><span>QR кодым возен налаш</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> Моло проектлаште </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Битләр ясау өчен кораллар"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Тӱжвал сын"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Тӱжвал сын</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">ӧрдыж панельыш кусараш</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">шылташ</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> </div> <div id="contentSub"><div id="mw-content-subtitle">← <a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates" title="Модуль:Coordinates">Модуль:Coordinates</a></div></div> <div id="mw-content-text" class="mw-body-content"><p>Тыгай амаллан кӧра «тиде лаштыкым тӧрлаташ» тыйын прават уке: </p> <div class="permissions-errors"><div class="mw-permissionerror-globalblocking-blockedtext-range"><b>Your IP address is in a range that has been <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Global_blocks" class="extiw" title="m:Special:MyLanguage/Global blocks">blocked on all Wikimedia Foundation wikis</a>.</b> <p>The block was made by <a href="/wiki/%D0%9F%D0%B0%D0%B9%D0%B4%D0%B0%D0%BB%D0%B0%D0%BD%D1%8B%D1%88%D0%B5:Jon_Kolbert" title="Пайдаланыше:Jon Kolbert">Jon Kolbert</a>. The reason given is <i><a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/NOP" class="extiw" title="m:Special:MyLanguage/NOP">Open proxy/Webhost</a>: See the <a href="https://meta.wikimedia.org/wiki/WM:OP/H" class="extiw" title="m:WM:OP/H">help page</a> if you are affected </i>. </p> <ul><li>Start of block: 15:12, 27 сорла 2023</li> <li>Expiry of block: 15:12, 27 сорла 2028</li></ul> <p>Your current IP address is 8.222.208.146. The blocked range is 8.222.128.0/17. </p><p>Порылий, кеч-могай шке йодмашыштет чыла тиде рашлыкым ончыкто. If you believe you were blocked by mistake, you can find additional information and instructions in the <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/No_open_proxies" class="extiw" title="m:Special:MyLanguage/No open proxies">No open proxies</a> global policy. </p> Otherwise, to discuss the block please <a href="https://meta.wikimedia.org/wiki/Steward_requests/Global" class="extiw" title="m:Steward requests/Global">post a request for review on Meta-Wiki</a>. You could also send an email to the <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Stewards" class="extiw" title="m:Special:MyLanguage/Stewards">stewards</a> <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/VRT" class="extiw" title="m:Special:MyLanguage/VRT">VRT</a> queue at <kbd>stewards@wikimedia.org</kbd> including all above details.</div></div><hr /> <p>Ты лаштыкын тӱҥалтыш кодшым ончен да тудын копийжым ыштен кертат. </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="en" dir="ltr" name="wpTextbox1">--[[ This module is intended to replace the functionality of {{Coord}} and related templates. It provides several methods, including {{#Invoke:Coordinates | coord }} : General function formatting and displaying coordinate values. {{#Invoke:Coordinates | dec2dms }} : Simple function for converting decimal degree values to DMS format. g {{#Invoke:Coordinates | dms2dec }} : Simple function for converting DMS format to decimal degree format. ]] math_mod = require( "Module:Math" ); globalFrame = nil coordinates = {}; local globe_list = '||earth|mercury|venus|moon|mars|phobos|deimos|ganymede|callisto|io|europa|mimas|enceladus|tethys|dione|rhea|titan|hyperion|iapetus|phoebe|miranda|ariel|umbriel|titania|oberon|triton|pluto|charon|ceres|vesta|' local Dispay = ''; --[[ Helper function, replacement for {{coord/display/title}} ]] function displaytitle (s, notes, globalFrame) return globalFrame:extensionTag{ name = 'indicator', content = s .. notes, args = { name = '0-coord' } }; end --[[ Helper function, Replacement for {{coord/display/inline}} ]] function displayinline (s, notes) return s .. notes end --[[ Helper function, used in detecting DMS formatting ]] local dmsTest = function(first, second) local concatenated = first:upper() .. second:upper(); if concatenated == "NE" or concatenated == "NW" or concatenated == "SE" or concatenated == "SW" or concatenated == "EN" or concatenated == "WN" or concatenated == "ES" or concatenated == "WS" then return true; end return false; end --[[ parseDec Transforms decimal format latitude and longitude into the a structure to be used in displaying coordinates ]] function parseDec( lat, long, format ) local coordinateSpec = {} local errors = {} errors = validate( lat, nil, nil, long, nil, nil, 'parseDec', false ); if #errors ~= 0 then return nil, errors end coordinateSpec["dec-lat"] = lat; coordinateSpec["dec-long"] = long; local mode = coordinates.determineMode( lat, long ); coordinateSpec["dms-lat"] = convert_dec2dms( lat, "&nbsp;с.&nbsp;ш.", "&nbsp;ю.&nbsp;ш.", mode) -- {{coord/dec2dms|{{{1}}}|N|S|{{coord/prec dec|{{{1}}}|{{{2}}}}}}} coordinateSpec["dms-long"] = convert_dec2dms( long, "&nbsp;в.&nbsp;д.", "&nbsp;з.&nbsp;д.", mode) -- {{coord/dec2dms|{{{2}}}|E|W|{{coord/prec dec|{{{1}}}|{{{2}}}}}}} if format ~= "" then coordinateSpec.default = format else coordinateSpec.default = "dms" end return coordinateSpec, errors end --[[ Helper function, handle optional args. ]] function optionalArg(arg, suplement, bool) if arg ~= nil and arg ~= "" then arg = (tonumber( arg ) % 1 == 0 or not bool) and string.format( "%02d", arg ) or string.format( "%02.2f", arg):gsub('%.', ',') return arg .. suplement end return "" end --[[ parseDMS Transforms degrees, minutes, seconds format latitude and longitude into the a structure to be used in displaying coordinates ]] function parseDMS( lat_d, lat_m, lat_s, lat_f, long_d, long_m, long_s, long_f, format ) local coordinateSpec = {} local errors = {} lat_f = lat_f:upper(); long_f = long_f:upper(); -- Check if specified backward if lat_f == 'E' or lat_f == 'W' then local t_d, t_m, t_s, t_f; t_d = lat_d; t_m = lat_m; t_s = lat_s; t_f = lat_f; lat_d = long_d; lat_m = long_m; lat_s = long_s; lat_f = long_f; long_d = t_d; long_m = t_m; long_s = t_s; long_f = t_f; end errors = validate( lat_d, lat_m, lat_s, long_d, long_m, long_s, 'parseDMS', true ); if #errors ~= 0 then return nil, errors end coordinateSpec["dec-lat"] = convert_dms2dec(lat_f, lat_d, lat_m, lat_s) -- {{coord/dms2dec|{{{4}}}|{{{1}}}|0{{{2}}}|0{{{3}}}}} coordinateSpec["dec-long"] = convert_dms2dec(long_f, long_d, long_m, long_s) -- {{coord/dms2dec|{{{8}}}|{{{5}}}|0{{{6}}}|0{{{7}}}}} if lat_m == nil and lat_s == nil and long_m == nil and long_s == nil and #errors == 0 or math_mod._precision( lat_d ) > 0 or math_mod._precision( long_d ) > 0 then if lat_f:upper() == 'S' then lat_d = '-' .. lat_d; lat_f = "&nbsp;ю.&nbsp;ш."; else lat_f = "&nbsp;с.&nbsp;ш."; end if long_f:upper() == 'W' then long_d = '-' .. long_d; long_f = "&nbsp;з.&nbsp;д."; else long_f = "&nbsp;в.&nbsp;д."; end return parseDec( lat_d, long_d, format ); end if lat_f:upper() == 'S' then lat_f = "&nbsp;ю.&nbsp;ш."; else lat_f = "&nbsp;с.&nbsp;ш."; end if long_f:upper() == 'E' then long_f = "&nbsp;в.&nbsp;д."; else long_f = "&nbsp;з.&nbsp;д."; end if lat_s == '0' and long_s == '0' then lat_s, long_s = nil, nil if lat_m == '0' and long_m == '0' then lat_m, long_m = nil, nil end end coordinateSpec["dms-lat"] = lat_d.."°"..optionalArg(lat_m,"′", true) .. optionalArg(lat_s,"″") .. lat_f coordinateSpec["dms-long"] = long_d.."°"..optionalArg(long_m,"′", true) .. optionalArg(long_s,"″") .. long_f if format ~= "" then coordinateSpec.default = format else coordinateSpec.default = "dms" end return coordinateSpec, errors end --[[ splitParam Split the parameter string and convert it into an object. ]] function splitParam( param ) local out = {} for pair in mw.text.gsplit( param, '_', true ) do local keyValue = mw.text.split( pair, ':', true ) if #keyValue == 2 then out[keyValue[1]] = keyValue[2] end end return out end --[[ specPrinter Output formatter. Takes the structure generated by either parseDec or parseDMS and formats it for inclusion on Wikipedia. ]] function specPrinter(args) local coordinateSpec, errors = formatTest(args) if coordinateSpec == nil then return errors end local param = coordinateSpec["param"] .. '_' .. coordinateSpec["extra_param"] local uriComponents = param if uriComponents == "" then -- RETURN error, should never be empty or nil return "Ошибка: не задан param" end if args["name"] ~= "" and args["name"] ~= nil then uriComponents = uriComponents .. "&title=" .. mw.uri.encode(coordinateSpec["name"]) end local text = '' local lat = tonumber( coordinateSpec["dec-lat"] ) or 0 if lat < 0 then -- FIXME this breaks the pre-existing precision geodeclat = coordinateSpec["dec-lat"]:sub(2):gsub('%.', ',') .. "°&nbsp;ю.&nbsp;ш." else geodeclat = (coordinateSpec["dec-lat"]:gsub('%.', ',') or 0) .. "°&nbsp;с.&nbsp;ш." end local long = tonumber( coordinateSpec["dec-long"] ) or 0 if long < 0 then -- FIXME does not handle unicode minus geodeclong = coordinateSpec["dec-long"]:sub(2):gsub('%.', ',') .. "°&nbsp;з.&nbsp;д." else geodeclong = (coordinateSpec["dec-long"]:gsub('%.', ',') or 0) .. "°&nbsp;в.&nbsp;д." end local geodmshtml = '<span class="geo-dms" title="Различные карты и схемы для этого места">' .. '<span class="latitude">' .. coordinateSpec["dms-lat"] .. '</span> ' .. '<span class="longitude">' ..coordinateSpec["dms-long"] .. '</span>' .. '</span>' local geodechtml = '<span class="geo-dec" title="Различные карты и схемы для этого места">' .. geodeclat .. ' ' .. geodeclong .. '</span>' local geonumhtml = '<span class="geo">' .. coordinateSpec["dec-lat"] .. '; ' .. coordinateSpec["dec-long"] .. '</span>' local inner; inner = '<span class="geo-geo-' .. coordinateSpec.default .. '"><span class="geo-dms">' .. geodmshtml .. '</span>' .. '<span class="geo-multi-punct">&#xfeff; / &#xfeff;</span>' .. '<span class="geo-dec">'; if args["name"] == "" or args["name"] == nil then inner = inner .. geodechtml .. '<span style="display:none">&#xfeff; / ' .. geonumhtml .. '</span></span></span>' else inner = inner .. '<span class="vcard">' .. geodechtml .. '<span style="display:none">&#xfeff; / ' .. geonumhtml .. '</span>' .. '<span style="display:none">&#xfeff; (<span class="fn org">' .. args["name"] .. '</span>)</span></span></span></span>' end local params = splitParam( param ) local type = string.gsub( string.lower( params.type or '' ), '%(.+$', '' ) local scale if args.scale and args.scale ~= '' then scale = tonumber( args.scale ) end if not scale then local typeScale = { adm1st = 1000000, adm2nd = 300000, adm3rd = 100000, airport = 30000, city = 100000, country = 10000000, edu = 10000, event = 50000, forest = 50000, glacier = 50000, isle = 100000, landmark = 10000, mountain = 100000, pass = 10000, railwaystation = 10000, river = 100000, satellite = 10000000, waterbody = 100000, camera = 10000 } if typeScale[type] then scale = typeScale[type] else scale = 30000 end end if scale < 2000 then zoom = 18 elseif scale < 5000 then zoom = 17 elseif scale < 10000 then zoom = 16 elseif scale < 20000 then zoom = 15 elseif scale < 40000 then zoom = 14 elseif scale < 80000 then zoom = 13 elseif scale < 160000 then zoom = 12 elseif scale < 320000 then zoom = 11 elseif scale < 640000 then zoom = 10 elseif scale < 1280000 then zoom = 9 elseif scale < 2560000 then zoom = 8 elseif scale < 5120000 then zoom = 7 elseif scale < 10240000 then zoom = 6 elseif scale < 20480000 then zoom = 5 elseif scale < 40960000 then zoom = 4 else zoom = 3 end if coordinateSpec.default == 'dec' then text = geodeclat .. ' ' .. geodeclong else text = coordinateSpec["dms-lat"] .. ' ' .. coordinateSpec["dms-long"] end local maplinkArgs = { ['latitude'] = coordinateSpec['dec-lat'], ['longitude'] = coordinateSpec['dec-long'], ['zoom'] = zoom, ['text'] = text, ['title'] = mw.title.getCurrentTitle().text, ['lang'] = 'ru' } if coordinateSpec['name'] and coordinateSpec['name'] ~= '' then maplinkArgs['title'] = coordinateSpec['name'] end local maplinkMarkerSymbol = 'star' local markerSymbols = { adm1st = 'city', adm2nd = 'city', adm3rd = 'city', airport = 'airport', city = 'city', country = 'city', edu = 'college', forest = 'park', glacier = 'mountain', mountain = 'mountain', pass = 'mountain', railwaystation = 'rail', river = 'water', satellite = 'rocket', waterbody = 'water', camera = 'attraction' } if markerSymbols[type] then maplinkMarkerSymbol = markerSymbols[type] end local maplinkContent = [[ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ ]] .. coordinateSpec['dec-long'] .. [[, ]] .. coordinateSpec['dec-lat'] .. [[ ] }, "properties": { "title": "]] .. mw.text.encode( maplinkArgs['title'] ) .. [[", "marker-symbol": "]] .. maplinkMarkerSymbol .. [[", "marker-color": "#3366cc" } } ]]; local entityId = mw.wikibase.getEntityIdForCurrentPage() if entityId then maplinkContent = maplinkContent .. [[, { "type": "ExternalData", "service": "geoline", "ids": "]] .. mw.wikibase.getEntityIdForCurrentPage() .. [[", "properties": { "stroke": "#FF9999" } }, { "type": "ExternalData", "service": "geoshape", "ids": "]] .. mw.wikibase.getEntityIdForCurrentPage() .. [[", "properties": { "fill": "#FF0000", "fill-opacity": 0.1, "stroke": "#FF9999" } } ]] end local globe = string.lower( args.globe or params.globe or '' ) if globe == '' then globe = 'earth' end local result = '<span class="coordinates plainlinks nourlexpansion" data-param="' .. mw.text.encode( param ) .. '">' -- external links local nogoogle = string.lower( args.nogoogle or '' ) local noosm = string.lower( args.noosm or '' ) local noyandex = string.lower( args.noyandex or '' ) if globe == 'earth' then result = result .. '<span title="Ончыкташ;">' .. globalFrame:extensionTag{ name = 'maplink', content = '[' .. maplinkContent .. ']', args = maplinkArgs } .. '</span>' if nogoogle == '' or noosm == '' or noyandex == '' then result = result .. '<sup class="geo-services noprint">' result = result .. globalFrame:preprocess( '<span class="geo-geohack" title="Карты и инструменты на GeoHack">' .. '[https://geohack.toolforge.org/geohack.php?language=ru&pagename={{FULLPAGENAMEE}}&params=' .. uriComponents .. ' ' .. '<span>H</span>]</span>' ) if nogoogle == '' then result = result .. '<span class="geo-google" title="Это место на «Картах Google»">[//maps.google.com/maps?' .. 'll=' .. coordinateSpec["dec-lat"] .. ',' .. coordinateSpec["dec-long"] .. '&q=' .. coordinateSpec["dec-lat"] .. ',' .. coordinateSpec["dec-long"] .. '&spn=' .. (scale / 1000000) .. ',' .. (scale / 1000000) .. '&t=h&hl=ru ' .. '<span>G</span>]</span>' end if noyandex == '' then result = result .. '<span class="geo-yandex" title="Это место на «Яндекс.Картах»">[//yandex.ru/maps/' .. '?ll=' .. coordinateSpec["dec-long"] .. ',' .. coordinateSpec["dec-lat"] .. '&pt=' .. coordinateSpec["dec-long"] .. ',' .. coordinateSpec["dec-lat"] .. '&spn=' .. (scale / 1000000) .. ',' .. (scale / 1000000) .. '&l=' .. 'sat,skl ' .. '<span>Я</span>]</span>' end if noosm == '' then result = result .. '<span class="geo-osm" title="Это место на карте OpenStreetMap">[https://www.openstreetmap.org/?' .. 'mlat=' .. coordinateSpec["dec-lat"] .. '&mlon=' .. coordinateSpec["dec-long"] .. '&zoom=' .. zoom .. ' ' .. '<span>O</span>]</span>' end result = result .. '</sup>' end else -- FIXME [[phab:T151138]] result = result .. globalFrame:preprocess( '[//geohack.toolforge.org/geohack.php?language=ru&pagename={{FULLPAGENAMEE}}&params=' .. uriComponents .. ' ' .. inner .. ']' ) if globe == 'moon' or globe == 'mars' and nogoogle == '' then result = result .. '<sup class="geo-services noprint"><span class="geo-google" title="Это место на «Картах Google»">[//www.google.com/' .. globe .. '/#lat=' .. coordinateSpec["dec-lat"] .. '&lon=' .. coordinateSpec["dec-long"] .. '&zoom=7' .. '&map=visible' .. '&apollo= <span>G</span>]</span></sup>' end end result = result .. '</span>' local geodata = '' if coordinateSpec["dec-lat"] and coordinateSpec["dec-long"] then if globe ~= 'earth' and globe ~= 'moon' then if tonumber(coordinateSpec["dec-long"]) < 0 then coordinateSpec["dec-long"] = tostring(360 + tonumber(coordinateSpec["dec-long"])) end end local frame = mw.getCurrentFrame() local geodataparams = {[1] = coordinateSpec["dec-lat"], [2] = coordinateSpec["dec-long"], [3] = coordinateSpec["extra_param"], ['globe'] = globe } if string.find( Display, 'title' ) ~= nil and mw.title.getCurrentTitle():inNamespace(0) then geodataparams[4] = 'primary' end if coordinateSpec["name"] then geodataparams.name = coordinateSpec["name"] end geodata = frame:callParserFunction('#coordinates', geodataparams ) result = result .. geodata end return errors and result .. errors or result end --[[ Formats any error messages generated for display ]] function errorPrinter(errors) local result = "" for i,v in ipairs(errors) do local errorHTML = '<strong class="error">Координат-влак: ' .. v[2] .. '</strong>' result = result .. errorHTML .. "<br />" end if result ~= '' then if mw.title.getCurrentTitle():inNamespace(0) then return result .. '[[Категорий:Страницы с некорректными тегами координат]]' else return result end end end --[[ Determine the required CSS class to display coordinates Usually geo-nondefault is hidden by CSS, unless a user has overridden this for himself default is the mode as specificied by the user when calling the {{coord}} template mode is the display mode (dec or dms) that we will need to determine the css class for ]] function displayDefault(default, mode) if default == "" then default = "dec" end if default == mode then return "geo-default" else return "geo-nondefault" end end --[[ Check the input arguments for coord to determine the kind of data being provided and then make the necessary processing. ]] function formatTest(args) local result, errors; local param, extra_param = {}, {} local globe = string.lower( args.globe or '' ) if not globe_list:find('|' .. globe .. '|') then return nil, errorPrinter( {{"formatTest", "неизвестный глобус"}} ) end if args[4] == "" and args[5] == "" and args[6] == "" then -- dec logic result, errors = parseDec( args[1], args[2], args['format'] ) param = { args[1], "N", args[2], "E", args[3] }; elseif dmsTest(args[4], args[8]) then -- dms logic result, errors = parseDMS( args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args['format'] ) param = { args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9] }; if args[10] ~= '' then table.insert( errors, { 'formatTest', 'неожиданные дополнительные параметры' } ); end elseif dmsTest(args[3], args[6]) then -- dm logic result, errors = parseDMS( args[1], args[2], nil, args[3], args[4], args[5], nil, args[6], args['format'] ) param = { args[1], args[2], args[3], args[4], args[5], args[6], args[7] }; if args[8] ~= '' then table.insert( errors, { 'formatTest', 'неожиданные дополнительные параметры' } ); end elseif dmsTest(args[2], args[4]) then -- d logic result, errors = parseDMS( args[1], nil, nil, args[2], args[3], nil, nil, args[4], args['format'] ) param = { args[1], args[2], args[3], args[4], args[5] }; if args[6] ~= '' then table.insert( errors, { 'formatTest', 'неожиданные дополнительные параметры' } ); end else -- Error return nil, errorPrinter( {{"formatTest", "неизвестный формат аргумента"}} ) end if not result then return nil, errorPrinter( errors ) end result.name = args["name"] local last = table.getn (param) if param[last] == '' then table.remove(param, last) end local extra_params = { 'dim', 'globe', 'scale', 'region', 'source', 'type' } for _, v in ipairs( extra_params ) do if (args[v] or '') ~= '' then table.insert( extra_param, v .. ':' .. args[v] ); end end result.param = table.concat( param , '_' ); result.extra_param = table.concat( extra_param , '_' ); return result, errorPrinter( errors ) end --[[ Helper function, convert decimal latitude or longitude to degrees, minutes, and seconds format based on the specified precision. ]] function convert_dec2dms(coordinate, firstPostfix, secondPostfix, precision) local coord = tonumber(coordinate) or 0 local postfix if coord >= 0 then postfix = firstPostfix else postfix = secondPostfix end precision = precision:lower(); if precision == "dms" then return convert_dec2dms_dms( math.abs( coord ) ) .. postfix; elseif precision == "dm" then return convert_dec2dms_dm( math.abs( coord ) ) .. postfix; elseif precision == "d" then return convert_dec2dms_d( math.abs( coord ) ) .. postfix; end end --[[ Helper function, convert decimal to degrees ]] function convert_dec2dms_d(coordinate) local d = math_mod._round( coordinate, 0 ) .. "°" return d .. "" end --[[ Helper function, convert decimal to degrees and minutes ]] function convert_dec2dms_dm(coordinate) coordinate = math_mod._round( coordinate * 60, 0 ); local m = coordinate % 60; coordinate = math.floor( (coordinate - m) / 60 ); local d = coordinate % 360 .."°" return d .. string.format( "%02d′", m ) end --[[ Helper function, convert decimal to degrees, minutes, and seconds ]] function convert_dec2dms_dms(coordinate) coordinate = math_mod._round( coordinate * 60 * 60, 0 ); local s = coordinate % 60 coordinate = math.floor( (coordinate - s) / 60 ); local m = coordinate % 60 coordinate = math.floor( (coordinate - m) / 60 ); local d = coordinate % 360 .."°" return d .. string.format( "%02d′", m ) .. string.format( "%02d″", s ) end --[[ Convert DMS format into a N or E decimal coordinate ]] function convert_dms2dec(direction, degrees_str, minutes_str, seconds_str) local degrees = tonumber(degrees_str) or 0 local minutes = tonumber(minutes_str) or 0 local seconds = tonumber(seconds_str) or 0 local factor direction = mw.ustring.gsub(direction, '^[ ]*(.-)[ ]*$', '%1'); if direction == "S" or direction == "W" then factor = -1 else factor = 1 end local precision = 0 if seconds_str ~= nil and seconds_str ~= '' then precision = 5 + math.max( math_mod._precision(seconds_str), 0 ); elseif minutes_str ~= nil and minutes_str ~= '' then precision = 3 + math.max( math_mod._precision(minutes_str), 0 ); else precision = math.max( math_mod._precision(degrees_str), 0 ); end local decimal = factor * (degrees+(minutes+seconds/60)/60) return string.format( "%." .. precision .. "f", decimal ) -- not tonumber since this whole thing is string based. end --[[ Checks input values to for out of range errors. ]] function validate( lat_d, lat_m, lat_s, long_d, long_m, long_s, source, strong ) local errors = {}; if long_d == nil or long_d == '' then table.insert(errors, {source, "пропущена долгота"}) end if lat_d == nil or lat_d == '' then table.insert(errors, {source, "пропущена широта"}) end lat_d = tonumber( lat_d ) or 0; lat_m = tonumber( lat_m ) or 0; lat_s = tonumber( lat_s ) or 0; long_d = tonumber( long_d ) or 0; long_m = tonumber( long_m ) or 0; long_s = tonumber( long_s ) or 0; if strong then if lat_d < 0 then table.insert(errors, {source, "градусы широты < 0"}) end if long_d < 0 then table.insert(errors, {source, "градусы долготы < 0"}) end --[[ #coordinates is inconsistent about whether this is an error. If globe: is specified, it won't error on this condition, but otherwise it will. For not simply disable this check. if long_d > 180 then table.insert(errors, {source, "longitude degrees > 180 with hemisphere flag"}) end ]] end if lat_d > 90 then table.insert(errors, {source, "градусы широты > 90"}) end if lat_d < -90 then table.insert(errors, {source, "градусы широты < -90"}) end if lat_m >= 60 then table.insert(errors, {source, "минуты широты >= 60"}) end if lat_m < 0 then table.insert(errors, {source, "минуты широты < 0"}) end if lat_s >= 60 then table.insert(errors, {source, "секунды широты >= 60"}) end if lat_s < 0 then table.insert(errors, {source, "секунды широты < 0"}) end if long_d >= 360 then table.insert(errors, {source, "градусы долготы >= 360"}) end if long_d <= -360 then table.insert(errors, {source, "градусы долготы <= -360"}) end if long_m >= 60 then table.insert(errors, {source, "минуты долготы >= 60"}) end if long_m < 0 then table.insert(errors, {source, "минуты долготы < 0"}) end if long_s >= 60 then table.insert(errors, {source, "секунды долготы >= 60"}) end if long_s < 0 then table.insert(errors, {source, "секунды долготы < 0"}) end return errors; end local function splitCoord(args, s) if s and s~= nil then local iterator = mw.ustring.gmatch(s, "[^/]+"); local i = 1; for w in iterator do args[i] = w; i = i + 1; end end for i=1,10 do if args[i] == nil then args[i] = "" else args[i] = args[i]:match( '^%s*(.-)%s*$' ); --remove whitespace end end return args end --[[ Helper function to determine whether to use D, DM, or DMS format depending on the precision of the decimal input. ]] function coordinates.determineMode( value1, value2 ) local precision = math.max( math_mod._precision( value1 ), math_mod._precision( value2 ) ); if precision <= 0 then return 'd' elseif precision <= 2 then return 'dm'; else return 'dms'; end end --[[ coord Main entry point for Lua function to replace {{coord}} Usage: {{ Invoke:Coordinates | coord }} {{ Invoke:Coordinates | coord | lat | long }} {{ Invoke:Coordinates | coord | lat | lat_flag | long | long_flag }} ... Refer to {{coord}} documentation page for many additional parameters and configuration options. Note: This function provides the visual display elements of {{coord}}. In order to load coordinates into the database, the {{#coordinates:}} parser function must also be called, this is done automatically in the Lua version of {{coord}}. ]] function coordinates.coord(frame) globalFrame = frame local args = frame.args if args[1] == nil then local pFrame = frame:getParent(); args = pFrame.args; for k,v in pairs( frame.args ) do args[k] = v; end end local coord = args.coord or nil; args = splitCoord(args, coord) args['format'] = args['format'] or ''; Display = string.lower(args.display or "inline") local contents = specPrinter(args) local Notes = args.notes or "" if Display == '' then Display = 'inline'; end local text = '' if string.find( Display, 'inline' ) ~= nil then text = displayinline(contents, Notes) end if string.find( Display, 'title' ) ~= nil then displaytitle_ = true text = text .. displaytitle(contents, Notes, frame) end return text end function coordinates.getLon(frame) local args = frame.args args = splitCoord(args, args[1]) local out = formatTest(args) return out['dec-long'] end function coordinates.getLat(frame) local args = frame.args args = splitCoord(args, args[1]) local out = formatTest(args) return out['dec-lat'] end return coordinates </textarea><div id="mw-scribunto-console"></div><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Тиде велыжыште кучылтмо шаблон: </p></div><ul> <li><a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates/doc&action=edit&redlink=1" class="new" title="Модуль:Coordinates/doc (тыгай лаштык уке)">Модуль:Coordinates/doc</a> (<a href="/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates/doc&action=edit" class="new" title="Модуль:Coordinates/doc (тыгай лаштык уке)">тӧрлаташ</a>) </li></ul></div><p id="mw-returnto"><a href="/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates" title="Модуль:Coordinates">Модуль:Coordinates</a> деке пӧртылаш.</p> <!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&type=1x1&usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">"<a dir="ltr" href="https://mhr.wikipedia.org/wiki/Модуль:Coordinates">https://mhr.wikipedia.org/wiki/Модуль:Coordinates</a>" гыч налме</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy/ru">Шолыплык политике</a></li> <li id="footer-places-about"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D0%B9:%D0%92%D0%BE%D0%B7%D0%B5%D0%BD_%D0%BE%D0%BD%D1%87%D1%8B%D0%BA%D1%82%D1%8B%D0%BC%D0%B0%D1%88">Википедий нерген</a></li> <li id="footer-places-disclaimers"><a href="/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D0%B9:%D0%A7%D1%83%D0%BC%D1%8B%D1%80_%D0%BC%D1%83%D1%82_%D0%BA%D1%83%D1%87%D1%8B%D0%BC%D0%B0%D1%88_%D0%B4%D0%B5%D1%87_%D0%BA%D0%BE%D1%80%D0%B0%D2%A5%D0%BC%D0%B0%D1%88">Мут кучымаш деч кораҥмаш</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Кодекс поведения</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Ыштызе-влак</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/mhr.wikipedia.org">Иктешлымаш</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Куки нерген келшык</a></li> <li id="footer-places-mobileview"><a href="//mhr.m.wikipedia.org/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Coordinates&action=edit&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Мобильный версий</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-746fb5b8df-mdtgd","wgBackendResponseTime":181,"wgPageParseReport":{"limitreport":{"cputime":"0.004","walltime":"0.006","ppvisitednodes":{"value":16,"limit":1000000},"postexpandincludesize":{"value":756,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":2,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 0.000 1 -total"]},"cachereport":{"origin":"mw-web.codfw.main-746fb5b8df-mdtgd","timestamp":"20241215005342","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>