CINXE.COM

Vizualizare sursă pentru „Modul:Location map” - Wikipedia

<!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="ro" dir="ltr"> <head> <meta charset="UTF-8"> <title>Vizualizare sursă pentru „Modul:Location map” - Wikipedia</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(/(?:^|; )rowikimwclientpreferences=([^;]+)/);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":"709fefe8-0767-403e-bdaa-aeb4fe55e609","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Modul:Location_map","wgTitle":"Location map","wgCurRevisionId":16496680,"wgRevisionId":0,"wgArticleId":1939184,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Modul:Location_map","wgRelevantArticleId":1939184,"wgTempUserName":null,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["templateeditor"],"wgRestrictionMove":["templateeditor"],"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":20000,"wgCodeEditorCurrentLanguage":"lua","wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"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,"wgSiteNoticeId":"2.2"};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","ext.dismissableSiteNotice.styles":"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","mmv.bootstrap","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","wikibase.sidebar.tracking","ext.dismissableSiteNotice"];</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=ro&amp;modules=ext.charinsert.styles%7Cext.codeEditor.styles%7Cext.dismissableSiteNotice.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=ro&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=ro&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <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="Vizualizare sursă pentru „Modul:Location map” - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//ro.m.wikipedia.org/wiki/Modul:Location_map"> <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="Wikipedia (ro)"> <link rel="EditURI" type="application/rsd+xml" href="//ro.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://ro.wikipedia.org/wiki/Modul:Location_map"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.ro"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Abonare Atom" href="/w/index.php?title=Special:Schimb%C4%83ri_recente&amp;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 page-Modul_Location_map rootpage-Modul_Location_map skin-vector-2022 action-edit"><a class="mw-jump-link" href="#bodyContent">Sari la conținut</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="Site"> <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="Meniul principal" > <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">Meniul principal</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">Meniul principal</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">mută în bara laterală</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">ascunde</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigare </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage" class="mw-list-item"><a href="/wiki/Pagina_principal%C4%83" title="Vedeți pagina principală [z]" accesskey="z"><span>Pagina principală</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:Schimb%C4%83ri_recente" title="Lista ultimelor schimbări realizate în acest wiki [r]" accesskey="r"><span>Schimbări recente</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Wikipedia:Cafenea" title="Informații despre evenimentele curente"><span>Cafenea</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Aleatoriu" title="Afișează o pagină aleatoare [x]" accesskey="x"><span>Articol aleatoriu</span></a></li><li id="n-Facebook" class="mw-list-item"><a href="https://www.facebook.com/WikipediaRomana" rel="nofollow"><span>Facebook</span></a></li> </ul> </div> </div> <div id="p-Participare" class="vector-menu mw-portlet mw-portlet-Participare" > <div class="vector-menu-heading"> Participare </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Cum-încep-pe-Wikipedia" class="mw-list-item"><a href="/wiki/Ajutor:Bun_venit"><span>Cum încep pe Wikipedia</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Ajutor:Cuprins" title="Locul în care găsiți ajutor"><span>Ajutor</span></a></li><li id="n-Portals" class="mw-list-item"><a href="/wiki/Portal:R%C4%83sfoire"><span>Portaluri tematice</span></a></li><li id="n-Articole-cerute" class="mw-list-item"><a href="/wiki/Wikipedia:Articole_cerute"><span>Articole cerute</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Pagina_principal%C4%83" 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="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="enciclopedia liberă" src="/static/images/mobile/copyright/wikipedia-tagline-ro.svg" width="120" height="13" style="width: 7.5em; height: 0.8125em;"> </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/Special:C%C4%83utare" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Căutare în Wikipedia [c]" accesskey="c"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Căutare</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="Căutare în Wikipedia" aria-label="Căutare în Wikipedia" autocapitalize="sentences" title="Căutare în Wikipedia [c]" accesskey="c" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Căutare"> </div> <button class="cdx-button cdx-search-input__end-button">Căutare</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Unelte personale"> <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="Aspect"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <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="Aspect" > <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">Aspect</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="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_ro.wikipedia.org&amp;uselang=ro" class=""><span>Donații</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=Special:%C3%8Enregistrare&amp;returnto=Modul%3ALocation+map&amp;returntoquery=action%3Dedit" title="Vă încurajăm să vă creați un cont și să vă autentificați; totuși, nu este obligatoriu" class=""><span>Creare cont</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=Special:Autentificare&amp;returnto=Modul%3ALocation+map&amp;returntoquery=action%3Dedit" title="Sunteți încurajat să vă autentificați, deși acest lucru nu este obligatoriu. [o]" accesskey="o" class=""><span>Autentificare</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 user-links-collapsible-item" title="Mai multe opțiuni" > <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="Unelte personale" > <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">Unelte personale</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Meniul de utilizator" > <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="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_ro.wikipedia.org&amp;uselang=ro"><span>Donații</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:%C3%8Enregistrare&amp;returnto=Modul%3ALocation+map&amp;returntoquery=action%3Dedit" title="Vă încurajăm să vă creați un cont și să vă autentificați; totuși, nu este obligatoriu"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Creare cont</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:Autentificare&amp;returnto=Modul%3ALocation+map&amp;returntoquery=action%3Dedit" title="Sunteți încurajat să vă autentificați, deși acest lucru nu este obligatoriu. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Autentificare</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"><div id="mw-dismissablenotice-anonplace"></div><script>(function(){var node=document.getElementById("mw-dismissablenotice-anonplace");if(node){node.outerHTML="\u003Cdiv class=\"mw-dismissable-notice\"\u003E\u003Cdiv class=\"mw-dismissable-notice-close\"\u003E[\u003Ca tabindex=\"0\" role=\"button\"\u003Eascunde\u003C/a\u003E]\u003C/div\u003E\u003Cdiv class=\"mw-dismissable-notice-body\"\u003E\u003C!-- CentralNotice --\u003E\u003Cdiv id=\"localNotice\" data-nosnippet=\"\"\u003E\u003Cdiv class=\"anonnotice\" lang=\"ro\" dir=\"ltr\"\u003E\u003Cdiv class=\"plainlinks\" style=\"border: 1px solid #ddd; margin: 0 0 3px;\"\u003E\n\u003Cdiv class=\"nomobile\" style=\"float:right\"\u003E\n\u003Cspan typeof=\"mw:File\"\u003E\u003Ca href=\"/wiki/Wikipedia:Concurs_de_scriere\" title=\"Wikipedia:Concurs de scriere\"\u003E\u003Cimg src=\"//upload.wikimedia.org/wikipedia/commons/thumb/5/55/Concurs_de_scriere.png/126px-Concurs_de_scriere.png\" decoding=\"async\" width=\"126\" height=\"95\" class=\"mw-file-element\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/5/55/Concurs_de_scriere.png/189px-Concurs_de_scriere.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/55/Concurs_de_scriere.png/251px-Concurs_de_scriere.png 2x\" data-file-width=\"506\" data-file-height=\"383\" /\u003E\u003C/a\u003E\u003C/span\u003E\u003C/div\u003E\n\u003Cdiv style=\"color: grey; max-width:1280px; margin: 12px auto; font-family: Tahoma, \u0026#39;DejaVu Sans Condensed\u0026#39;, sans-serif; text-align: center; font-size: 12pt; position: relative;\"\u003EA început o nouă ediție a concursului de scriere! Sunteți cu drag invitați să participați la ediția cu numărul 22, cu articole scrise sau dezvoltate considerabil între 1 aprilie și 30 noiembrie 2024. Pentru înscriere de articole la concurs (nominalizări), condiții de eligibilitate, punctare și alte detalii, vă rugăm să accesați \u003Cb\u003E\u003Ca href=\"/wiki/Wikipedia:Concurs_de_scriere\" title=\"Wikipedia:Concurs de scriere\"\u003Epagina\u0026#160;concursului\u003C/a\u003E\u003C/b\u003E.\u003C/div\u003E\n\u003Cdiv style=\"clear: both;\"\u003E\u003C/div\u003E\n\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E";}}());</script></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="Site"> <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">Vizualizare sursă pentru „Modul:Location map”</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="This article exist only in this language. Add the article for other languages" > <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">Adăugare limbi</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="Spații de nume"> <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/Modul:Location_map" title="Vezi modulul [c]" accesskey="c"><span>Modul</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Discu%C8%9Bie_Modul:Location_map" rel="discussion" title="Discuții despre această pagină [t]" accesskey="t"><span>Discuție</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="Change language variant" > <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="Vizualizări"> <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/Modul:Location_map"><span>Lectură</span></a></li><li id="ca-viewsource" class="selected vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:Location_map&amp;action=edit" title="Această pagină este protejată. Puteți vizualiza doar codul sursă [e]" accesskey="e"><span>Vedeți sursa</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:Location_map&amp;action=history" title="Versiunile anterioare ale paginii și autorii lor. [h]" accesskey="h"><span>Istoric</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <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="Unelte" > <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">Unelte</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">Unelte</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">mută în bara laterală</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">ascunde</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Mai multe opțiuni" > <div class="vector-menu-heading"> Acțiuni </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/Modul:Location_map"><span>Lectură</span></a></li><li id="ca-more-viewsource" class="selected vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:Location_map&amp;action=edit"><span>Vedeți sursa</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:Location_map&amp;action=history"><span>Istoric</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:Ce_se_leag%C4%83_aici/Modul:Location_map" title="Lista tuturor paginilor wiki care conduc spre această pagină [j]" accesskey="j"><span>Ce trimite aici</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:Modific%C4%83ri_corelate/Modul:Location_map" rel="nofollow" title="Schimbări recente în legătură cu această pagină [k]" accesskey="k"><span>Schimbări corelate</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:Trimite_fi%C8%99ier" title="Încărcare fișiere [u]" accesskey="u"><span>Trimite fișier</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:Pagini_speciale" title="Lista tuturor paginilor speciale [q]" accesskey="q"><span>Pagini speciale</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Modul:Location_map&amp;action=info" title="Mai multe informații despre această pagină"><span>Informații despre pagină</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fro.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DModul%3ALocation_map%26action%3Dedit"><span>Obține URL scurtat</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fro.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DModul%3ALocation_map%26action%3Dedit"><span>Descărcați codul QR</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> În alte proiecte </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q15934920" title="Legătură către elementul asociat din depozitul de date [g]" accesskey="g"><span>Element Wikidata</span></a></li> </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="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Aspect"> <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">Aspect</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">mută în bara laterală</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">ascunde</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/Modul:Location_map" title="Modul:Location map">Modul:Location map</a></div></div> <div id="mw-content-text" class="mw-body-content"><p>Nu aveți permisiunea de a modifica această pagină, din următoarele motive: </p> <ul class="permissions-errors"><li class="mw-permissionerror-protectedpagetext"><style data-mw-deduplicate="TemplateStyles:r16572585">@media screen{html.skin-theme-clientpref-night .mw-parser-output .mw-warning-with-logexcerpt,html.skin-theme-clientpref-night .mw-parser-output .mw-lag-warn-high,html.skin-theme-clientpref-night .mw-parser-output .mw-cascadeprotectedwarning,html.skin-theme-clientpref-night .mw-parser-output #mw-protect-cascadeon{background:#300!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .mw-warning-with-logexcerpt,html.skin-theme-clientpref-os .mw-parser-output .mw-lag-warn-high,html.skin-theme-clientpref-os .mw-parser-output .mw-cascadeprotectedwarning,html.skin-theme-clientpref-os .mw-parser-output #mw-protect-cascadeon{background:#300!important}}</style><table id="mw-protectedpagetext" class="plainlinks fmbox fmbox-editnotice" style="background:var(--background-color-interactive-subtle, #f9f9f9); color:var(--color-base, #000);"> <tbody><tr> <td class="mbox-image"> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Fi%C8%99ier:Padlock-pink.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/7/70/Padlock-pink.svg/128px-Padlock-pink.svg.png" decoding="async" width="128" height="128" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/70/Padlock-pink.svg/192px-Padlock-pink.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/70/Padlock-pink.svg/256px-Padlock-pink.svg.png 2x" data-file-width="128" data-file-height="128" /></a></span></td> <td class="mbox-text" style=""> <strong style="font-size:130%">Această pagină este <a href="/wiki/Wikipedia:Pagin%C4%83_protejat%C4%83#Protejarea_formatelor" title="Wikipedia:Pagină protejată">protejată</a>.</strong> <p>Ea poate fi modificată doar de <a href="/wiki/Wikipedia:EF" class="mw-redirect" title="Wikipedia:EF">editori de formate</a>. </p><p>Dacă doriți să propuneți o modificare vă rugăm să lăsați un mesaj în <a href="/wiki/Discu%C8%9Bie_Modul:Location_map" title="Discuție Modul:Location map">pagina de discuții</a>. </p> Pentru a cere deprotejarea paginii urmați instrucțiunile de la pagina <a href="/wiki/Wikipedia:Cereri_pentru_protejarea_paginilor" title="Wikipedia:Cereri pentru protejarea paginilor">Cereri protejare/deprotejare</a>. </td> </tr> </tbody></table></li><li 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/Utilizator:Jon_Kolbert" title="Utilizator: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: 27 august 2023 17:12</li> <li>Expiry of block: 27 august 2028 17:12</li></ul> <p>Your current IP address is 8.222.208.146. The blocked range is 8.222.128.0/17. </p><p>Vă rugăm să includeți toate detaliile de mai sus în orice mesaje. 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.</li></ul><hr /> <p>Puteți vedea și copia codul sursă al paginii: </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="en" dir="ltr" name="wpTextbox1">local wd = require('Modul:Wikidata') local p = {} local getArgs = require('Modul:Arguments').getArgs local function round(n, decimals) local pow = 10^(decimals or 0) return math.floor(n * pow + 0.5) / pow end local function wdQuery(qid, what) local entity = mw.wikibase.getEntity(qid) if what == "image" then return wd.findOneValueNoRef("P242", qid) elseif what == "image1" then return wd.findOneValueNoRef("P1944", qid) elseif what == "top" then if entity and entity.claims and entity.claims.P1332 and entity.claims.P1332[1].mainsnak.snaktype == 'value' then local value = entity.claims.P1332[1].mainsnak.datavalue.value return value.latitude end elseif what == "bottom" then if entity and entity.claims and entity.claims.P1333 and entity.claims.P1333[1].mainsnak.snaktype == 'value' then local value = entity.claims.P1333[1].mainsnak.datavalue.value return value.latitude end elseif what == "right" then if entity and entity.claims and entity.claims.P1334 and entity.claims.P1334[1].mainsnak.snaktype == 'value' then local value = entity.claims.P1334[1].mainsnak.datavalue.value return value.longitude end elseif what == "left" then if entity and entity.claims and entity.claims.P1335 and entity.claims.P1335[1].mainsnak.snaktype == 'value' then local value = entity.claims.P1335[1].mainsnak.datavalue.value return value.longitude end elseif what == "name" then return wd.findLabel(qid) else return '' end end -- go up the P131 hyerarchy until we find an item with geo limits -- if none is found, try skipping to the country local function getQidWithGeoLimits(qOrig, depth, maxDepth) local qFin = nil if depth > maxDepth then return qFin end local entity = mw.wikibase.getEntity(qOrig) -- we're going to trust WD here and assume all limits exist if one exists if entity and entity.claims and entity.claims.P1332 then return qOrig end if maxDepth == 0 then return qFin end if entity and entity.claims and entity.claims.P131 then qFin = getQidWithGeoLimits(entity.claims.P131[1].mainsnak.datavalue.value.id, depth+1, maxDepth) if qFin ~= nil then return qFin end end if depth == 0 and entity and entity.claims and entity.claims.P17 then qFin = getQidWithGeoLimits(entity.claims.P17[1].mainsnak.datavalue.value.id, depth+1, maxDepth) end return qFin end function p.getMapParams(map, frame, args) if not args then args = getArgs(frame, {frameOnly = true}) end if not map and not args.useWikidata then error('The name of the location map definition to use must be specified', 2) end if args.qid == nil then local entity = mw.wikibase.getEntity() if entity ~= nil then args.qid = entity.id end end if map == 'wikidata' and args.useWikidata then -- no map provided, try Wikidata bbox in local article first local qid = getQidWithGeoLimits(args.qid, 0, 0) if qid then -- Wikidata has a bbox local cache = {} cache["qid"] = qid return function(name, params) if name == nil then name = "name" end if cache[name] == nil then cache[name] = wdQuery(cache["qid"], name) elseif params then return mw.message.newRawMessage(tostring(cache[name]), unpack(params)):plain() end return cache[name] end else -- no bbox, try to find a local map from the country and UAT local country = wd.loadOneValueInChain({args.qid, "P17", "label"}) local uat = wd.loadOneValueInChain({args.qid, "P131", "label"}) if country and uat then map = country .. ' ' .. uat end end end local moduletitle = mw.title.makeTitle('Modul', 'Location map/data/' .. map) if not moduletitle then error(string.format('%q is not a valid name for a location map definition', map), 2) elseif moduletitle.exists then local mapData = mw.loadData('Modul:Location map/data/' .. map) return function(name, params) if name == nil then return 'Modul:Location map/data/' .. map elseif mapData[name] == nil then return '' elseif params then return mw.message.newRawMessage(tostring(mapData[name]), unpack(params)):plain() else return mapData[name] end end elseif mw.title.makeTitle('Format', 'Harta de localizare ' .. map).exists then local cache = {} if type(frame) ~= 'table' or type(frame.expandTemplate) ~= 'function' then --mw.logObject(frame) error('A frame must be provided when using a legacy location map') end return function(name, params) if params then return frame:expandTemplate{title = 'Harta de localizare ' .. map, args = { name, unpack(params) }} else if name == nil then return 'Format:Harta de localizare ' .. map elseif cache[name] == nil then cache[name] = frame:expandTemplate{title = 'Harta de localizare ' .. map, args = { name }} end return cache[name] end end -- no map, try using Wikidata? elseif args.useWikidata then local cache = {} cache["qid"] = getQidWithGeoLimits(args.qid, 0, 3) or args.qid return function(name, params) if name == nil then name = "name" end if cache[name] == nil then cache[name] = wdQuery(cache["qid"], name) elseif params then return mw.message.newRawMessage(tostring(cache[name]), unpack(params)):plain() end return cache[name] end else error('Unable to find the specified location map definition. Neither "Modul:Location map/data/' .. map .. '" nor "Format:Harta de localizare ' .. map .. '" exists', 2) end end function p.data(frame, args, map) if not args then args = getArgs(frame, {frameOnly = true}) end if not map then map = p.getMapParams(args[1], frame, args) end local params = {} for k,v in ipairs(args) do if k > 2 then params[k-2] = v end end return map(args[2], #params ~= 0 and params) end local hemisphereMultipliers = { longitude = { W = -1, w = -1, E = 1, e = 1, V = -1, v = -1 }, latitude = { S = -1, s = -1, N = 1, n = 1 } } local function decdeg(degrees, minutes, seconds, hemisphere, decimal, direction) if decimal then if degrees then error('Decimal and DMS degrees cannot both be provided for ' .. direction, 2) elseif minutes then error('Minutes can only be provided with DMS degrees for ' .. direction, 2) elseif seconds then error('Seconds can only be provided with DMS degrees for ' .. direction, 2) elseif hemisphere then error('A hemisphere can only be provided with DMS degrees for ' .. direction, 2) end local retval = tonumber(decimal) if retval then return retval end error('The value "' .. decimal .. '" provided for ' .. direction .. ' is not valid', 2) elseif seconds and not minutes then error('Seconds were provided for ' .. direction .. ' without minutes also being provided', 2) elseif not degrees then if minutes then error('Minutes were provided for ' .. direction .. ' without degrees also being provided', 2) elseif hemisphere then error('A hemisphere was provided for ' .. direction .. ' without degrees also being provided', 2) end return nil end local lang = mw.language.getContentLanguage() if not tonumber(degrees) then degrees = lang:parseFormattedNumber(degrees) end if not tonumber(minutes) then minutes = lang:parseFormattedNumber(minutes) end if not tonumber(seconds) then seconds = lang:parseFormattedNumber(seconds) end --[[mw.log("Modified coordinate") mw.logObject(degrees) mw.logObject(minutes) mw.logObject(seconds)]]-- decimal = tonumber(degrees) if not decimal then error('Valoarea pentru grade "' .. degrees .. '" oferită pentru ' .. direction .. ' nu este validă', 2) elseif minutes and not tonumber(minutes) then error('Valoarea pentru minute "' .. minutes .. '" oferită pentru ' .. direction .. ' nu este validă', 2) elseif seconds and not tonumber(seconds) then error('Valoarea pentru secunde "' .. seconds .. '" oferită pentru ' .. direction .. ' nu este validă', 2) end decimal = decimal + (minutes or 0)/60 + (seconds or 0)/3600 if hemisphere then local multiplier = hemisphereMultipliers[direction][hemisphere] if not multiplier then error('Emisfera "' .. hemisphere .. '" oferită pentru ' .. direction .. ' nu este validă', 2) end decimal = decimal * multiplier end return decimal end -- effectively make removeBlanks false for caption and maplink, and true for everything else -- if useWikidata is present but blank, convert it to false instead of nil -- p.top, p.bottom, and their callers need to use this function p.valueFunc(key, value) if value then value = mw.text.trim(value) end if value ~= '' or key == 'caption' or key == 'maplink' then return value elseif key == 'useWikidata' then return false end end local function getContainerImage(args, map) if args.AlternativeMap then return args.AlternativeMap elseif args.relief and map('image1') ~= '' then return map('image1') else return map('image') end end local function getDecimalCoords(args, map) local longitude, latitude longitude = decdeg(args.lon_deg, args.lon_min, args.lon_sec, args.lon_dir, args.long, 'longitude') latitude = decdeg(args.lat_deg, args.lat_min, args.lat_sec, args.lat_dir, args.lat, 'latitude') if not longitude and not latitude and args.useWikidata then -- If they didn't provide either coordinate, try Wikidata. If they provided one but not the other, don't. local entity = mw.wikibase.getEntity(args.qid) if entity and entity.claims and entity.claims.P625 and entity.claims.P625[1].mainsnak.snaktype == 'value' then local value = entity.claims.P625[1].mainsnak.datavalue.value longitude, latitude = value.longitude, value.latitude end end if not longitude then error('No value was provided for longitude') end if not latitude then error('No value was provided for latitude') end return latitude, longitude end --get map aspect ratio local function getWidth(map, args) local width if not args.width then width = round((args.default_width or 240) * (tonumber(map('defaultscale')) or 1)) elseif mw.ustring.sub(args.width, -2) == 'px' then width = mw.ustring.sub(args.width, 1, -3) else width = args.width end return tonumber(width) end --distance logic adapted from https://wiki.openstreetmap.org/wiki/Zoom_levels#Distance_per_pixel_math local function getHeight(map, latitude, longitude, width) local bottom = tonumber(map('bottom')) local top = tonumber(map('top')) local left = tonumber(map('left')) local right = tonumber(map('right')) if not bottom or not top or not left or not right then return width end local c = math.cos(math.rad(latitude)) -- variation of height in degrees local deg_len = 111120 -- length of a degree in many at Equator and on meridians local x_distance = (right - left) * deg_len * c local y_distance = (top - bottom) * deg_len local height = math.ceil(width * y_distance / x_distance) return height end -- this function returns the maximum zoom that contains the whole map -- calculations are based on data from https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames local function getZoomAndCenter(map, latitude, longitude, width, height) local bottom = tonumber(map('bottom')) local top = tonumber(map('top')) local left = tonumber(map('left')) local right = tonumber(map('right')) if not bottom or not top or not left or not right then return 0, latitude, longitude --zoom 0 is the whole world end local tile_width = 256 -- OSM constant local c = math.cos(math.rad(latitude)) -- variation of height in degrees local x_tiles = 1.0 * width / tile_width local y_tiles = 1.0 * height / tile_width local x_zoom = math.floor(math.log(x_tiles * 360 / (right - left)) / math.log(2)) local y_zoom = math.floor(math.log(y_tiles * 360 * c / (top - bottom)) / math.log(2)) local x = (right + left) / 2 local y = (top + bottom) / 2 return math.min(x_zoom, y_zoom), y, x end function p.top(frame, args, map) if not args then args = getArgs(frame, {frameOnly = true, valueFunc = p.valueFunc}) end if not map then map = p.getMapParams(args[1], frame, args) end local width = getWidth(map, args) local retval = args.float == 'center' and '&lt;div class="center">' or '' if args.caption and args.caption ~= '' and args.border ~= 'infobox' then retval = retval .. '&lt;div class="noviewer thumb ' if args.float == '"left"' or args.float == 'left' then retval = retval .. 'tleft' elseif args.float == '"center"' or args.float == 'center' or args.float == '"none"' or args.float == 'none' then retval = retval .. 'tnone' else retval = retval .. 'tright' end retval = retval .. '">&lt;div class="thumbinner" style="width:' .. (width + 2) .. 'px' if args.border == 'none' then retval = retval .. ';border:none' elseif args.border then retval = retval .. ';border-color:' .. args.border end retval = retval .. '">&lt;div style="position:relative;width:' .. width .. 'px' .. (args.border ~= 'none' and ';border:1px solid lightgray">' or '">') else retval = retval .. '&lt;div style="width:' .. width .. 'px;' if args.float == '"left"' or args.float == 'left' then retval = retval .. 'float:left;clear:left' elseif args.float == '"center"' or args.float == 'center' then retval = retval .. 'float:none;clear:both;margin-left:auto;margin-right:auto' elseif args.float == '"none"' or args.float == 'none' then retval = retval .. 'float:none;clear:none' else retval = retval .. 'float:right;clear:right' end retval = retval .. '">&lt;div style="width:' .. width .. 'px;padding:0">&lt;div style="position:relative;width:' .. width .. 'px">' end local image = getContainerImage(args, map) if not image then error('Nu am putut găsi imaginea hărții pentru ' .. args[1]) end retval = string.format( '%s[[File:%s|%spx|%s%s]]', retval, image, width, args.alt or ((args.label or mw.title.getCurrentTitle().text) .. ' se află în ' .. map('name')), args.maplink and ('|link=' .. args.maplink) or '' ) if args.overlay_image then return retval .. '&lt;div style="position:absolute;top:0;left:0">[[File:' .. args.overlay_image .. '|' .. width .. 'px]]&lt;/div>' else return retval end end function p.bottom(frame, args, map) if not args then args = getArgs(frame, {frameOnly = true, valueFunc = p.valueFunc}) end if not map then map = p.getMapParams(args[1], frame, args) end local retval = '&lt;/div>' if not args.caption or args.border == 'infobox' then if args.border then retval = retval .. '&lt;div>' else retval = retval .. '&lt;div style="font-size:90%;padding-top:3px">' end retval = retval .. (args.caption or (args.label or mw.title.getCurrentTitle().text) .. ' (' .. map('name') .. ')') .. '&lt;/div>' elseif args.caption ~= '' then -- This is not the pipe trick. We're creating a link with no text on purpose, so that CSS can give us a nice image retval = retval .. '&lt;div class="thumbcaption">&lt;div class="magnify">[[:File:' .. getContainerImage(args, map) .. '| ]]&lt;/div>' .. args.caption .. '&lt;/div>' end if args.switcherLabel then retval = retval .. '&lt;span class="switcher-label" style="display:none">' .. args.switcherLabel .. '&lt;/span>' elseif args.autoSwitcherLabel then retval = retval .. '&lt;span class="switcher-label" style="display:none">Show map of ' .. map('name') .. '&lt;/span>' end retval = retval .. '&lt;/div>&lt;/div>' if args.caption_undefined then --mw.log('Removed parameter caption_undefined used.') local parent = frame:getParent() if parent then --mw.log('Parent is ' .. parent:getTitle()) end --mw.logObject(args, 'args') retval = retval .. '[[Categorie:Hartă de localizare cu posibile erori|Page using removed parameter]]' end if map('skew') ~= '' or map('lat_skew') ~= '' or map('crosses180') ~= '' or map('type') ~= '' then --mw.log('Removed parameter used in map definition ' .. map()) retval = retval .. '[[Categorie:Hartă de localizare cu posibile erori|Map using removed parameter]]' end if string.find(map('name'), '|', 1, true) then --mw.log('Pipe used in name of map definition ' .. map()) retval = retval .. '[[Category:Hartă de localizare cu posibile erori|Name containing pipe]]' end if args.float == 'center' then retval = retval .. '&lt;/div>' end return retval end local function markOuterDiv(x, y, imageDiv, labelDiv) return mw.html.create('div') :cssText('position:absolute;top:' .. round(y, 3) .. '%;left:' .. round(x, 3) .. '%') :node(imageDiv) :node(labelDiv) end local function markImageDiv(mark, marksize, label, link, alt, title) local builder = mw.html.create('div') :cssText('position:absolute;left:-' .. round(marksize / 2) .. 'px;top:-' .. round(marksize / 2) .. 'px;line-height:0') :attr('title', title) if marksize ~= 0 then builder:wikitext(string.format( '[[File:%s|%dx%dpx|%s|link=%s%s]]', mark, marksize, marksize, label, link, alt and ('|alt=' .. alt) or '' )) end return builder end local function markLabelDiv(label, label_size, label_width, position, background, x, marksize) if tonumber(label_size) == 0 then return mw.html.create('div'):cssText('font-size:0%;position:absolute'):wikitext(label) end local builder = mw.html.create('div') :cssText('font-size:' .. label_size .. '%;line-height:110%;color:#000 !important;position:absolute;width:' .. label_width .. 'em') local distance = round(marksize / 2 + 1) local spanCss if position == 'top' then -- specified top builder:cssText('bottom:' .. distance .. 'px;left:' .. (-label_width / 2) .. 'em;text-align:center') elseif position == 'bottom' then -- specified bottom builder:cssText('top:' .. distance .. 'px;left:' .. (-label_width / 2) .. 'em;text-align:center') elseif position == 'left' or (tonumber(x) > 70 and position ~= 'right') then -- specified left or autodetected to left builder:cssText('top:-0.75em;right:' .. distance .. 'px;text-align:right') spanCss = 'float:right' else -- specified right or autodetected to right builder:cssText('top:-0.75em;left:' .. distance .. 'px;text-align:left') spanCss = 'float:left' end builder = builder:tag('span') :cssText('padding:1px') :cssText(spanCss) :wikitext(label) if background then builder:cssText('background-color:' .. background) end return builder:done() end local function getX(longitude, left, right) local width = (right - left) % 360 if width == 0 then width = 360 end local distanceFromLeft = (longitude - left) % 360 -- the distance needed past the map to the right equals distanceFromLeft - width. the distance needed past the map to the left equals 360 - distanceFromLeft. to minimize page stretching, go whichever way is shorter if distanceFromLeft - width / 2 >= 180 then distanceFromLeft = distanceFromLeft - 360 end return 100 * distanceFromLeft / width end local function getY(latitude, top, bottom) return 100 * (top - latitude) / (top - bottom) end function p.mark(frame, args, map) if not args then args = getArgs(frame, {wrappers = {'Format:Harta de localizare~', 'Format:Location map~'}}) end if not map then map = p.getMapParams(args[1], frame, args) end local x, y local latitude, longitude = getDecimalCoords(args, map) local builder = mw.html.create() if (not args.lon_deg) ~= (not args.lat_deg) then builder:wikitext('[[Categorie:Hartă de localizare cu precizii diferite ale longitudinii și latitudinii|Degrees]]') elseif (not args.lon_min) ~= (not args.lat_min) then builder:wikitext('[[Categorie:Hartă de localizare cu precizii diferite ale longitudinii și latitudinii|Minutes]]') elseif (not args.lon_sec) ~= (not args.lat_sec) then builder:wikitext('[[Categorie:Hartă de localizare cu precizii diferite ale longitudinii și latitudinii|Seconds]]') elseif (not args.lon_dir) ~= (not args.lat_dir) then builder:wikitext('[[Categorie:Hartă de localizare cu precizii diferite ale longitudinii și latitudinii|Emisferă]]') elseif (not args.long) ~= (not args.lat) then builder:wikitext('[[Categorie:Hartă de localizare cu precizii diferite ale longitudinii și latitudinii|Zecimal]]') end if args.skew or args.lon_shift or args.markhigh then --mw.log('Removed parameter used in invocation.') local parent = frame:getParent() if parent then --mw.log('Parent is ' .. parent:getTitle()) end --mw.logObject(args, 'args') builder:wikitext('[[Categorie:Hartă de localizare cu posibile erori|Page using removed parameter]]') end if map('x') ~= '' then x = tonumber(mw.ext.ParserFunctions.expr(map('x', { latitude, longitude }))) else x = tonumber(getX(longitude, map('left'), map('right'))) end if map('y') ~= '' then y = tonumber(mw.ext.ParserFunctions.expr(map('y', { latitude, longitude }))) else y = tonumber(getY(latitude, map('top'), map('bottom'))) end if (x &lt; 0 or x > 100 or y &lt; 0 or y > 100) and not args.outside then --mw.log('Mark placed outside map boundaries without outside flag set. x = ' .. x .. ', y = ' .. y) local parent = frame:getParent() if parent then --mw.log('Parent is ' .. parent:getTitle()) end --mw.logObject(args, 'args') builder:wikitext('[[Categorie:Hartă de localizare cu posibile erori|Outside flag not set with mark outside map]]') end local mark = args.mark or map('mark') if mark == '' then mark = 'Red pog.svg' end local marksize = tonumber(args.marksize) or tonumber(map('marksize')) or 8 local imageDiv = markImageDiv(mark, marksize, args.label or mw.title.getCurrentTitle().text, args.link or '', args.alt, args[2]) local labelDiv if args.label and args.position ~= 'none' then labelDiv = markLabelDiv(args.label, args.label_size or 90, args.label_width or 6, args.position, args.background, x, marksize) end return builder:node(markOuterDiv(x, y, imageDiv, labelDiv)) end local function getMarkSize(args, map) local marksize = tonumber(args.marksize) or tonumber(map('marksize')) or 8 if marksize &lt; 8 then return 'small' end if marksize > 10 then return 'large' end return 'medium' end -- the current version only allows for a single point value, so we hardcode it function p.mapframe(frame, args, map) if not args then args = getArgs(frame, {frameOnly = true, valueFunc = p.valueFunc}) end if not map then map = p.getMapParams(args[1], frame, args) end local width = getWidth(map, args) local latitude, longitude = getDecimalCoords(args, map) local height = getHeight(map, latitude, longitude, width) local zoom, clat, clon = getZoomAndCenter(map, latitude, longitude, width, height) local align = args.float if not align or args.float == '"none"' or args.float == 'none' then align = "center" end local result = string.format([[&lt;mapframe text="" width=%d height=%d zoom=%d latitude=%f longitude=%f align="%s"> [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [%f, %f] }, "properties": { "title": "%s", "marker-symbol": "%s", "marker-size": "%s", "marker-color": "0050d0" } }, { "type": "ExternalData", "service": "geoshape", "ids": "%s", } ] &lt;/mapframe>]], width, height, zoom, clat, clon, align, longitude, latitude, args.caption or (args.label or mw.title.getCurrentTitle().text) .. ' (' .. map('name') .. ')', args.mark or 'marker', getMarkSize(args, map), args.qid or mw.wikibase.getEntityIdForCurrentPage() or "Q218") return frame:preprocess(result) end function p.main(frame, args, map) if not args then args = getArgs(frame, {wrappers = 'Format:Harta de localizare', valueFunc = p.valueFunc}) end if args.useWikidata == nil then args.useWikidata = true end if not map then if args[1] then map = {} for mapname in string.gmatch(args[1], '[^#]+') do map[#map + 1] = p.getMapParams(mapname, frame, args) end if #map == 1 then map = map[1] end elseif args.useWikidata then map = p.getMapParams('wikidata', frame, args) else map = p.getMapParams('World', frame, args) end end if type(map) == 'table' then local outputs = {} args.autoSwitcherLabel = true for k,v in ipairs(map) do outputs[k] = p.main(frame, args, v) end return '&lt;div class="switcher-container">' .. table.concat(outputs) .. '&lt;/div>' else if args.mapframe == "1" then return p.mapframe(frame, args, map) .. p.bottom(frame, args, map) else return p.top(frame, args, map) .. tostring( p.mark(frame, args, map) ) .. p.bottom(frame, args, map) end end end return p </textarea><div id="mw-scribunto-console"></div><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Formate folosite în această pagină: </p></div><ul> <li><a href="/wiki/Format:F" title="Format:F">Format:F</a> (<a href="/w/index.php?title=Format:F&amp;action=edit" title="Format:F">vedeți sursa</a>) (protejat ca format)</li><li><a href="/wiki/Format:Tl" class="mw-redirect" title="Format:Tl">Format:Tl</a> (<a href="/w/index.php?title=Format:Tl&amp;action=edit" class="mw-redirect" title="Format:Tl">modificare</a>) </li><li><a href="/wiki/Modul:Location_map/doc" title="Modul:Location map/doc">Modul:Location map/doc</a> (<a href="/w/index.php?title=Modul:Location_map/doc&amp;action=edit" title="Modul:Location map/doc">modificare</a>) </li></ul></div><p id="mw-returnto">Înapoi la <a href="/wiki/Modul:Location_map" title="Modul:Location map">Modul:Location map</a>.</p> <!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Adus de la <a dir="ltr" href="https://ro.wikipedia.org/wiki/Modul:Location_map">https://ro.wikipedia.org/wiki/Modul:Location_map</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">Politica de confidențialitate</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Despre">Despre Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Termeni">Termeni</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Cod de conduită</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Dezvoltatori</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/ro.wikipedia.org">Statistici</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Declarație cookie</a></li> <li id="footer-places-mobileview"><a href="//ro.m.wikipedia.org/w/index.php?title=Modul:Location_map&amp;action=edit&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Versiune mobilă</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-694cf4987f-72grp","wgBackendResponseTime":248,"wgPageParseReport":{"limitreport":{"cputime":"0.031","walltime":"0.042","ppvisitednodes":{"value":89,"limit":1000000},"postexpandincludesize":{"value":1801,"limit":2097152},"templateargumentsize":{"value":621,"limit":2097152},"expansiondepth":{"value":5,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":806,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 24.606 1 Format:Fmbox","100.00% 24.606 1 -total"]},"cachereport":{"origin":"mw-web.codfw.main-694cf4987f-72grp","timestamp":"20241126063738","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10