CINXE.COM

Vizualizare sursă pentru „Modul:InfoboxCountry” - 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:InfoboxCountry” - 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":"c45de742-f006-4114-bf48-d779b4c443e5","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Modul:InfoboxCountry","wgTitle":"InfoboxCountry","wgCurRevisionId":15825889,"wgRevisionId":0,"wgArticleId":1958489,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Modul:InfoboxCountry","wgRelevantArticleId":1958489,"wgTempUserName":null,"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":50000,"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","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","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:InfoboxCountry” - Wikipedia"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//ro.m.wikipedia.org/wiki/Modul:InfoboxCountry"> <link rel="alternate" type="application/x-wiki" title="Modificare" href="/w/index.php?title=Modul:InfoboxCountry&amp;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="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:InfoboxCountry"> <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 mw-editable page-Modul_InfoboxCountry rootpage-Modul_InfoboxCountry 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%3AInfoboxCountry&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%3AInfoboxCountry&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%3AInfoboxCountry&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%3AInfoboxCountry&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:InfoboxCountry”</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:InfoboxCountry" 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:InfoboxCountry" 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:InfoboxCountry"><span>Lectură</span></a></li><li id="ca-edit" class="selected vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:InfoboxCountry&amp;action=edit" title="Modificați codul sursă al acestei pagini"><span>Modificare sursă</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:InfoboxCountry&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:InfoboxCountry"><span>Lectură</span></a></li><li id="ca-more-edit" class="selected vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:InfoboxCountry&amp;action=edit" title="Modificați codul sursă al acestei pagini [e]" accesskey="e"><span>Modificare sursă</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:InfoboxCountry&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:InfoboxCountry" 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:InfoboxCountry" 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:InfoboxCountry&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%3AInfoboxCountry%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%3AInfoboxCountry%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 emptyPortlet" > <div class="vector-menu-heading"> În alte proiecte </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="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:InfoboxCountry" title="Modul:InfoboxCountry">Modul:InfoboxCountry</a></div></div> <div id="mw-content-text" class="mw-body-content"><p>Nu aveți permisiunea de a modifica această pagină, din următorul motiv: </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/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.</div></div><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 p = {} local getArgs = require('Modul:Arguments').getArgs local infobox = require('Modul:Infobox') local TableTools = require('Modul:TableTools') local wikidata = require('Modul:Wikidata') local StringUtils = require('Modul:StringUtils') local displayImage = require('Modul:InfoboxImage').InfoboxImage local illWd = require('Modul:Ill-wd').fromArgs local DateUtils = require('Modul:DateUtils') local GregorianDate = require('Modul:GregorianDate') local editAtWd = require('Modul:EditAtWikidata') local formatNum = require('Modul:Formatnum')._formatNum local lang = require('Modul:Lang').fromArgs local getLangLink = require('Modul:InLang').getLangLink local join = require('Modul:Separated entries')._main local encloseString = StringUtils._encloseString local appendToString = StringUtils._appendToString local prependToString = StringUtils._prependToString local emptyToNil = StringUtils._emptyToNil local _br_ = tostring(mw.html.create('br')) local globalInfoboxElementIndex = 1 local function addHeader(ibArgs, header) ibArgs['header' .. tostring(globalInfoboxElementIndex)] = header globalInfoboxElementIndex = globalInfoboxElementIndex + 1 end local function addData(ibArgs, data, wdProp) if wdProp then data = data .. ' ' .. editAtWd.displayMessage(wdProp) end ibArgs['data' .. tostring(globalInfoboxElementIndex)] = data globalInfoboxElementIndex = globalInfoboxElementIndex + 1 end local function addLabelledData(ibArgs, label, data, wdProp, lblstyle) if data and wdProp then data = data .. ' ' .. editAtWd.displayMessage(wdProp) end ibArgs['label' .. tostring(globalInfoboxElementIndex)] = label ibArgs['lblstyle' .. tostring(globalInfoboxElementIndex)] = lblstyle addData(ibArgs, data) end local function getFirstValueClaimForProperty(prop) local allBestClaims = wikidata.findBestClaimsForProperty(nil, mw.ustring.upper(prop)) if not allBestClaims then return nil end wdClaimId = 1 while wdClaimId &lt;= #allBestClaims and (allBestClaims[wdClaimId].type ~= 'statement' or allBestClaims[wdClaimId].mainsnak.snaktype ~= 'value') do wdClaimId = wdClaimId + 1 end if wdClaimId &lt;= #allBestClaims and allBestClaims[wdClaimId].type == 'statement' and allBestClaims[wdClaimId].mainsnak.snaktype == 'value' then return allBestClaims[wdClaimId] end return nil end local function deboldify(str) if not str then return nil end return mw.ustring.gsub(str, "'''", "") end --- compute the text to be displayed, based on a data model p.fromArgs = function(naming, symbols, geography, demography, politics, history, economy, codes, notes) local ibArgs = { antet = 'harta', ['culoare cadru'] = '#ccd2d9', doc = 'Infocaseta Țară', wikidata = 'y' } if naming and TableTools.size(naming) > 0 then ibArgs.title = naming.name local otherNames = {} if naming.conventional then table.insert(otherNames, naming.conventional) end if naming.native then table.insert(otherNames, tostring(mw.html.create('span'):addClass('fn'):addClass('org'):addClass('country-name'):wikitext(naming.native))) end if #otherNames > 0 then ibArgs.subheader1 = table.concat(otherNames, _br_) ibArgs.subheaderstyle = 'background: linear-gradient( to right, rgba(204, 210, 217, 1), rgba(204, 210, 217, 1), rgba(204, 210, 217, 1), rgba(156, 163, 170, 1)) repeat-y right; font-size: 130%; line-height: 1.2em; padding-top: 0;' ibArgs.abovestyle = 'padding-bottom: 0; ' .. (ibArgs.abovestyle or '') end end if symbols then local symbolsComprssedArray = TableTools.compressSparseArray({symbols.flag, symbols.coA}) if #symbolsComprssedArray > 0 then local symbolsTable = mw.html.create('table'):attr('align', 'center'):cssText('width:100%; background:none;') local symbolsImageRow = symbolsTable:tag('tr') local symbolsLinksRow = symbolsTable:tag('tr') for symIdx,eachSymbol in ipairs(symbolsComprssedArray) do local symbolImageTd = symbolsImageRow:tag('td') if symIdx == 1 and #symbolsComprssedArray > 1 then symbolImageTd:attr('width', '58%') end symbolImageTd:wikitext('[[Fișier:', eachSymbol.image, '|', eachSymbol.size, eachSymbol.border and '|border' or '', '|', eachSymbol.link, ']]') local symbolLinkTd = symbolsLinksRow:tag('td'):attr('align', 'center') symbolLinkTd:tag('small'):wikitext(eachSymbol.link) end addData(ibArgs, tostring(symbolsTable)) end if symbols.motto then addData(ibArgs, prependToString({symbols.motto, "'''[[Deviză]]:&amp;nbsp;'''"})) end local anthemData = {} for anthemKey,anthemValue in pairs(symbols.anthem) do if anthemValue.textLines and #(anthemValue.textLines) > 0 or anthemValue.file then local anthemLabel = anthemValue.label local anthemWdProp = anthemValue.wdProp local crtData = "'''" .. deboldify(anthemValue.label or 'Imn') .. "''':" crtData = table.concat( TableTools.compressSparseArray({ crtData, table.concat(anthemValue.textLines, _br_) }), mw.text.decode('&amp;nbsp;') ) table.insert( anthemData, tostring( mw.html.create('div') :css('margin-bottom', '20') :wikitext(crtData) ) ) if anthemValue.file then table.insert( anthemData, tostring(mw.html.create('div') :css('margin', 'auto') :wikitext('[[Fișier:', anthemValue.file, ']]') ) ) end end end if #anthemData > 0 then addData(ibArgs, tostring( mw.html.create('div') :css('margin', 'auto') :css('text-align', 'center') :wikitext(table.concat(anthemData, _br_)) )) end end if #(geography.maps) > 0 then for _,eachMap in ipairs(geography.maps) do local imgTable = mw.html.create('table') imgTable:tag('tr'):tag('td'):wikitext(displayImage{image = eachMap.image, sizedefault = eachMap.width, center = 'yes', title = eachMap.caption}):done():done() :tag('tr'):tag('td'):tag('div'):css('position', 'relative'):css('top', '0.3em'):tag('small'):wikitext(eachMap.caption) addData(ibArgs, tostring(imgTable)) end end if #(geography.area) > 0 or geography.highest or geography.deepest or geography.largestCity or geography.timezones.regular then addHeader(ibArgs, 'Geografie') if #(geography.area) > 0 then addLabelledData(ibArgs, mw.text.trim('Suprafață '), '&amp;nbsp;') for _,eachArea in ipairs(geography.area) do local areaValue = eachArea.value if type(areaValue) == 'number' then areaValue = formatNum(eachArea.value) end addLabelledData(ibArgs, '&amp;nbsp;-&amp;nbsp;' .. eachArea.label, table.concat(TableTools.compressSparseArray({ areaValue, '&amp;nbsp;km²', eachArea.notes, encloseString({ eachArea.ranking, '&amp;#32;([[Lista țărilor după suprafață|locul&amp;nbsp;', ']])' }), eachArea.wdProp and editAtWd.displayMessage(eachArea.wdProp) or nil })), nil, 'font-weight: normal;' ) if eachArea.waterPercentage then addLabelledData(ibArgs, mw.text.trim('[[Apă]]&amp;nbsp;([[Procentaj|%]])'), eachArea.waterPercentage) end end end addLabelledData(ibArgs, mw.text.trim('Cel mai înalt punct'), geography.highest) addLabelledData(ibArgs, mw.text.trim('Cel mai jos punct'), geography.deepest) addLabelledData(ibArgs, mw.text.trim('Cel mai mare oraș'), geography.largestCity) if geography.neighbors and 0 &lt; #(geography.neighbors) then addLabelledData(ibArgs, 'Vecini', table.concat(geography.neighbors, _br_) .. ' ' .. editAtWd.displayMessage('P47')) end addLabelledData(ibArgs, '[[Fus orar]]', geography.timezones.regular and (geography.timezones.regular .. (geography.timezones.wdProp and (' ' .. editAtWd.displayMessage(geography.timezones.wdProp)) or ''))) addLabelledData(ibArgs, '[[Oră de vară|Ora de vară]]', geography.timezones.summer) end if demography.census.population or #(demography.estimates) > 0 or demography.density.value then addHeader(ibArgs, 'Populație') if demography.census.population then addLabelledData(ibArgs, 'Populație', '&amp;nbsp;') local democensusfull = table.concat( TableTools.compressSparseArray({ type(demography.census.population) == 'number' and formatNum(demography.census.population) or demography.census.population, demography.census.ref, encloseString({demography.census.ranking, '&amp;#32; ([[Lista țărilor după populație|locul&amp;nbsp;', ']])'}) }) ) addLabelledData(ibArgs, '&amp;nbsp;-&amp;nbsp;Recensământ&amp;nbsp;' .. (demography.census.year or ''), democensusfull, demography.census.wdProp) end if demography.density.value then local demodensfull = type(demography.density.value) == 'number' and formatNum(demography.density.value) or demography.density.value .. '&amp;nbsp;loc/km²' if demography.density.notes then demodensfull = demodensfull .. demography.density.notes end addLabelledData(ibArgs, 'Densitate', demodensfull) end for _,eachDemographyEst in ipairs(demography.estimates) do local eachDemoEstText = type(eachDemographyEst.population) == 'number' and formatNum(eachDemographyEst.population) or eachDemographyEst.population if eachDemographyEst.ranking then eachDemoEstText = eachDemoEstText .. ' ([[Lista țărilor după populație|locul&amp;nbsp;' .. tostring(eachDemographyEst.ranking) .. ']])' end addLabelledData(ibArgs, '&amp;nbsp;-&amp;nbsp;Estimare&amp;nbsp;' .. (eachDemographyEst.year or ''), eachDemoEstText) end if demography.languages.official then addLabelledData(ibArgs, 'Limbi oficiale', demography.languages.official, demography.languages.wdProp) end if demography.languages.other then addLabelledData(ibArgs, 'Limbi regionale/minoritare', demography.languages.other) end if 0 &lt; #(demography.demonym.data) then addLabelledData(ibArgs, 'Etnonim', table.concat(demography.demonym.data, _br_) .. (demography.demonym.wdProp and (' ' .. editAtWd.displayMessage(demography.demonym.wdProp)) or '')) end if demography.ethnicGroups.list then addLabelledData(ibArgs, 'Grupuri etnice' .. (demography.ethnicGroups.date and (' (' .. demography.ethnicGroups.date .. ')') or ''), demography.ethnicGroups.list) end end if politics.system or #(politics.leaders) > 0 or politics.legislature.body or politics.capital then addHeader(ibArgs, 'Guvernare') addLabelledData(ibArgs, 'Sistem politic', politics.system, politics.systemWdProp) for _,eachLeader in ipairs(politics.leaders) do addLabelledData(ibArgs, eachLeader.title, eachLeader.name, eachLeader.wdProp) end if politics.legislature.body then addLabelledData(ibArgs, 'Legislativ', politics.legislature.body, politics.legislature.wdProp) for _,eachChamber in ipairs(politics.legislature.chambers) do addLabelledData(ibArgs, eachChamber.label, eachChamber.name) end end addLabelledData(ibArgs, 'Religie oficială', politics.stateReligion) addLabelledData(ibArgs, 'Capitala', politics.capital, politics.capitalWdProp) end if history.formation or #(history.events) > 0 then addHeader(ibArgs, 'Istorie' .. (history.wdProp and editAtWd.displayMessage(history.wdProp) or '')) if history.formation then addData(ibArgs, table.concat(TableTools.compressSparseArray({"'''" .. deboldify(history.formation) .. "'''", history.formationNote}), ' '), history.events.wdProp) end for _,eachEvt in ipairs(history.events) do addLabelledData(ibArgs, eachEvt.description, eachEvt.date) end end addHeader(ibArgs, 'Economie') if economy.gdp then addLabelledData(ibArgs, "'''[[Produs intern brut|PIB]]''' ([[Paritatea puterii de cumpărare|PPC]])", economy.gdp.ppcYear or mw.text.decode('&amp;nbsp;')) addLabelledData(ibArgs, "&amp;nbsp;-&amp;nbsp;Total", appendToString({ economy.gdp.netto.ppc, encloseString({ economy.gdp.netto.ppcRanking, '&amp;#32;([[Lista țărilor în funcție de PIB (PPC)|locul&amp;nbsp;', ']])' }) }) ) addLabelledData(ibArgs, "&amp;nbsp;-&amp;nbsp;Pe cap de locuitor", appendToString({ economy.gdp.capita.ppc, encloseString({ economy.gdp.capita.ppcRanking, '&amp;#32;([[Lista țărilor în funcție de PIB (PPC)|locul&amp;nbsp;', ']])' }) }) ) addLabelledData(ibArgs, "'''[[Produs intern brut|PIB]]''' (nominal)", economy.gdp.nominalYear or mw.text.decode('&amp;nbsp;')) addLabelledData(ibArgs, "&amp;nbsp;-&amp;nbsp;Total", appendToString({ economy.gdp.netto.nominal, encloseString({ economy.gdp.netto.nominalRanking, '&amp;#32;([[Lista țărilor în funcție de PIB (nominal)|locul&amp;nbsp;', ']])' }) }) ) addLabelledData(ibArgs, "&amp;nbsp;-&amp;nbsp;Pe cap de locuitor", encloseString({ economy.gdp.capita.nominal, table.concat( TableTools.compressSparseArray({ encloseString({ economy.gdp.capita.nominalRanking, '&amp;#32;([[Lista țărilor în funcție de PIB (nominal)|locul&amp;nbsp;', ']])' }), '' ---here we should put the wd prop }) ) }) ) end if economy.gini then addLabelledData(ibArgs, table.concat(TableTools.compressSparseArray({'[[Coeficientul lui Gini|Gini]]', encloseString({economy.gini.year, '(', ')'})}), ' '), encloseString({ table.concat( TableTools.compressSparseArray({ economy.gini.value, encloseString({ economy.gini.category, '&amp;#32;(', ')' }), encloseString({ economy.gini.ranking, '&amp;#32;(locul&amp;nbsp;', ')', economy.gini.ref }) }) ), economy.gini.wdProp and editAtWd.displayMessage(economy.gini.wdProp) or '' }) ) end if economy.idu then addLabelledData(ibArgs, table.concat(TableTools.compressSparseArray({'[[Indicele dezvoltării umane|IDU]]', encloseString({economy.idu.year, '(', ')'})}), ' '), encloseString({ table.concat(TableTools.compressSparseArray({economy.idu.value, encloseString({economy.idu.category, '&amp;#32;(', ')'}), encloseString({economy.idu.ranking, '&amp;#32;([[Lista țărilor după indicele dezvoltării umane|locul&amp;nbsp;', ']])', economy.idu.ref})})), economy.idu.wdProp and editAtWd.displayMessage(economy.idu.wdProp) or '' }) ) end if economy.currency.data then addLabelledData(ibArgs, '[[Valută|Monedă]]', appendToString({ appendToString({ economy.currency.data, appendToString({ encloseString({ economy.currency.iso4217, '&amp;#32;(&lt;code>[[ISO 4217|', ']]&lt;/code>)' }), economy.currency.footnote }) }), economy.currency.wdProp and editAtWd.displayMessage(economy.currency.wdProp) or nil }) ) end addHeader(ibArgs, 'Coduri și identificatori') local codePrefixes = {['phonePrefix'] = 'Prefix telefonic', ['mobileCode'] = 'Cod mobil', ['internetTLD'] = '[[Domeniu național de nivel superior|Domeniu Internet]]', ['iso3166_2'] = '[[ISO 3166-2]]', ['iocCode'] = 'Cod [[Comitetul Olimpic Internațional|CIO]]'} for eachCodeIdx,eachCodeLabel in pairs(codePrefixes) do if codes[eachCodeIdx] and codes[eachCodeIdx].value then addLabelledData( ibArgs, eachCodeLabel, table.concat(TableTools.compressSparseArray({ codes[eachCodeIdx].value, codes[eachCodeIdx].notes, codes[eachCodeIdx].wdProp and (' ' .. editAtWd.displayMessage(codes[eachCodeIdx].wdProp)) or '' })) ) end end if notes then addData(ibArgs, tostring(mw.html.create('div'):css('font-size', 'smaller'):css('text-align', 'left'):wikitext(table.concat(notes, _br_)))) end local onlineLinks = wikidata.findOnlineLinks() if #onlineLinks > 0 then addHeader(ibArgs, 'Prezență online') addData(ibArgs, table.concat(onlineLinks, _br_)) end return infobox.infobox(ibArgs) end --- create the data model for the module based on the argument array p.fromArray = function(args) local naming = {} local countryName = StringUtils._emptyToNil({args['name'] or args['nume'] or wikidata.findLabel()}) if countryName then naming.name = countryName end if args['nume_convențional'] then naming.conventional = args['nume_convențional'] end if args['nume_nativ'] then naming.native = args['nume_nativ'] end if args['nume_genitiv'] then naming.genitive = args['nume_genitiv'] end if args['nume_legătură'] then naming.link = args['nume_legătură'] end if not naming.native then local officialLangsWdClaims = wikidata.findBestClaimsForProperty(nil, 'P37') local officialLangCodes = {ro = {code='ro'}} local nativeNames = {} --find out official languages if officialLangsWdClaims then for _,eachOfficialLangClaim in ipairs(officialLangsWdClaims) do if eachOfficialLangClaim.type == 'statement' and eachOfficialLangClaim.mainsnak.snaktype == 'value' then local langId = eachOfficialLangClaim.mainsnak.datavalue.value.id local langISOcode = wikidata.findOneValueNoRef('P218', langId) or wikidata.findOneValueNoRef('P219', langId) or wikidata.findOneValueNoRef('P305', langId) if langISOcode then local aLang = {code=langISOcode, id=langId} aLang.langLink = getLangLink(langId) officialLangCodes[langISOcode] = aLang end end end end local officialNameClaims = wikidata.findClaimsForProperty(nil, 'P1448') local nativeLabelClaims = wikidata.findClaimsForProperty(nil, 'P1705') local officialNamesTexts = {} local nameLanguages = {} -- map official names to languages if officialNameClaims or nativeLabelClaims then local nameClaims = {} if officialNameClaims then for _,v in ipairs(officialNameClaims) do table.insert(nameClaims, v) end end if nativeLabelClaims then for _,v in ipairs(nativeLabelClaims) do table.insert(nameClaims, v) end end for _,eachOfficialNameClaim in ipairs(nameClaims) do if eachOfficialNameClaim.type == 'statement' and eachOfficialNameClaim.mainsnak.snaktype == 'value' and (not eachOfficialNameClaim.qualifiers or not eachOfficialNameClaim.qualifiers['P582']) and (officialLangCodes[eachOfficialNameClaim.mainsnak.datavalue.value.language] or 'ro' == eachOfficialNameClaim.mainsnak.datavalue.value.language) then local thisNameLanguage = eachOfficialNameClaim.mainsnak.datavalue.value.language local thisNameText = eachOfficialNameClaim.mainsnak.datavalue.value.text officialNamesTexts[thisNameLanguage] = thisNameText if not nameLanguages[thisNameText] then nameLanguages[thisNameText] = {} end table.insert(nameLanguages[thisNameText], thisNameLanguage) end end end -- get common name for all official languages except ro for _,eachLangData in pairs(officialLangCodes) do local crtEntity = mw.wikibase.getEntity() if crtEntity then local mainName = mw.wikibase.getEntity():getLabelWithLang(eachLangData.code) if mainName and 'ro' ~= eachLangData.code then if not nameLanguages[mainName] or (#(nameLanguages[mainName]) == 1 and nameLanguages[mainName][1] == 'ro') then nameLanguages[mainName] = {} end table.insert(nameLanguages[mainName], eachLangData.code) end end end -- produce a list of all native names for eachNativeName,nativeLangs in pairs(nameLanguages) do local langsEnumeration = {separator = ', ', conjunction = ' și '} for _,eachLangForThisName in ipairs(TableTools.removeDuplicates(nativeLangs)) do table.insert(langsEnumeration, officialLangCodes[eachLangForThisName].langLink) end -- + any ro name that is not the same as the main name (native.name) if 1 == #nativeLangs and 'ro' == nativeLangs[1] then if eachNativeName ~= naming.name then table.insert(nativeNames, eachNativeName) end else table.insert( nativeNames, appendToString({ lang(officialLangCodes[nativeLangs[1]].code, nil, eachNativeName, true), prependToString({ encloseString({ join(langsEnumeration), '(', ')' }), ' ' }) }) ) end end naming.native = table.concat(nativeNames, _br_) end local symbols = {} local countryFlagImg = StringUtils._emptyToNil({args['imagine_drapel'] or wikidata.findOneValueNoRef('P41')}) local countryCOAImg = StringUtils._emptyToNil({args['imagine_stemă'] or args['imagine_simbol'] or wikidata.findOneValueNoRef('P94')}) local countryFlagClaim = getFirstValueClaimForProperty('P163') local countryCOAClaim = getFirstValueClaimForProperty('P237') if countryFlagImg then if not symbols.flag then symbols.flag = {} end symbols.flag.image = countryFlagImg symbols.flag.size = '125px' symbols.flag.border = true end if countryFlagClaim then if not symbols.flag then symbols.flag = {} end symbols.flag.link = wikidata.findLinkToItemWithCallback(countryFlagClaim.mainsnak.datavalue.value.id, true, function(object) return 'Drapel' .. (naming.genitive and ('ul ' .. naming.genitive) or '') end) elseif symbols.flag then symbols.flag.link = 'Drapel' .. (naming.genitive and ('ul ' .. naming.genitive) or '') end if countryCOAImg then if not symbols.coA then symbols.coA = {} end symbols.coA.image = countryCOAImg symbols.coA.size = args['simbol_lat'] or '85px' end if countryCOAClaim then if not symbols.coA then symbols.coA = {} end symbols.coA.link = wikidata.findLinkToItemWithCallback(countryCOAClaim.mainsnak.datavalue.value.id, true, function(object) return 'Stem' .. (naming.genitive and ('a ' .. naming.genitive) or 'ă') end) elseif symbols.coA then symbols.coA.link = 'Stem' .. (naming.genitive and ('a ' .. naming.genitive) or 'ă') end local function extractAnthemFromArgs(arg, label) if not arg then return nil end local buildingAnthem = {} buildingAnthem.label = label buildingAnthem.textLines = {} local anthemLines = mw.text.split(arg, '&lt;br%s/?>') local imageNamespaces = {'Imagine', 'Image', 'File', 'Fișier' } for _,eachAnthemLine in ipairs(anthemLines) do local isTextLine = true for _,eachImgNs in ipairs(imageNamespaces) do local imageRegex = encloseString({eachImgNs, '%[%[', ':(.*)%]%]'}) local imageMatch = mw.ustring.match(eachAnthemLine, imageRegex) if imageMatch then buildingAnthem.file = imageMatch isTextLine = false break end end if isTextLine then table.insert(buildingAnthem.textLines, eachAnthemLine) end end return buildingAnthem end symbols.anthem = {} symbols.anthem.main = extractAnthemFromArgs(args['imn'], "'''[[Imn]]'''") symbols.anthem.royal = extractAnthemFromArgs(args['imn_regal'], "'''[[Imn regal|Imnul Regal]]'''") symbols.anthem.national = extractAnthemFromArgs(args['imn_național'], "'''[[Imn național|Imnul național]]'''") if not symbols.anthem.main and not symbols.anthem.royal and not symbols.anthem.national then local anthemClaim = getFirstValueClaimForProperty('P85') if anthemClaim then local anthemWdId = anthemClaim.mainsnak.datavalue.value.id local anthemSong = wikidata.findOneValueNoRef('P51', anthemWdId) symbols.anthem.main = {} symbols.anthem.main.wdProp = 'P85' symbols.anthem.main.label = "'''[[Imn]]'''" symbols.anthem.main.textLines = {} table.insert(symbols.anthem.main.textLines, tostring(mw.html.create('div'):css('font-style', 'italic'):wikitext( wikidata.findLinkToItemWithCallback(anthemWdId, true, function(object) local lang if object.claims and object.claims['P364'] and object.claims['P364'][1] and object.claims['P364'][1].type == 'statement' and object.claims['P364'][1].mainsnak.snaktype == 'value' then local langEntityId = object.claims['P364'][1].mainsnak.datavalue.value.id lang = wikidata.findOneValueNoRef('P218') or wikidata.findOneValueNoRef('P424') end lang = lang or 'ro' local labelInLang = object.labels[lang] and object.labels[lang].value or wikidata.findLabel(object.id) end) )) ) symbols.anthem.main.file = anthemSong end end symbols.motto = emptyToNil({ args['deviză_națională'] or args['deviză'] or args['motto'] or appendToString({ emptyToNil({ wikidata.findOneValue('P1546') or wikidata.findOneValue('P1451') }), prependToString({editAtWd.displayMessage('P1546'), ' '}) }) }) local geography = {} geography.maps = {} if args['imagine_hartă'] then local mainMap = {} mainMap.image = args['imagine_hartă'] mainMap.caption = args['descriere_hartă'] mainMap.width = args['lăţime_hartă'] or args['lățime_hartă'] or '290px' table.insert(geography.maps, mainMap) end for _,mapIdx in pairs(TableTools.affixNums(args, 'imagine_hartă')) do local otherMap = {} otherMap.image = args['imagine_hartă' .. tostring(mapIdx)] otherMap.caption = args['descriere_hartă' .. tostring(mapIdx)] otherMap.width = args['lăţime_hartă' .. tostring(mapIdx)] or args['lățime_hartă' .. tostring(mapIdx)] or '290px' table.insert(geography.maps, otherMap) end geography.area = {} if args['suprafață_km2'] or args['suprafață_km²'] or args['suprafață'] then local area = {} area.value = args['suprafață_km2'] or args['suprafață_km²'] or args['suprafață'] if area.value and mw.ustring.match(area.value, '[0-9,]+%.?%d*') == area.value then area.value = mw.language.new('en'):parseFormattedNumber(area.value) end area.waterPercentage = args['procentaj_apa'] area.label = args['suprafață_etichetă'] or 'totală' area.notes = args['suprafață_notă'] area.ranking = args['suprafață_loc'] table.insert(geography.area, area) end for _,areaIdx in pairs(TableTools.affixNums(args, 'suprafață_date')) do local area = {} area.label = args['suprafață_etichetă' .. areaIdx] area.value = args['suprafață_date' .. areaIdx] table.insert(geography.area, area) end if #(geography.maps) == 0 then local wdMapClaims = wikidata.findBestClaimsForProperty(nil, 'P242') or {} -- locator map image for _,eachWdMapClaim in ipairs(wdMapClaims) do if eachWdMapClaim.type == 'statement' and eachWdMapClaim.mainsnak.snaktype == 'value' and eachWdMapClaim.mainsnak.datavalue then local map = {} map.image = eachWdMapClaim.mainsnak.datavalue.value if eachWdMapClaim.qualifiers and eachWdMapClaim.qualifiers['P2096'] then for _,eachLegendQualifier in ipairs(eachWdMapClaim.qualifiers['P2096']) do if eachLegendQualifier.snaktype == 'value' and eachLegendQualifier.datavalue.value.language == 'ro' then map.caption = eachLegendQualifier.datavalue.value.text end end end map.width = '290px' table.insert(geography.maps, map) end end end if #(geography.area) == 0 then local areaClaim = getFirstValueClaimForProperty('P2046') --area if areaClaim then local area = {} area.value = tonumber(areaClaim.mainsnak.datavalue.value.amount) area.notes = wikidata.outputReferences(areaClaim) area.label = 'Total' area.waterPercentage = wikidata.findOneValue('P2927') area.wdProp = 'P2046' table.insert(geography.area, area) end end for peakProperty, peakSignificance in pairs({p610 = 'highest', p1589 = 'deepest'}) do local wdPeakClaim = getFirstValueClaimForProperty(peakProperty) local peakInfo = {} if wdPeakClaim then table.insert(peakInfo, wikidata.printSnak(wdPeakClaim.mainsnak)) table.insert(peakInfo, wikidata.outputReferences(wdPeakClaim)) local peakHeight = nil if wdPeakClaim.qualifiers and wdPeakClaim.qualifiers['P2044'] and wdPeakClaim.qualifiers['P2044'][1] and wdPeakClaim.qualifiers['P2044'][1].snaktype == 'value' then peakHeight = wikidata.printSnak(wdPeakClaim.qualifiers['P2044'][1]) else peakHeight = wikidata.findOneValueNoRef('P2044', wdPeakClaim.mainsnak.datavalue.value.id) end table.insert(peakInfo, encloseString({peakHeight, '&amp;#32;(', ')'})) table.insert(peakInfo, editAtWd.displayMessage(mw.ustring.upper(peakProperty))) geography[peakSignificance] = table.concat(peakInfo) end end geography.largestCity = args['cel_mai_mare_oraș'] or args['cea_mai_mare_așezare'] geography.timezones = {} geography.timezones.regular = emptyToNil({appendToString({args['fus_orar'], encloseString({args['utc'], '&amp;#32;([[UTC', ']])'})})}) geography.timezones.summer = emptyToNil({appendToString({args['fus_orar_ODV'] or args['fus_vară'], encloseString({args['utc_ODV'], '&amp;#32;([[UTC', ']])'})})}) if not geography.timezones.regular then local tzClaims = wikidata.findBestClaimsForProperty(nil, 'P421') local summerAccumulator = {} local regularAccumulator = {} if tzClaims then for _,eachTzClaim in ipairs(tzClaims) do local utcOffsetText if eachTzClaim.type == 'statement' and eachTzClaim.mainsnak.snaktype == 'value' then local utcOffsetClaims = wikidata.findBestClaimsForProperty(eachTzClaim.mainsnak.datavalue.value.id, 'P2907') for __,eachOffsetClaim in ipairs(utcOffsetClaims) do if eachOffsetClaim.type == 'statement' and eachOffsetClaim.mainsnak.snaktype == 'value' then utcOffsetText = tostring(eachOffsetClaim.mainsnak.datavalue.value.amount) utcOffsetText = mw.ustring.gsub(utcOffsetText, '%.5', ':30') utcOffsetText = mw.ustring.gsub(utcOffsetText, '%.75', ':45') end end end local accumulator = regularAccumulator if eachTzClaim.qualifiers and eachTzClaim.qualifiers['P1264'] then for __,eachPeriodQualifier in ipairs(eachTzClaim.qualifiers['P1264']) do if eachPeriodQualifier.snaktype == 'value' and eachPeriodQualifier.datavalue.value.id == 'Q36669' then accumulator = summerAccumulator end end end table.insert( accumulator, appendToString({ appendToString({ wikidata.printSnak(eachTzClaim.mainsnak), wikidata.outputReferences(eachTzClaim) }), encloseString({ utcOffsetText, '&amp;#32;([[UTC', ']])' }) }) ) end end if #regularAccumulator > 0 then geography.timezones.regular = emptyToNil({table.concat(regularAccumulator, _br_)}) geography.timezones.summer = emptyToNil({table.concat(summerAccumulator, _br_)}) geography.timezones.wdProp = 'P421' end end geography.neighbors = wikidata.findBestValues('P47') local demography = {} demography.census = {} demography.census.year = args['populație_recensământ_an'] demography.census.population = args['populație'] or args['populație_recensământ'] demography.census.ref = args['populație_note_subsol'] demography.census.ranking = args['populație_recensământ_loc'] or args['loc_populație'] demography.estimates = {} if args['populație_estimare'] then local demo = {} demo.year = args['populație_estimare_an'] demo.population = args['populație_estimare'] demo.ranking = args['populație_estimare_loc'] table.insert(demography.estimates, demo) end for _,eachPopEstIdx in ipairs(TableTools.affixNums(args, 'populație_estimare')) do local demo = {} demo.year = args['populație_estimare_an' .. tostring(eachPopEstIdx)] demo.population = args['populație_estimare' .. tostring(eachPopEstIdx)] demo.ranking = args['populație_estimare_loc' .. tostring(eachPopEstIdx)] table.insert(demography.estimates, demo) end demography.density = {} demography.density.value = args['densitate_populație_km2'] or args['densitate_populație_km²'] or args['densitate'] if demography.density.value then demography.density.notes = args['dens_pop_notă'] demography.density.ranking = args['densitate_populație_loc'] end if demography.census.population then local popNumberMatch = mw.ustring.match(demography.census.population, '[0-9,%.]+') if popNumberMatch then demography.census.population = formatNum(popNumberMatch) end else local wdPopulationClaim = getFirstValueClaimForProperty('P1082') if wdPopulationClaim then local demo = {} demo.population = tonumber(wdPopulationClaim.mainsnak.datavalue.value.amount) demo.ref = wikidata.outputReferences(wdPopulationClaim) demo.wdProp = 'P1082' if wdPopulationClaim.qualifiers and wdPopulationClaim.qualifiers['P585'] and wdPopulationClaim.qualifiers['P585'][1].snaktype == 'value' then local censusDate = wikidata.extractDateFromClaim(wdPopulationClaim.qualifiers['P585'][1]) demo.year = censusDate and censusDate.year or nil end local determinationMethodId = nil if wdPopulationClaim.qualifiers and wdPopulationClaim.qualifiers['P459'] and wdPopulationClaim.qualifiers['P585'][1].snaktype == 'value' then determinationMethodId = wdPopulationClaim.qualifiers['P585'][1].datavalue.value['numeric-id'] end if determinationMethodId == 39825 then demography.census = demo else table.insert(demography.estimates, demo) end end end demography.languages = {} demography.languages.official = args['limbi_oficiale'] or args['limbă_oficială'] if not demography.languages.official then local officialLangsWdClaims = wikidata.findBestClaimsForProperty(nil, 'P37') local officialLangs = {} if officialLangsWdClaims then for _,eachOfficialLangClaim in ipairs(officialLangsWdClaims) do if eachOfficialLangClaim.type == 'statement' and eachOfficialLangClaim.mainsnak.snaktype == 'value' then local langLabel, langLabelLang = mw.wikibase.getLabelWithLang(eachOfficialLangClaim.mainsnak.datavalue.value.id) if langLabelLang == 'ro' and StringUtils._startsWithAny({langLabel, 'Limba ', 'limba '}) then langLabel = mw.ustring.sub(langLabel, mw.ustring.len('Limba ') + 1, mw.ustring.len(langLabel)) end end table.insert(officialLangs, illWd(eachOfficialLangClaim.mainsnak.datavalue.value.id, langLabel)) demography.languages.wdProp = 'P37' end end if #officialLangs > 0 then demography.languages.official = table.concat(officialLangs, _br_) end end demography.languages.other = args['limbi'] or args['limbi_regionale'] demography.ethnicGroups = {} demography.ethnicGroups.list = args['grupări_etnice'] or args['grupuri_etnice'] or args['ethnic_groups'] demography.ethnicGroups.date = args['grupuri_etnice_an'] or args['ethnic_groups_year'] demography.demonym = {} demography.demonym.data = {} if args['etnonim'] then table.insert(demography.demonym.data, args['etnonim']) end if 0 == #(demography.demonym.data) then local demonymClaims = wikidata.findBestClaimsForProperty(nil, 'P1549') if demonymClaims then for _,eachDemonymClaim in ipairs(demonymClaims) do if eachDemonymClaim.type == 'statement' and eachDemonymClaim.mainsnak.snaktype == 'value' and eachDemonymClaim.mainsnak.datavalue.value.language == 'ro' then local crtDemonym = eachDemonymClaim.mainsnak.datavalue.value.text local extras = {} if eachDemonymClaim.qualifiers and eachDemonymClaim.qualifiers['P518'] then for _,eachQual in ipairs(eachDemonymClaim.qualifiers['P518']) do if eachQual and eachQual.snaktype == 'value' then if eachQual.datavalue.value.id == 'Q499327' then table.insert(extras, 'masc.') elseif eachQual.datavalue.value.id == 'Q1775415' then table.insert(extras, 'fem.') elseif eachQual.datavalue.value.id == 'Q146786' then table.insert(extras, 'pl.') elseif eachQual.datavalue.value.id == 'Q110786' then table.insert(extras, 'sing.') end end end end local extra if 0 &lt; #extras then extra = tostring(mw.html.create('small'):wikitext(encloseString({table.concat(extras, ' '), '(', ')'}))) end table.insert(demography.demonym.data, join({crtDemonym, extra, separator = ' '})) end end end if 0 &lt; #(demography.demonym.data) then demography.demonym.wdProp = 'P1549' end end local politics = {} politics.system = args['sistem_politic'] if not politics.system then politics.system, politics.systemWdProp = wikidata.findOneValue('P122'), 'P122' end politics.leaders = {} for _,leaderIdx in ipairs(TableTools.affixNums(args, 'titlu_conducător')) do local leader = {} leader.title = args['titlu_conducător' .. tostring(leaderIdx)] leader.name = args['nume_conducător' .. tostring(leaderIdx)] if leader.name then table.insert(politics.leaders, leader) end end if #(politics.leaders) &lt; 1 then local headOfStatePosnWdId = nil local headOfState = {} headOfState.name = wikidata.findOneValue('P35') headOfState.wdProp = 'P35' if headOfState.name then local headOfStatePosnWd = getFirstValueClaimForProperty('P1906') if headOfStatePosnWd then headOfStatePosnWdId = headOfStatePosnWd.mainsnak.datavalue.value.id local headOfStatePosnLabel = mw.wikibase.getLabel(headOfStatePosnWdId) if naming.genitive and headOfStatePosnLabel then headOfStatePosnLabel = StringUtils._removeEnd({headOfStatePosnLabel, ' al ' .. naming.genitive}) headOfStatePosnLabel = StringUtils._removeEnd({headOfStatePosnLabel, ' a ' .. naming.genitive}) end headOfStatePosnLabel = StringUtils._capitalize({headOfStatePosnLabel}) headOfState.title = illWd(headOfStatePosnWdId, headOfStatePosnLabel, nil, true) else headOfState.title = 'Șef de stat' end end if headOfStatePosnWdId then table.insert(politics.leaders, headOfState) end local headOfGovernment = {} local headOfGovernmentPosnWdId headOfGovernment.name = wikidata.findOneValue('P6') headOfGovernment.wdProp = 'P6' if headOfGovernment.name then local headOfGovernmentPosnWd = getFirstValueClaimForProperty('P1313') if headOfGovernmentPosnWd then headOfGovernmentPosnWdId = headOfGovernmentPosnWd.mainsnak.datavalue.value.id local headOfGovernmentPosnLabel = mw.wikibase.getLabel(headOfGovernmentPosnWdId) if naming.genitive and headOfGovernmentPosnLabel then headOfGovernmentPosnLabel = StringUtils._removeEnd({headOfGovernmentPosnLabel, ' al ' .. naming.genitive}) headOfGovernmentPosnLabel = StringUtils._removeEnd({headOfGovernmentPosnLabel, ' a ' .. naming.genitive}) end headOfGovernmentPosnLabel = StringUtils._capitalize({headOfGovernmentPosnLabel}) headOfGovernment.title = illWd(headOfGovernmentPosnWdId, headOfGovernmentPosnLabel, nil, true) else headOfGovernment.title = 'Șef de guvern' end end if headOfGovernmentPosnWdId and headOfGovernmentPosnWdId ~= headOfStatePosnWdId then table.insert(politics.leaders, headOfGovernment) end end politics.legislature = {} politics.legislature.body = args['legislatură'] politics.legislature.chambers = {} for _,chamberType in ipairs({'superioară', 'inferioară'}) do local chamber = {} chamber.name = args['camera_' .. chamberType] chamber.label = 'Camera ' .. chamberType if chamber.name then table.insert(politics.legislature.chambers, chamber) end end if not politics.legislature.body and #(politics.legislature.chambers) == 0 then local legislatureWdClaim = getFirstValueClaimForProperty('P194') if legislatureWdClaim then politics.legislature.body = illWd(legislatureWdClaim.mainsnak.datavalue.value.id) if legislatureWdClaim and legislatureWdClaim.qualifiers and legislatureWdClaim.qualifiers['P527'] then --has as part local chamberNames = {} for _,eachLegislaturePartSnak in ipairs(legislatureWdClaim.qualifiers['P527']) do if eachLegislaturePartSnak.snaktype == 'value' then table.insert(chamberNames, illWd(eachLegislaturePartSnak.datavalue.value.id)) end end if #chamberNames > 0 then table.insert(politics.legislature.chambers, {label = 'Camere', name = table.concat(chamberNames, _br_)}) end end politics.legislature.wdProp = 'P194' end end politics.capital = args['capitală'] if not politics.capital then politics.capital = wikidata.findOneValue('P36') politics.capital = StringUtils._appendToString({politics.capital, StringUtils._encloseString({ join({ StringUtils._emptyToNil({wikidata.loadOneValueInChain({'P36', '_P459'})}), StringUtils._emptyToNil({StringUtils._prependToString({ wikidata.loadOneValueInChain({'P36', '_P580'}), 'din '})}), StringUtils._emptyToNil({StringUtils._prependToString({ wikidata.loadOneValueInChain({'P36', '_P1310'}), 'contestată de '})}), ['separator'] = '; ' }), ' (', ')' }) }) politics.capitalWdProp = 'P36' end politics.stateReligion = args['religie'] or args['religion'] local history = {} history.events = {} if args['tip_suveranitate'] then history.formation = args['tip_suveranitate'] history.formationNote = args['notă_suveranitate'] elseif args['fondare'] then history.formation = 'Formare' history.formationNote = args['fondare'] end for _,sigEventIdx in ipairs(TableTools.affixNums(args, 'eveniment_fondare')) do local sigEvent = {} sigEvent.description = args['eveniment_fondare' .. tostring(sigEventIdx)] sigEvent.date = args['dată_fondare' .. tostring(sigEventIdx)] table.insert(history.events, sigEvent) end if args['aderareUEdată'] then local sigEvent = {} sigEvent.description = 'Aderare la [[Uniunea Europeană|UE]]' sigEvent.date = args['aderareUEdată'] table.insert(history.events, sigEvent) end if #(history.events) == 0 then history.wdProp = 'P793' local sigEventWdClaims = wikidata.findBestClaimsForProperty(nil, history.wdProp) local function getAnyQualifier(claim, props) if not claim.qualifiers then return nil end for _,prop in ipairs(props) do if claim.qualifiers[prop] and claim.qualifiers[prop][1] and claim.qualifiers[prop][1].snaktype == 'value' then return claim.qualifiers[prop][1] end end return nil end if sigEventWdClaims then for _,eachSigEventWdClaim in ipairs(sigEventWdClaims) do if eachSigEventWdClaim.type == 'statement' and eachSigEventWdClaim.mainsnak.snaktype == 'value' and eachSigEventWdClaim.qualifiers and getAnyQualifier(eachSigEventWdClaim, {'P585', 'P580'}) then local sigEvent = {} sigEvent.description = wikidata.printSnak(eachSigEventWdClaim.mainsnak) sigEvent.dateRaw = DateUtils.extractDateFromWikidataSnak(getAnyQualifier(eachSigEventWdClaim, {'P585', 'P580'})) sigEvent.date = GregorianDate.displayDualDateIfInInterval(sigEvent.dateRaw, true) table.insert(history.events, sigEvent) end end end table.sort(history.events, function(e1, e2) if not e1 then return false end if not e2 then return true end if not e1.dateRaw then return false end if not e2.dateRaw then return true end return DateUtils.compare(e1.dateRaw, e2.dateRaw) &lt; 0 end) history.events.wdProp = 'P793' end local economy = {} economy.gdp = { netto = {}, capita = {} } economy.gdp.netto.nominal = args['PIB_nominal'] or appendToString({wikidata.findOneValue('P2131'), editAtWd.displayMessage('P2131')}) economy.gdp.netto.ppc = args['PIB_PPC'] or appendToString({wikidata.findOneValue('P4010'), editAtWd.displayMessage('P4010')}) economy.gdp.netto.ppcRanking = args['PIB_PPC_loc'] economy.gdp.netto.nominalRanking = args['PIB_nominal_loc'] economy.gdp.capita.nominal = args['PIB_nominal_pe_locuitor'] or appendToString({wikidata.findOneValue('P2132'), editAtWd.displayMessage('P2132')}) economy.gdp.capita.ppc = args['PIB_PPC_pe_locuitor'] or args['PIB_per_capita'] or appendToString({wikidata.findOneValue('P2299'), editAtWd.displayMessage('P2299')}) economy.gdp.capita.ppcRanking = args['PIB_PPC_pe_locuitor_loc'] economy.gdp.capita.nominalRanking = args['PIB_nominal_pe_locuitor_loc'] economy.gdp.nominalYear = args['PIB_an'] or args['PIB_nominal_an'] or wikidata.loadOneValueInChain({'P2131', '_P585'}) economy.gdp.ppcYear = args['PIB_an'] or args['PIB_PPC_an'] or wikidata.loadOneValueInChain({'P2299', '_P585'}) local function extractEconomicalIndexData(args, indexName, indexWdProp) local index = {} index.value = args[indexName] index.ranking = args[indexName .. '_loc'] index.year = args[indexName .. '_an'] index.category = args[indexName .. '_categorie'] index.ref = args[indexName .. '_ref'] if not index.value then local indexClaim = getFirstValueClaimForProperty(indexWdProp) if indexClaim then index.value = formatNum(indexClaim.mainsnak.datavalue.value.amount) if indexClaim.qualifiers and indexClaim.qualifiers['P585'] and indexClaim.qualifiers['P585'][1] and indexClaim.qualifiers['P585'].snaktype == 'value' then local indexDate = wikidata.extractDateFromClaim(indexClaim.qualifiers['P585'][1]) if indexDate and indexDate.year then index.year = tostring(indexDate.year) end end index.ref = wikidata.outputReferences(indexClaim) index.wdProp = indexWdProp end end return index end economy.gini = extractEconomicalIndexData(args, 'Gini', 'P1125') economy.idu = extractEconomicalIndexData(args, 'IDU', 'P1081') economy.currency = {} economy.currency.data = args['monedă'] economy.currency.iso4217 = args['monedă_iso'] economy.currency.footnote = args['monedă_notă'] if not economy.currency.data then local currencyClaim = getFirstValueClaimForProperty('P38') if currencyClaim then economy.currency.data = illWd(currencyClaim.mainsnak.datavalue.value.id) economy.currency.iso4217 = wikidata.findOneValue('P498', currencyClaim.mainsnak.datavalue.value.id) economy.currency.wdProp = 'P38' end end local codes = {} local function extractCode(arg, argNames, wdProperty, sep) sep = sep or _br_ local code = {} for _,eachArg in ipairs(argNames) do if code.value then break end code.value = arg[eachArg] code.notes = arg['notă_' .. eachArg] if code.value then return code end end if not code.value then local wdClaims = wikidata.findBestClaimsForProperty(nil, mw.ustring.upper(wdProperty)) local valueAccumulator = {} local noteAccumulator = {} if wdClaims then for __,eachWdClaim in ipairs(wdClaims) do if eachWdClaim.type == 'statement' and eachWdClaim.mainsnak.snaktype == 'value' then table.insert(valueAccumulator, wikidata.printSnak(eachWdClaim.mainsnak)) table.insert(noteAccumulator, wikidata.outputReferences(eachWdClaim)) end end end if #valueAccumulator > 0 then code.value = table.concat(valueAccumulator, sep) code.notes = table.concat(noteAccumulator) code.wdProp = wdProperty return code end end return nil end codes.phonePrefix = extractCode(args, {'prefix_telefonic'}, 'P474') codes.mobileCode = extractCode(args, {}, 'P2258') codes.internetTLD = extractCode(args, {'domeniu_internet', 'cctld'}, 'P78', ' ') codes.iso3166_2 = extractCode(args, {'iso3166-2'}, 'P297') codes.iocCode = extractCode(args, {}, 'P984') local notes = {} if args['note'] then table.insert(notes, args['note']) end for _,eachNoteIdx in ipairs(TableTools.affixNums(args, 'nota')) do table.insert(notes, args['nota' .. tostring(eachNoteIdx)]) end return p.fromArgs(naming, symbols, geography, demography, politics, history, economy, codes, notes) end --- extract the args array from frame p.fromFrame = function(frame) local args = getArgs(frame) return p.fromArray(args) 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="/w/index.php?title=Modul:InfoboxCountry/doc&amp;action=edit&amp;redlink=1" class="new" title="Modul:InfoboxCountry/doc — pagină inexistentă">Modul:InfoboxCountry/doc</a> (<a href="/w/index.php?title=Modul:InfoboxCountry/doc&amp;action=edit" class="new" title="Modul:InfoboxCountry/doc — pagină inexistentă">modificare</a>) </li></ul></div><p id="mw-returnto">Înapoi la <a href="/wiki/Modul:InfoboxCountry" title="Modul:InfoboxCountry">Modul:InfoboxCountry</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:InfoboxCountry">https://ro.wikipedia.org/wiki/Modul:InfoboxCountry</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:InfoboxCountry&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-f69cdc8f6-6x78m","wgBackendResponseTime":179,"wgPageParseReport":{"limitreport":{"cputime":"0.004","walltime":"0.006","ppvisitednodes":{"value":17,"limit":1000000},"postexpandincludesize":{"value":714,"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-f69cdc8f6-6x78m","timestamp":"20241125035753","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

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