CINXE.COM
Zobrazení zdroje stránky Modul:Wikidata – Wikipedie
<!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="cs" dir="ltr"> <head> <meta charset="UTF-8"> <title>Zobrazení zdroje stránky Modul:Wikidata – Wikipedie</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(/(?:^|; )cswikimwclientpreferences=([^;]+)/);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":"57c91df8-cf94-4561-a760-becf747f230e","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Modul:Wikidata","wgTitle":"Wikidata","wgCurRevisionId":22831570,"wgRevisionId":0,"wgArticleId":902715,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Modul:Wikidata","wgRelevantArticleId":902715,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["sysop"],"wgRestrictionMove":["sysop"],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"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":true,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.codeEditor.styles":"ready", "skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.charinsert.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.codeEditor","ext.scribunto.edit","mediawiki.action.edit.collapsibleFooter","site","mediawiki.page.ready","skins.vector.js","ext.centralNotice.geoIP","ext.charinsert","ext.gadget.WikiMiniAtlas","ext.gadget.OSMmapa","ext.gadget.direct-links-to-commons","ext.gadget.ReferenceTooltips","ext.gadget.courses","ext.gadget.refToolbar","ext.gadget.LegacyToolbar2006","ext.gadget.edittools","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"];</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=cs&modules=ext.charinsert.styles%7Cext.codeEditor.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=cs&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=cs&modules=site.styles&only=styles&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="Zobrazení zdroje stránky Modul:Wikidata – Wikipedie"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//cs.m.wikipedia.org/wiki/Modul:Wikidata"> <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="Wikipedie (cs)"> <link rel="EditURI" type="application/rsd+xml" href="//cs.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://cs.wikipedia.org/wiki/Modul:Wikidata"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.cs"> <link rel="alternate" type="application/atom+xml" title="Atom kanál Wikipedie." href="/w/index.php?title=Speci%C3%A1ln%C3%AD:Posledn%C3%AD_zm%C4%9Bny&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_Wikidata rootpage-Modul_Wikidata skin-vector-2022 action-edit"><a class="mw-jump-link" href="#bodyContent">Přeskočit na obsah</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="Projekt"> <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="Hlavní menu" > <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">Hlavní menu</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">Hlavní menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">přesunout do postranního panelu</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">skrýt</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigace </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage" class="mw-list-item"><a href="/wiki/Hlavn%C3%AD_strana" title="Navštívit Hlavní stranu [z]" accesskey="z"><span>Hlavní strana</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/N%C3%A1pov%C4%9Bda:Obsah" title="Místo, kde najdete pomoc"><span>Nápověda</span></a></li><li id="n-helpdesk" class="mw-list-item"><a href="/wiki/Wikipedie:Pot%C5%99ebuji_pomoc" title="Pokud si nevíte rady, zeptejte se ostatních"><span>Potřebuji pomoc</span></a></li><li id="n-featuredcontent" class="mw-list-item"><a href="/wiki/Wikipedie:Nejlep%C5%A1%C3%AD_%C4%8Dl%C3%A1nky" title="Přehled článků, které jsou považovány za nejlepší na české Wikipedii"><span>Nejlepší články</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Speci%C3%A1ln%C3%AD:N%C3%A1hodn%C3%A1_str%C3%A1nka" title="Přejít na náhodně vybranou stránku [x]" accesskey="x"><span>Náhodný článek</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Speci%C3%A1ln%C3%AD:Posledn%C3%AD_zm%C4%9Bny" title="Seznam posledních změn na této wiki [r]" accesskey="r"><span>Poslední změny</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedie:Port%C3%A1l_Wikipedie" title="O projektu, jak můžete pomoci, kde hledat"><span>Komunitní portál</span></a></li><li id="n-villagepump" class="mw-list-item"><a href="/wiki/Wikipedie:Pod_l%C3%ADpou" title="Hlavní diskusní fórum"><span>Pod lípou</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Hlavn%C3%AD_strana" 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="Wikipedie" src="/static/images/mobile/copyright/wikipedia-wordmark-cs.svg" style="width: 7.5em; height: 1.1875em;"> <img class="mw-logo-tagline" alt="Wikipedie: Otevřená encyklopedie" src="/static/images/mobile/copyright/wikipedia-tagline-cs.svg" width="118" height="13" style="width: 7.375em; 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/Speci%C3%A1ln%C3%AD:Hled%C3%A1n%C3%AD" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Prohledat tuto wiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Hledání</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="Hledat na Wikipedii" aria-label="Hledat na Wikipedii" autocapitalize="sentences" title="Prohledat tuto wiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Speciální:Hledání"> </div> <button class="cdx-button cdx-search-input__end-button">Hledat</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Osobní nástroje"> <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="Vzhled"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Změnit vzhled velikosti písma, šířky stránky a barvy" > <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="Vzhled" > <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">Vzhled</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&utm_medium=sidebar&utm_campaign=C13_cs.wikipedia.org&uselang=cs" class=""><span>Podpořte Wikipedii</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=Speci%C3%A1ln%C3%AD:Vytvo%C5%99it_%C3%BA%C4%8Det&returnto=Modul%3AWikidata&returntoquery=action%3Dedit" title="Doporučujeme vytvořit si účet a přihlásit se, ovšem není to povinné" class=""><span>Vytvoření účtu</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=Speci%C3%A1ln%C3%AD:P%C5%99ihl%C3%A1sit&returnto=Modul%3AWikidata&returntoquery=action%3Dedit" title="Doporučujeme vám přihlásit se, ovšem není to povinné. [o]" accesskey="o" class=""><span>Přihlášení</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Další možnosti" > <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="Osobní nástroje" > <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">Osobní nástroje</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Uživatelské menu" > <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&utm_medium=sidebar&utm_campaign=C13_cs.wikipedia.org&uselang=cs"><span>Podpořte Wikipedii</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speci%C3%A1ln%C3%AD:Vytvo%C5%99it_%C3%BA%C4%8Det&returnto=Modul%3AWikidata&returntoquery=action%3Dedit" title="Doporučujeme vytvořit si účet a přihlásit se, ovšem není to povinné"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Vytvoření účtu</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speci%C3%A1ln%C3%AD:P%C5%99ihl%C3%A1sit&returnto=Modul%3AWikidata&returntoquery=action%3Dedit" title="Doporučujeme vám přihlásit se, ovšem není to povinné. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Přihlášení</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Stránky pro odhlášené editory <a href="/wiki/N%C3%A1pov%C4%9Bda:%C3%9Avod" aria-label="Více informací o editování"><span>dozvědět se více</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Speci%C3%A1ln%C3%AD:Moje_p%C5%99%C3%ADsp%C4%9Bvky" title="Seznam editací provedených z této IP adresy [y]" accesskey="y"><span>Příspěvky</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Speci%C3%A1ln%C3%AD:Moje_diskuse" title="Diskuse o editacích provedených z této IP adresy [n]" accesskey="n"><span>Diskuse</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Projekt"> <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">Zobrazení zdroje stránky Modul:Wikidata</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="Tento článek existuje jenom v tomto jazyce. Přidejte jej i v ostatních jazycích" > <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">Přidat jazyky</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="Jmenné prostory"> <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:Wikidata" title="Zobrazit stránku modulu [c]" accesskey="c"><span>Modul</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Diskuse_k_modulu:Wikidata" rel="discussion" title="Diskuse ke stránce [t]" accesskey="t"><span>Diskuse</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="Změnit variantu jazyka" > <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="Zobrazení"> <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:Wikidata"><span>Číst</span></a></li><li id="ca-viewsource" class="selected vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:Wikidata&action=edit" title="Tato stránka je zamčena. Můžete si prohlédnout její zdrojový kód. [e]" accesskey="e"><span>Zobrazit zdroj</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:Wikidata&action=history" title="Starší verze této stránky. [h]" accesskey="h"><span>Zobrazit historii</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Nástroje ke stránce"> <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="Nástroje" > <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">Nástroje</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">Nástroje</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">přesunout do postranního panelu</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">skrýt</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Další možnosti" > <div class="vector-menu-heading"> Akce </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:Wikidata"><span>Číst</span></a></li><li id="ca-more-viewsource" class="selected vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:Wikidata&action=edit"><span>Zobrazit zdroj</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:Wikidata&action=history"><span>Zobrazit historii</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Obecné </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Speci%C3%A1ln%C3%AD:Co_odkazuje_na/Modul:Wikidata" title="Seznam všech wikistránek, které sem odkazují [j]" accesskey="j"><span>Odkazuje sem</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Speci%C3%A1ln%C3%AD:Souvisej%C3%ADc%C3%AD_zm%C4%9Bny/Modul:Wikidata" rel="nofollow" title="Nedávné změny stránek, na které je odkazováno [k]" accesskey="k"><span>Související změny</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=cs" title="Nahrát obrázky či jiná multimédia [u]" accesskey="u"><span>Načíst soubor</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Speci%C3%A1ln%C3%AD:Speci%C3%A1ln%C3%AD_str%C3%A1nky" title="Seznam všech speciálních stránek [q]" accesskey="q"><span>Speciální stránky</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Modul:Wikidata&action=info" title="Více informací o této stránce"><span>Informace o stránce</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Speci%C3%A1ln%C3%AD:UrlShortener&url=https%3A%2F%2Fcs.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DModul%3AWikidata%26action%3Dedit"><span>Získat zkrácené URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Speci%C3%A1ln%C3%AD:QrCode&url=https%3A%2F%2Fcs.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DModul%3AWikidata%26action%3Dedit"><span>Stáhnout QR kód</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"> Na jiných projektech </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/Q24575438" title="Odkaz na propojenou položku datového úložiště [g]" accesskey="g"><span>Položka Wikidat</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="Nástroje ke stránce"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Vzhled"> <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">Vzhled</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">přesunout do postranního panelu</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">skrýt</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:Wikidata" title="Modul:Wikidata">Modul:Wikidata</a></div></div> <div id="mw-content-text" class="mw-body-content"><p>Z následujících důvodů nemáte oprávnění upravit tuto stránku: </p> <ul class="permissions-errors"><li class="mw-permissionerror-protectedpagetext"><div class="noprint ambox labelced labelced-page labelced-page-type-editnotice plainlinks"> <div class="labelced_message"><div class="labelced_image ambox-image mbox-image"><span typeof="mw:File"><span><img alt="ikona" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Padlock.svg/100px-Padlock.svg.png" decoding="async" width="100" height="100" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Padlock.svg/150px-Padlock.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/59/Padlock.svg/200px-Padlock.svg.png 2x" data-file-width="128" data-file-height="128" /></span></span></div> <div class="labelced_message_inner"> <div class="labelced_message_headline ambox-text"><strong style="font-size:130%">Tato stránka je v současnosti <a href="/wiki/Wikipedie:Zamyk%C3%A1n%C3%AD" title="Wikipedie:Zamykání">zamčena</a> a mohou ji editovat pouze <a href="/wiki/Wikipedie:Spr%C3%A1vci" title="Wikipedie:Správci">správci</a>.</strong></div> <div class="labelced_message_text hide-when-compact ambox-text"><span></span> <ul><li>Některé <a href="/wiki/N%C3%A1pov%C4%9Bda:%C5%A0ablony" title="Nápověda:Šablony">šablony</a>, konfigurační stránky, stránky ovlivňující rozhraní a další velmi viditelné stránky jsou trvale zamčeny z důvodu jejich velké viditelnosti. Některé další stránky jsou zamčeny proto, že jsou předmětem sporů a čeká se na jejich vyřešení.</li> <li>Důvod pro zamčení stránky je zaznamenán v <span class="plainlinks"><a class="external text" href="https://cs.wikipedia.org/w/index.php?title=Speci%C3%A1ln%C3%AD:Log&type=protect&page=Modul:Wikidata">Knize zamčených stránek</a></span>.</li> <li>Změnu této stránky můžete <a href="/wiki/Diskuse_k_modulu:Wikidata" title="Diskuse k modulu:Wikidata">navrhnout a prodiskutovat</a> s ostatními.</li> <li>Můžete <a href="/wiki/Wikipedie:N%C3%A1st%C4%9Bnka_spr%C3%A1vc%C5%AF" title="Wikipedie:Nástěnka správců">požádat správce</a> o odemčení této stránky.</li></ul></div></div></div></div></li></ul> <li class="mw-permissionerror-globalblocking-blockedtext-range"><b>Vaše IP adresa je v rozsahu, který byl <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Global_blocks" class="extiw" title="m:Special:MyLanguage/Global blocks">zablokován na všech projektech nadace Wikimedia Foundation</a>.</b> <p>Blokování bylo provedeno uživatelem <a href="/wiki/Wikipedista:Jon_Kolbert" title="Wikipedista:Jon Kolbert">Jon Kolbert</a>. Uvedený důvod je <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>Začátek blokování: 27. 8. 2023, 16:12</li> <li>Blokování vyprší: 27. 8. 2028, 16:12</li></ul> <p>Vaše současná IP adresa je 8.222.208.146 a blokovaný rozsah je 8.222.128.0/17. Prosím, uvádějte tyto údaje ve všech dotazech. </p> Pokud se domníváte, že jste byli zablokováni omylem, můžete najít další informace a instrukce v globálním pravidle <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/No_open_proxies" class="extiw" title="m:Special:MyLanguage/No open proxies">Žádné open proxy</a>. Nebo pokud chcete blok prodiskutovat, <a href="https://meta.wikimedia.org/wiki/Steward_requests/Global" class="extiw" title="m:Steward requests/Global">vložte žádost o revizi na Meta-Wiki</a> nebo pošlete e-mail do <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/VRT" class="extiw" title="m:Special:MyLanguage/VRT">VRT</a> fronty <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Stewards" class="extiw" title="m:Special:MyLanguage/Stewards">stevardům</a> na adrese <kbd>stewards@wikimedia.org</kbd>. Výše uvedené údaje uvádějte ve všech dotazech.</li><hr /> <p>Můžete si zobrazit a zkopírovat zdrojový kód této stránky: </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="en" dir="ltr" name="wpTextbox1">require 'strict' local p = {} local lib = require 'Modul:Wikidata/lib' local i18n = mw.loadData('Modul:Wikidata/i18n') local getArgs = (require 'Modul:Arguments').getArgs local function outputBool(arg, ifexpr) local map if ifexpr then map = { [true] = 1, [false] = 0 } else map = { [true] = 1, [false] = '' } end return map[arg] end local function removeDuplicates(values) local TableTools = require 'Modul:TableTools' return TableTools.removeDuplicates(values) end local function getEntityIdFromStatements(statements) for _, statement in ipairs(statements) do if lib.IsSnakValue(statement.mainsnak) then if statement.mainsnak.datavalue.type ~= 'wikibase-entityid' then error(lib.raiseInvalidDatatype('getEntityIdFromStatements', statement.mainsnak.datatype, {'wikibase-item', 'wikibase-property'})) end local Formatters = require 'Modul:Wikidata/Formatters' return Formatters.getRawValue(statement.mainsnak, {}) end break end return nil end local function getEntityIdFromEntity(entity, prop) local prop = mw.ustring.upper(prop) local statements = entity:getBestStatements(prop) return getEntityIdFromStatements(statements) end local function getEntityIdFromId(id, prop) local prop = mw.ustring.upper(prop) local statements = mw.wikibase.getBestStatements(id, prop) return getEntityIdFromStatements(statements) end local function getIdFromTitle(titleString, wiki) if wiki then return mw.wikibase.getEntityIdForTitle(titleString, wiki) end local title = mw.title.new(titleString) while title do local id = mw.wikibase.getEntityIdForTitle(title.prefixedText) if id then return id end title = title.redirectTarget end return nil end local function findEntityId(options) local id if options.entity and type(options.entity) == 'table' then id = options.entity.id end if not id and options.page then id = getIdFromTitle(options.page, options.wiki) if not id then return nil end end if not id then id = options.id or p.getCurrentId() end if id and options.of then id = getEntityIdFromId(id, options.of) end return id end local function findEntity(options) local entity if options.entity and type(options.entity) == 'table' then entity = options.entity end if not entity then if options.id then local id = options.id:upper() entity = mw.wikibase.getEntity(id) if entity and entity.id ~= id then mw.log(id .. ' je přesměrování na ' .. entity.id) end else if options.page then local id = getIdFromTitle(options.page, options.wiki) if id then entity = mw.wikibase.getEntity(id) end else entity = mw.wikibase.getEntity() end end end if options.of then if entity then local id = getEntityIdFromEntity(entity, options.of) if id then return mw.wikibase.getEntity(id) end end return nil end return entity end local function getSitelink(options) local id = findEntityId(options) if not id then return nil end local site = options.site or options[1] local sitelink = mw.wikibase.getSitelink(id, site) if not sitelink then return nil end if options.pattern then sitelink = lib.formatFromPattern(sitelink, options.pattern) end if lib.IsOptionTrue(options, 'addclass') then sitelink = lib.addWdClass(sitelink) end return sitelink end local function formatStatementAndData(statement, options) if not statement.type or statement.type ~= 'statement' then error(lib.formatError('unknown-claim-type', statement.type or '[neznámý]')) -- fixme: i18n end local Filterers = require 'Modul:Wikidata/Filterers' local Formatters = require 'Modul:Wikidata/Formatters' local result = { Formatters.getFormattedValue(statement.mainsnak, options) } local qualifiers if statement.qualifiers and options.showqualifier then local PropList = lib.textToTable(options.showqualifier) -- TODO: move this to a better place (config) local default_options = { isQualifier = true, label = 'short', nolink = lib.IsOptionTrue(options, 'nolink'), precision = 9, } for _, property in ipairs(PropList) do local property = mw.ustring.upper(property) local Values = {} local qualifiers_options = lib.augmentArgs(options, default_options, 'qualifiers ') if statement.qualifiers[property] then local Qualifiers = mw.clone(statement.qualifiers[property]) qualifiers_options.property = property if not qualifiers_options.nolink then qualifiers_options.nolink = (Qualifiers[1].datatype == 'time') end Filterers.filterQualifiers(Qualifiers, qualifiers_options) for _, snak in ipairs(Qualifiers) do table.insert(Values, Formatters.getFormattedValue(snak, qualifiers_options)) end elseif property == 'TIME' then local Data = {} -- TODO: factor out for key, array in pairs(lib.props) do for _, prop in ipairs(array) do for _, snak in ipairs(statement.qualifiers[prop] or {}) do if lib.IsSnakValue(snak) then -- dokud nebude jasné, jak to používat Data[key] = snak break end end end end if Data.begin or Data.ending then qualifiers_options.nolink = true table.insert(Values, lib.formatDateRange(Data, qualifiers_options)) end end if #Values > 0 then result[property] = mw.text.listToText( removeDuplicates(Values), qualifiers_options.separator, qualifiers_options.conjunction) end end end if statement.references and lib.IsOptionTrue(options, 'showsource') then -- TODO: configure custom formatter local Module = require 'Modul:Wikidata/cite' result.ref = Module.formatReferences(statement.references, options) -- or table of references? end return result end local function formatStatement(statement, options) local data = formatStatementAndData(statement, options) local result = data[1] if options.isQualifier == true then return result end local qualifiers if statement.qualifiers and options.showqualifier then local PropList = lib.textToTable(options.showqualifier) local tmp = {} for _, prop in ipairs(PropList) do local prop = mw.ustring.upper(prop) if data[prop] then table.insert(tmp, data[prop]) end end if #tmp > 0 then qualifiers = table.concat(tmp, i18n['qualifiers separator']) end end if not qualifiers and options.showtargetdata then local entity local Filterers = require 'Modul:Wikidata/Filterers' local Formatters = require 'Modul:Wikidata/Formatters' if lib.IsSnakValue(statement.mainsnak) then if statement.mainsnak.datavalue.type == 'wikibase-entityid' then entity = mw.wikibase.getEntity(Formatters.getRawValue(statement.mainsnak, {})) else error(lib.formatError('invalid-datatype', statement.mainsnak.property, statement.mainsnak.datatype, 'wikibase-item/wikibase-property')) end end if entity then local PropList = lib.textToTable(options.showtargetdata) local date local rank = 'best' if options.targetdate then if lib.isPropertyId(options.targetdate) then date = p.getRawValueFromLua{ entity = options.entity, property = options.targetdate } else date = options.targetdate end if date then rank = 'valid' end end local options = { addclass = false, autoformat = true, date = date, entity = entity, isQualifier = true, label = 'short', nolink = true, precision = 9, rank = rank, sort = {'date'}, } local Snaks = {} for _, property in ipairs(PropList) do local result if mw.ustring.lower(property) == 'time' then local Data = {} for key, array in pairs(lib.props) do for _, prop in ipairs(array) do options.property = prop local Statements = Filterers.filterStatementsFromEntity(entity, options) for _, statement in ipairs(Statements) do Data[key] = statement.mainsnak break end end end if Data.begin or Data.ending then result = lib.formatDateRange(Data, options) end else options.property = property result = p.formatStatementsFromLua(options) end if result then table.insert(Snaks, result) end end if #Snaks > 0 then qualifiers = table.concat(Snaks, i18n['qualifiers separator']) end end end if qualifiers then if options.delimiter then result = result .. options.delimiter .. qualifiers else result = result .. ' (' .. qualifiers .. ')' end end if data.ref and data.ref ~= '' then return result .. data.ref .. lib.category('references') end return result end local function formatStatements(statements, options) local formattedStatements = {} for _, statement in ipairs(statements) do table.insert(formattedStatements, formatStatement(statement, options)) end return formattedStatements end local function getStatements(id, options) if not id then return {} end local statements = mw.wikibase.getAllStatements(id, options.property:upper()) local Filterers = require 'Modul:Wikidata/Filterers' Filterers.filterStatements(statements, options) return statements end local function prepareShowMore(options) if options.limit and lib.IsOptionTrue(options, 'showmore') then options.limit = options.limit + 1 return true end return false end local function handleShowMore(values, limit, add_more) if add_more then if #values == limit then table.remove(values) else add_more = false end end return add_more end local function makeList(values, options, add_more, link) values = removeDuplicates(values) -- TODO: maybe make optional if add_more then local parts = mw.text.split(link, '#', true) -- b/c table.insert(values, mw.ustring.format(i18n['more-on-Wikidata'], parts[1], parts[2] or '')) end local text if options.list == 'ul' or options.list == 'ol' then local li = {} for _, val in ipairs(values) do table.insert(li, mw.ustring.format('<li>%s</li>', val)) end text = mw.ustring.format('<%s class="wd">%s</%s>', options.list, table.concat(li), options.list) else text = mw.text.listToText(values, options.separator, options.conjunction) if lib.IsOptionTrue(options, 'addlink') then -- TODO: data-bridge-edit-flow text = mw.ustring.format('%s <sup class="wd-link">([[d:%s|e]])</sup>', text, link) end if tostring(options.addclass) ~= 'false' then text = lib.addWdClass(text) end end return text end local function getFormattedStatements(options) options.limit = tonumber(options.limit) --TODO default? local add_more = prepareShowMore(options) local id = findEntityId(options) local statements = getStatements(id, options) if #statements == 0 then return nil end add_more = handleShowMore(statements, options.limit, add_more) options.id = id -- Format statements and concat them cleanly local formattedStatements = formatStatements(statements, options) local property = mw.ustring.upper(options.property) local link = mw.ustring.format('%s#%s', id, property) local text = makeList(formattedStatements, options, add_more, link) if lib.IsOptionTrue(options, 'addcat') then text = text .. lib.category('used-property', property) end return text end local function getRawValue(options) if not options.rank then options.rank = 'best' end for _, statement in ipairs(p.getStatements(options)) do local Formatters = require 'Modul:Wikidata/Formatters' return Formatters.getRawValue(statement.mainsnak, options) end return nil end local function getQualifiers(args) if not args.qualifier then error(lib.formatError('param-not-provided', 'qualifier')) end if not args.rank then args.rank = 'best' end for _, statement in ipairs(p.getStatements(args)) do if statement.qualifiers then local qualifier_args = lib.augmentArgs(args, {}, 'qualifiers ') local qualifiers = mw.clone(statement.qualifiers[mw.ustring.upper(args.qualifier)] or {}) local Filterers = require 'Modul:Wikidata/Filterers' Filterers.filterQualifiers(qualifiers, qualifier_args) return qualifiers end return {} end return {} end ----- API pro šablony ----- function p.compareStatements(frame) local args = getArgs(frame, { frameOnly = true }) return p._compareStatements(args) end function p.dumpWikidataEntity(frame) local args = getArgs(frame, { frameOnly = true }) return mw.dumpObject( mw.wikibase.getEntity( args.id ) ) end function p.getBadges(frame) local args = getArgs(frame, { frameOnly = true }) local site = args.site if not site then error(lib.formatError('param-not-provided', 'site')) end local id = findEntityId(args) if not id then return nil end local Badges = {} local Formatters = require 'Modul:Wikidata/Formatters' for _, badge in ipairs(mw.wikibase.getBadges(id, site)) do table.insert(Badges, Formatters.formatRawValue(badge, 'wikibase-entityid')) end return table.concat(Badges, ', ') end function p.getLabel(frame) local args = getArgs(frame, { frameOnly = true }) local id = findEntityId(args) if not id then return nil end local lang, label = args.lang if lang then label = mw.wikibase.getLabelByLang(id, lang) else label, lang = mw.wikibase.getLabelWithLang(id) end if not label then return nil end label = mw.text.nowiki(label) if lib.IsOptionTrue(args, 'addclass') then if lang ~= i18n.lang then return lib.addWdClass(lib.formatTextInLanguage(label, lang)) else return lib.addWdClass(label) end end return label end function p.getDescription(frame) local args = getArgs(frame, { frameOnly = true }) local id = findEntityId(args) if not id then return nil end local lang, description = args.lang if lang then description = mw.wikibase.getDescriptionByLang(id, lang) else description, lang = mw.wikibase.getDescriptionWithLang(id) end if not description then return nil end description = mw.text.nowiki(description) if lib.IsOptionTrue(args, 'addclass') then if lang ~= i18n.lang then return lib.addWdClass(lib.formatTextInLanguage(description, lang)) else return lib.addWdClass(description) end end return description end function p.getAliases(frame) local args = getArgs(frame, { frameOnly = true }) local entity = findEntity(args) local lang = args.lang or i18n.lang if not entity or not entity.aliases or not entity.aliases[lang] then return nil end args.limit = tonumber(args.limit) local add_more = prepareShowMore(args) local limit = args.limit local Aliases = {} for i, alias in ipairs(entity.aliases[lang]) do table.insert(Aliases, mw.text.nowiki(alias.value)) if i == limit then break end end add_more = handleShowMore(Aliases, limit, add_more) return makeList(Aliases, args, add_more, entity.id) end function p.getId(frame) local args = getArgs(frame, { frameOnly = false, parentOnly = false, parentFirst = false, }) if not args[1] then return mw.wikibase.getEntityIdForCurrentPage() end for _, titleString in ipairs(args) do local id = getIdFromTitle(titleString, args.wiki) if id then return id end end return nil end function p.getSitelink(frame) return getSitelink(getArgs(frame, { frameOnly = true })) end function p.formatStatements(frame) local args = getArgs(frame, { frameOnly = true }) if args.value then return args.value end -- b/c for other wikis local parent_args = getArgs(frame, { parentOnly = true }) local add if parent_args.item and not args.id then args.id = parent_args.item add = lib.category('arbitrary-data') end local value = getFormattedStatements(args) if add and value then return value .. add end return value end function p.formatTimespan(frame) local args = getArgs(frame, { frameOnly = true }) local subargs = {} local data = {} local defaults = { sort = 'default' } for key in pairs{ start = true, ['end'] = true } do local prefix = key .. ' ' if not args[prefix .. 'property'] then error('param-not-provided', prefix .. 'property') end subargs[key] = lib.augmentArgs(args, defaults, prefix) local statements = p.getStatements(subargs[key]) if #statements > 0 then data[key] = statements end end if not data.start and not data['end'] then return nil end local out = {} if data.start and data['end'] then for _, startSt in ipairs(data.start) do for _, endSt in ipairs(data['end']) do local separator = ' – ' -- TODO table.insert( out, mw.ustring.format('%s%s%s', formatStatement(startSt, subargs.start), separator, formatStatement(endSt, subargs['end']) ) ) end end else for key in pairs{ start = true, ['end'] = true } do for _, statement in ipairs(data[key] or {}) do table.insert( out, mw.ustring.format( args[key .. '-format'] or i18n.date[key], formatStatement(statement, subargs[key]) ) ) end end end return makeList(out, args, false, '') end function p.formatStatementsFromTemplate(frame) local args = getArgs(frame, { frameOnly = false, parentOnly = false, parentFirst = false, }) return getFormattedStatements(args) end function p.getCount(frame) local args = getArgs(frame, { frameOnly = true }) args.limit = nil return #p.getStatements(args) end function p.getRawValue(frame) return getRawValue(getArgs(frame, { frameOnly = true })) end function p.getQualifier(frame) local args = getArgs(frame, { frameOnly = true }) args.limit = tonumber(args['qualifiers limit'] or args.limit) local add_more = prepareShowMore(args) local limit = args.limit args['qualifiers limit'] = limit args.limit = 1 local qualifiers = getQualifiers(args) if #qualifiers == 0 then return nil end add_more = handleShowMore(qualifiers, limit, add_more) local Formatters = require 'Modul:Wikidata/Formatters' local formattedQualifiers = {} for _, qualifier in ipairs(qualifiers) do table.insert(formattedQualifiers, Formatters.getFormattedValue(qualifier, args)) end local link = '' -- TODO: we don't have statement anchor -- TODO: references? return makeList(formattedQualifiers, args, add_more, link) end function p.getRawQualifier(frame) local args = getArgs(frame, { frameOnly = true }) args.limit = 1 for _, qualifier in ipairs(getQualifiers(args)) do local Formatters = require 'Modul:Wikidata/Formatters' return Formatters.getRawValue(qualifier, args) end return nil end function p.getCurrentId() return mw.wikibase.getEntityIdForCurrentPage() end function p.formatEntity(frame) local args = getArgs(frame, { frameOnly = true }) args.id = args.id or p.getCurrentId() if args.id then local Formatters = require 'Modul:Wikidata/Formatters' return Formatters.formatRawValue(args.id, 'wikibase-entityid', args) end return nil end function p.entityExists(frame) return outputBool( mw.wikibase.entityExists(frame.args.id or frame.args[1]), lib.IsOptionTrue(frame.args, 'ifexpr')) end function p.isValidEntityId(frame) return outputBool( mw.wikibase.isValidEntityId(frame.args.id or frame.args[1]), lib.IsOptionTrue(frame.args, 'ifexpr')) end ----- API pro moduly ----- function p.formatStatementsFromLua(options) return getFormattedStatements(options) end function p.getSitelinkFromLua(options) return getSitelink(options or {}) end function p.getStatements(args) local id = findEntityId(args) return getStatements(id, args) end function p.getStatementsWithData(args) local statements = p.getStatements(args) local result = {} for _, statement in ipairs(statements) do table.insert(result, formatStatementAndData(statement, args)) end return result end function p.getRawValueFromLua(options) return getRawValue(options) end function p.getRawValues(options) local Values = {} local Formatters = require 'Modul:Wikidata/Formatters' for _, st in ipairs(p.getStatements(options)) do table.insert(Values, Formatters.getRawValue(st.mainsnak, options)) end return Values end p.formatStatementsTable = formatStatements function p._compareStatements(args) if not args.value then error(lib.formatError('param-not-provided', 'value')) end local statements = p.getStatements(args) local compare = require 'Modul:Wikidata/compare' return compare.compareValues(args.value, statements, args) end return p </textarea><div id="mw-scribunto-console"></div><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Šablony použité na této stránce: </p></div><ul> <li><a href="/wiki/%C5%A0ablona:Cedule" title="Šablona:Cedule">Šablona:Cedule</a> (<a href="/w/index.php?title=%C5%A0ablona:Cedule&action=edit" title="Šablona:Cedule">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Cedule/koment%C3%A1%C5%99" title="Šablona:Cedule/komentář">Šablona:Cedule/komentář</a> (<a href="/w/index.php?title=%C5%A0ablona:Cedule/koment%C3%A1%C5%99&action=edit" title="Šablona:Cedule/komentář">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Cedule/n%C3%A1vrh" title="Šablona:Cedule/návrh">Šablona:Cedule/návrh</a> (<a href="/w/index.php?title=%C5%A0ablona:Cedule/n%C3%A1vrh&action=edit" title="Šablona:Cedule/návrh">ukázat zdroj</a>) (polozamčena)</li><li><a href="/wiki/%C5%A0ablona:Clear" title="Šablona:Clear">Šablona:Clear</a> (<a href="/w/index.php?title=%C5%A0ablona:Clear&action=edit" title="Šablona:Clear">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Dokumentace" title="Šablona:Dokumentace">Šablona:Dokumentace</a> (<a href="/w/index.php?title=%C5%A0ablona:Dokumentace&action=edit" title="Šablona:Dokumentace">ukázat zdroj</a>) (polozamčena)</li><li><a href="/wiki/%C5%A0ablona:Dokumentace/styles.css" title="Šablona:Dokumentace/styles.css">Šablona:Dokumentace/styles.css</a> (<a href="/w/index.php?title=%C5%A0ablona:Dokumentace/styles.css&action=edit" title="Šablona:Dokumentace/styles.css">ukázat zdroj</a>) (polozamčena)</li><li><a href="/wiki/%C5%A0ablona:Editlink" title="Šablona:Editlink">Šablona:Editlink</a> (<a href="/w/index.php?title=%C5%A0ablona:Editlink&action=edit" title="Šablona:Editlink">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Historylink" title="Šablona:Historylink">Šablona:Historylink</a> (<a href="/w/index.php?title=%C5%A0ablona:Historylink&action=edit" title="Šablona:Historylink">ukázat zdroj</a>) (polozamčena)</li><li><a href="/wiki/%C5%A0ablona:Kategorie" title="Šablona:Kategorie">Šablona:Kategorie</a> (<a href="/w/index.php?title=%C5%A0ablona:Kategorie&action=edit" title="Šablona:Kategorie">ukázat zdroj</a>) (zamčena)</li><li><a href="/wiki/%C5%A0ablona:N%C3%A1pov%C4%9Bda_podrobn%C4%9B" title="Šablona:Nápověda podrobně">Šablona:Nápověda podrobně</a> (<a href="/w/index.php?title=%C5%A0ablona:N%C3%A1pov%C4%9Bda_podrobn%C4%9B&action=edit" title="Šablona:Nápověda podrobně">editovat</a>) </li><li><a href="/wiki/%C5%A0ablona:Odkaz_na_vlastnost_WD" title="Šablona:Odkaz na vlastnost WD">Šablona:Odkaz na vlastnost WD</a> (<a href="/w/index.php?title=%C5%A0ablona:Odkaz_na_vlastnost_WD&action=edit" title="Šablona:Odkaz na vlastnost WD">editovat</a>) </li><li><a href="/wiki/%C5%A0ablona:Podstr%C3%A1nka_s_dokumentac%C3%AD" title="Šablona:Podstránka s dokumentací">Šablona:Podstránka s dokumentací</a> (<a href="/w/index.php?title=%C5%A0ablona:Podstr%C3%A1nka_s_dokumentac%C3%AD&action=edit" title="Šablona:Podstránka s dokumentací">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Povinn%C3%BD_parametr" title="Šablona:Povinný parametr">Šablona:Povinný parametr</a> (<a href="/w/index.php?title=%C5%A0ablona:Povinn%C3%BD_parametr&action=edit" title="Šablona:Povinný parametr">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Povinn%C3%BD_stacktrace" title="Šablona:Povinný stacktrace">Šablona:Povinný stacktrace</a> (<a href="/w/index.php?title=%C5%A0ablona:Povinn%C3%BD_stacktrace&action=edit" title="Šablona:Povinný stacktrace">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Property" class="mw-redirect" title="Šablona:Property">Šablona:Property</a> (<a href="/w/index.php?title=%C5%A0ablona:Property&action=edit" class="mw-redirect" title="Šablona:Property">editovat</a>) </li><li><a href="/wiki/%C5%A0ablona:Purge" title="Šablona:Purge">Šablona:Purge</a> (<a href="/w/index.php?title=%C5%A0ablona:Purge&action=edit" title="Šablona:Purge">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Seznam" title="Šablona:Seznam">Šablona:Seznam</a> (<a href="/w/index.php?title=%C5%A0ablona:Seznam&action=edit" title="Šablona:Seznam">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Seznam/link" title="Šablona:Seznam/link">Šablona:Seznam/link</a> (<a href="/w/index.php?title=%C5%A0ablona:Seznam/link&action=edit" title="Šablona:Seznam/link">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/%C5%A0ablona:Slou%C4%8Dit" title="Šablona:Sloučit">Šablona:Sloučit</a> (<a href="/w/index.php?title=%C5%A0ablona:Slou%C4%8Dit&action=edit" title="Šablona:Sloučit">ukázat zdroj</a>) (polozamčena)</li><li><a href="/wiki/%C5%A0ablona:WD_%C5%A1t%C3%ADtek2" title="Šablona:WD štítek2">Šablona:WD štítek2</a> (<a href="/w/index.php?title=%C5%A0ablona:WD_%C5%A1t%C3%ADtek2&action=edit" title="Šablona:WD štítek2">editovat</a>) </li><li><a href="/wiki/%C5%A0ablona:Zam%C4%8Deno" title="Šablona:Zamčeno">Šablona:Zamčeno</a> (<a href="/w/index.php?title=%C5%A0ablona:Zam%C4%8Deno&action=edit" title="Šablona:Zamčeno">ukázat zdroj</a>) (zamčena)</li><li><a href="/wiki/%C5%A0ablona:Zleva" title="Šablona:Zleva">Šablona:Zleva</a> (<a href="/w/index.php?title=%C5%A0ablona:Zleva&action=edit" title="Šablona:Zleva">ukázat zdroj</a>) (rozšířeně polozamčeno)</li><li><a href="/wiki/Modul:Arguments" title="Modul:Arguments">Modul:Arguments</a> (<a href="/w/index.php?title=Modul:Arguments&action=edit" title="Modul:Arguments">ukázat zdroj</a>) (zamčena)</li><li><a href="/wiki/Modul:Functions" title="Modul:Functions">Modul:Functions</a> (<a href="/w/index.php?title=Modul:Functions&action=edit" title="Modul:Functions">ukázat zdroj</a>) (zamčena)</li><li><a href="/wiki/Modul:No_globals" title="Modul:No globals">Modul:No globals</a> (<a href="/w/index.php?title=Modul:No_globals&action=edit" title="Modul:No globals">ukázat zdroj</a>) (zamčena)</li><li><a href="/wiki/Modul:Wikidata" title="Modul:Wikidata">Modul:Wikidata</a> (<a href="/w/index.php?title=Modul:Wikidata&action=edit" title="Modul:Wikidata">ukázat zdroj</a>) (zamčena)</li><li><a href="/wiki/Modul:Wikidata/Dokumentace" title="Modul:Wikidata/Dokumentace">Modul:Wikidata/Dokumentace</a> (<a href="/w/index.php?title=Modul:Wikidata/Dokumentace&action=edit" title="Modul:Wikidata/Dokumentace">editovat</a>) </li><li><a href="/wiki/Modul:Wikidata/i18n" title="Modul:Wikidata/i18n">Modul:Wikidata/i18n</a> (<a href="/w/index.php?title=Modul:Wikidata/i18n&action=edit" title="Modul:Wikidata/i18n">ukázat zdroj</a>) (zamčena)</li><li><a href="/wiki/Modul:Wikidata/lib" title="Modul:Wikidata/lib">Modul:Wikidata/lib</a> (<a href="/w/index.php?title=Modul:Wikidata/lib&action=edit" title="Modul:Wikidata/lib">ukázat zdroj</a>) (zamčena)</li></ul></div><p id="mw-returnto">Návrat na stránku „<a href="/wiki/Modul:Wikidata" title="Modul:Wikidata">Modul:Wikidata</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="">Citováno z „<a dir="ltr" href="https://cs.wikipedia.org/wiki/Modul:Wikidata">https://cs.wikipedia.org/wiki/Modul:Wikidata</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">Ochrana osobních údajů</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedie">O Wikipedii</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedie:Vylou%C4%8Den%C3%AD_odpov%C4%9Bdnosti">Vyloučení odpovědnosti</a></li> <li id="footer-places-contact"><a href="//cs.wikipedia.org/wiki/Wikipedie:Kontakt">Kontaktujte Wikipedii</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Kodex chování</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Vývojáři</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/cs.wikipedia.org">Statistiky</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Prohlášení o cookies</a></li> <li id="footer-places-mobileview"><a href="//cs.m.wikipedia.org/w/index.php?title=Modul:Wikidata&action=edit&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobilní verze</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-57488d5c7d-fq8d5","wgBackendResponseTime":323,"wgPageParseReport":{"limitreport":{"cputime":"0.019","walltime":"0.035","ppvisitednodes":{"value":82,"limit":1000000},"postexpandincludesize":{"value":4886,"limit":2097152},"templateargumentsize":{"value":1297,"limit":2097152},"expansiondepth":{"value":8,"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% 8.138 1 -total","100.00% 8.138 1 MediaWiki:Protectedpagetext/editprotected"," 51.39% 4.182 1 Šablona:Cedule"]},"cachereport":{"origin":"mw-web.codfw.main-57488d5c7d-fq8d5","timestamp":"20241128020221","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>