CINXE.COM
Se kilde til Modul:Brug Wikidata - Wikipedia, den frie encyklopædi
<!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="da" dir="ltr"> <head> <meta charset="UTF-8"> <title>Se kilde til Modul:Brug Wikidata - Wikipedia, den frie encyklopædi</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(/(?:^|; )dawikimwclientpreferences=([^;]+)/);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":"08219d5f-fffe-4d1c-985e-c637b3cdc6e5","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Modul:Brug_Wikidata","wgTitle":"Brug Wikidata","wgCurRevisionId":11835495,"wgRevisionId":0,"wgArticleId":910844,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Modul:Brug_Wikidata","wgRelevantArticleId":910844,"wgTempUserName":null,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["templateeditor"],"wgRestrictionMove":["templateeditor"],"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":60000,"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.0"};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.gadget.NewSection","ext.gadget.ReferenceTooltips","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=da&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&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=da&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=da&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="Se kilde til Modul:Brug Wikidata - Wikipedia, den frie encyklopædi"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//da.m.wikipedia.org/wiki/Modul:Brug_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="Wikipedia (da)"> <link rel="EditURI" type="application/rsd+xml" href="//da.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://da.wikipedia.org/wiki/Modul:Brug_Wikidata"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.da"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom-feed" href="/w/index.php?title=Speciel:Seneste_%C3%A6ndringer&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_Brug_Wikidata rootpage-Modul_Brug_Wikidata skin-vector-2022 action-edit"><a class="mw-jump-link" href="#bodyContent">Spring til indhold</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="Websted"> <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="Hovedmenu" > <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">Hovedmenu</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">Hovedmenu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">flyt til sidebjælken</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">skjul</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage" class="mw-list-item"><a href="/wiki/Forside" title="Besøg forsiden [z]" accesskey="z"><span>Forside</span></a></li><li id="n-kategorier" class="mw-list-item"><a href="/wiki/Wikipedia:Kategorier"><span>Kategorier</span></a></li><li id="n-Fremhævet-indhold" class="mw-list-item"><a href="/wiki/Wikipedia:Fremh%C3%A6vet_indhold"><span>Fremhævet indhold</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Speciel:Tilf%C3%A6ldig_side" title="Gå til en tilfældig side [x]" accesskey="x"><span>Tilfældig side</span></a></li><li id="n-Tilfældige-artikler" class="mw-list-item"><a href="/wiki/Wikipedia:Tilf%C3%A6ldige_artikler"><span>Tilfældige artikler</span></a></li><li id="n-Aktuelt" class="mw-list-item"><a href="/wiki/Wikipedia:Aktuelle_begivenheder"><span>Aktuelt</span></a></li> </ul> </div> </div> <div id="p-deltagelse" class="vector-menu mw-portlet mw-portlet-deltagelse" > <div class="vector-menu-heading"> deltagelse </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-velkommen" class="mw-list-item"><a href="/wiki/Hj%C3%A6lp:Velkommen_til_Wikipedia"><span>Velkommen</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Forside" title="Om projektet, hvad du kan gøre, hvor tingene findes"><span>Skribentforside</span></a></li><li id="n-Landsbybrønden" class="mw-list-item"><a href="/wiki/Wikipedia:Landsbybr%C3%B8nden"><span>Landsbybrønden</span></a></li><li id="n-Projekter" class="mw-list-item"><a href="/wiki/Wikipedia:Projekter"><span>Projekter</span></a></li><li id="n-Portaler" class="mw-list-item"><a href="/wiki/Portal:Portaler"><span>Portaler</span></a></li><li id="n-Ønskede-artikler" class="mw-list-item"><a href="/wiki/Wikipedia:WikiProjekt_Efterspurgte_artikler"><span>Ønskede artikler</span></a></li><li id="n-Oprydning" class="mw-list-item"><a href="/wiki/Wikipedia:Oprydning"><span>Oprydning</span></a></li><li id="n-Kalender" class="mw-list-item"><a href="/wiki/Wikipedia:Kalender"><span>Kalender</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Speciel:Seneste_%C3%A6ndringer" title="Listen over de seneste ændringer i wikien. [r]" accesskey="r"><span>Seneste ændringer</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Hj%C3%A6lp:Forside" title="Stedet hvor du finder hjælp"><span>Hjælp</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Forside" 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="Den frie encyklopædi" src="/static/images/mobile/copyright/wikipedia-tagline-da.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/Speciel:S%C3%B8gning" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Søg på Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Søg</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="Søg på Wikipedia" aria-label="Søg på Wikipedia" autocapitalize="sentences" title="Søg på Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Speciel:Søgning"> </div> <button class="cdx-button cdx-search-input__end-button">Søg</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personlige værktøjer"> <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="Udseende"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Skift udseendet af sidens skriftstørrelse, -bredde og -farve" > <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="Udseende" > <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">Udseende</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_da.wikipedia.org&uselang=da" class=""><span>Donation</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=Speciel:Opret_konto&returnto=Modul%3ABrug+Wikidata&returntoquery=action%3Dedit" title="Du opfordres til at oprette en konto og logge på, men det er ikke obligatorisk" class=""><span>Opret konto</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=Speciel:Log_p%C3%A5&returnto=Modul%3ABrug+Wikidata&returntoquery=action%3Dedit" title="Du opfordres til at logge på, men det er ikke obligatorisk. [o]" accesskey="o" class=""><span>Log på</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="Flere muligheder" > <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="Personlige værktøjer" > <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">Personlige værktøjer</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Brugermenu" > <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_da.wikipedia.org&uselang=da"><span>Donation</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speciel:Opret_konto&returnto=Modul%3ABrug+Wikidata&returntoquery=action%3Dedit" title="Du opfordres til at oprette en konto og logge på, men det er ikke obligatorisk"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Opret konto</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speciel:Log_p%C3%A5&returnto=Modul%3ABrug+Wikidata&returntoquery=action%3Dedit" title="Du opfordres til at logge på, men det er ikke obligatorisk. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log på</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\"\u003ELuk\u003C/a\u003E]\u003C/div\u003E\u003Cdiv class=\"mw-dismissable-notice-body\"\u003E\u003C!-- CentralNotice --\u003E\u003Cdiv id=\"localNotice\" data-nosnippet=\"\"\u003E\u003Cdiv class=\"sitenotice\" lang=\"da\" dir=\"ltr\"\u003E\u003Cp\u003EDu kan være med til at gøre Wikipedia bedre – \u003Ca href=\"/wiki/Hj%C3%A6lp:Du_kan_v%C3%A6re_med_til_at_g%C3%B8re_Wikipedia_bedre!\" title=\"Hjælp:Du kan være med til at gøre Wikipedia bedre!\"\u003Elæs her hvordan!\u003C/a\u003E\u003Cbr /\u003E \u003C/p\u003E\u003Cdiv class=\"vis-for-autopatrol\"\u003EDansk Wikipedia har en Discord-server, hvor du kan chatte. Se mere på \u003Ca href=\"/wiki/Wikipedia:Discord\" title=\"Wikipedia:Discord\"\u003EWikipedia:Discord\u003C/a\u003E\u003C/div\u003E\u003Cp\u003E\u003Ci\u003E\u003Csmall\u003E(\u003Ca href=\"/wiki/Hj%C3%A6lp:Sitenotice\" title=\"Hjælp:Sitenotice\"\u003ELæs her om sitenotice\u003C/a\u003E)\u003C/small\u003E\u003C/i\u003E\u003C/p\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="Websted"> <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">Se kilde til Modul:Brug 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="Denne artikel findes kun på dette sprog. Tilføj artiklen til andre sprog" > <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">Tilføj sprog</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="Navnerum"> <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:Brug_Wikidata" title="View the module page [c]" accesskey="c"><span>Modul</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Moduldiskussion:Brug_Wikidata" rel="discussion" title="Diskussion om indholdet på siden [t]" accesskey="t"><span>Diskussion</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="Ændr sprogvariant" > <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="Visninger"> <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:Brug_Wikidata"><span>Læs</span></a></li><li id="ca-viewsource" class="selected vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:Brug_Wikidata&action=edit" title="Denne side er beskyttet. Du kan se kildeteksten. [e]" accesskey="e"><span>Vis kilde</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Modul:Brug_Wikidata&action=history" title="Tidligere versioner af denne side [h]" accesskey="h"><span>Se historik</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Sideværktøjer"> <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="Værktøjer" > <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">Værktøjer</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">Værktøjer</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">flyt til sidebjælken</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">skjul</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Flere muligheder" > <div class="vector-menu-heading"> Handlinger </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:Brug_Wikidata"><span>Læs</span></a></li><li id="ca-more-viewsource" class="selected vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:Brug_Wikidata&action=edit"><span>Vis kilde</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Modul:Brug_Wikidata&action=history"><span>Se historik</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Generelt </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Speciel:Hvad_linker_hertil/Modul:Brug_Wikidata" title="Liste med alle sider som henviser hertil [j]" accesskey="j"><span>Hvad henviser hertil</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Speciel:Relaterede_%C3%A6ndringer/Modul:Brug_Wikidata" rel="nofollow" title="Seneste ændringer af sider som denne side henviser til [k]" accesskey="k"><span>Beslægtede ændringer</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=da&campaign=dk" title="Upload filer [u]" accesskey="u"><span>Upload fil</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Speciel:Specialsider" title="Liste over alle specialsider [q]" accesskey="q"><span>Specialsider</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Modul:Brug_Wikidata&action=info" title="Yderligere oplysninger om denne side"><span>Sideinformation</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Speciel:UrlShortener&url=https%3A%2F%2Fda.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DModul%3ABrug_Wikidata%26action%3Dedit"><span>Hent forkortet URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Speciel:QrCode&url=https%3A%2F%2Fda.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DModul%3ABrug_Wikidata%26action%3Dedit"><span>Download QR-kode</span></a></li> </ul> </div> </div> <div id="p-Organisation" class="vector-menu mw-portlet mw-portlet-Organisation" > <div class="vector-menu-heading"> Organisation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-contact" class="mw-list-item"><a href="/wiki/Wikipedia:Kontakt_Wikipedia"><span>Kontakt Wikipedia</span></a></li><li id="n-Wikimedia-Danmark" class="mw-list-item"><a href="https://dk.wikimedia.org/wiki/"><span>Wikimedia Danmark</span></a></li><li id="n-GLAM" class="mw-list-item"><a href="/wiki/Wikipedia:GLAM"><span>GLAM</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"> I andre projekter </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="Sideværktøjer"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Udseende"> <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">Udseende</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">flyt til sidebjælken</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">skjul</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:Brug_Wikidata" title="Modul:Brug Wikidata">Modul:Brug Wikidata</a></div></div> <div id="mw-content-text" class="mw-body-content"><p>Du har ikke rettigheder til at redigere denne side af følgende grunde: </p> <ul class="permissions-errors"><li class="mw-permissionerror-protectedpagetext">Denne side er beskyttet for at forhindre redigering.</li><li class="mw-permissionerror-globalblocking-blockedtext-range"><b>Din IP-adresse er inden for et interval blevet <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Global_blocks" class="extiw" title="m:Special:MyLanguage/Global blocks">blokeret på alle Wikimedia Foundation-wikier</a>.</b> Blokeringen blev foretaget af <a href="/wiki/Bruger:Jon_Kolbert" title="Bruger:Jon Kolbert">Jon Kolbert</a>. Begrundelsen er <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>. <ul><li>Start af blokering: 27. aug. 2023, 16:12</li> <li>Udløb af blokering: 27. aug. 2028, 16:12</li></ul> Din nuværende IP-adresse er 8.222.208.146. Det blokerede interval er 8.222.128.0/17. Inkluder alle ovenstående detaljer i forespørgsler du gør. Hvis du mener, at du er blevet blokeret ved en fejl, kan du finde yderligere oplysninger og instruktioner i den globale politik <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/No_open_proxies" class="extiw" title="m:Special:MyLanguage/No open proxies">Ingen åbne proxyer</a>. Du kan også diskutere blokeringen ved at <a href="https://meta.wikimedia.org/wiki/Steward_requests/Global" class="extiw" title="m:Steward requests/Global">lægge en anmodning om gennemgang på Meta-Wiki</a>. ⧼wikimedia-globalblocking-blockedtext-mistake-e-mail-steward⧽</li></ul><hr /> <p>Du kan se og kopiere kildeteksten for denne side </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="en" dir="ltr" name="wpTextbox1">-- Module to fetch information from Wikidata, primarily for use in infoboxes require("Modul:No globals") local data = mw.loadData("Modul:Brug Wikidata/data") -- local data = mw.loadData("Modul:Brug Wikidata/data/sandkasse") local preferred_language = data.preferred_language local fallback_languages = data.fallback_languages local fallback_languages_humans = data.fallback_languages_humans local fallback_note = data.fallback_note local bc = data.bc local months = data.months local wd_units = data.wd_units local wanted_units = data.wanted_units local msk_timezones = data.msk_timezones local fallback_languages_after_country = data.fallback_languages_after_country local fallback_languages_for_persons = data.fallback_languages_for_persons -- Not used! local tracking_cats = data.tracking_cats local p = {} local tracking_categories = '' local navnerum = mw.title.getCurrentTitle().namespace local add_tracking_category = function(cat) mw.log('add_tracking_category: cat=' .. cat) if navnerum == 0 then tracking_categories = tracking_categories .. cat end end -- The following values are set by get_statements local the_frame -- Used to for frame:extensionTag local the_qid -- Used to make links to Wikidata and to get more statements if needed later local the_pid -- Used to make links to Wikidata -- Get and format a reference to a statement local get_reference = function(ref) local refargs = {} -- go throug all reference properties local snaks = ref.snaks for refpid, ref in pairs(snaks) do --mw.logObject(refpid, 'refpid') --mw.logObject(ref, 'ref') -- There may be more than more than value with the same property, but ignore all but the first local ref1 = ref[1] if ref[2] then add_tracking_category(tracking_cats.category_repeated_ref) end if ref1.snaktype == 'value' then -- We have a reel value, as in not 'somevalue' or 'novalue' if refpid == 'P248' then -- P248 is stated in local label = mw.wikibase.getLabel(ref1.datavalue.value.id) if label then refargs.stated = ref1.datavalue.value refargs.stated["label"] = label end elseif refpid == 'P854' then -- P854 is reference URL refargs.url = ref1.datavalue.value elseif refpid == 'P1476' then -- P1476 is title (monolingual text, the language can be default for language) refargs.title = ref1.datavalue.value.text elseif refpid == 'P123' then -- P123 is publisher local label = mw.wikibase.getLabel(ref1.datavalue.value.id) if label then refargs.publisher = ref1.datavalue.value refargs.publisher["label"] = label end elseif refpid == 'P813' then -- P813 is retrieved refargs.accessdate = p.format_time({}, ref1.datavalue.value) elseif refpid == 'P304' then -- P304 is page(s) refargs.page = ref1.datavalue.value elseif refpid == 'P792' then -- P792 is chapter refargs.chapter = ref1.datavalue.value elseif refpid == 'P143' then -- P143 is "imported from" --refargs.importedfrom = ref1.datavalue.value --local label = mw.wikibase.getLabel(ref1.datavalue.value.id) --if label then refargs.importedfrom["label"] = label end else add_tracking_category(tracking_cats.category_unknown_ref) end end end local text = '' if refargs.url then local reftext = '' if refargs.title then reftext = refargs.title elseif refargs.stated then reftext = refargs.stated.label elseif refargs.publisher then reftext = refargs.publisher.label else reftext = refargs.url -- skab en linktekst ud fra url'en -- find startposition local j1 = string.find(reftext,'//',1,true) -- fjern første del af strengen til og med de to skråstreger, hvis de findes if j1 then reftext = string.sub(reftext,j1+2,string.len(reftext)) end if reftext ~= '' then -- hvis strengen ikke er tom -- find positionen af næste skråstreg i strengen local i1 = string.find(reftext,'/',1,true) -- brug kun den del af strengen der ligger før skråstregen, hvis den findes if i1 then reftext = string.sub(reftext,1,i1-1) end end end if reftext and reftext ~= '' then text = '['..refargs.url..' '..reftext..']' end end if refargs.publisher and text ~= '' and (refargs.title or refargs.stated) then text = text..', '..refargs.publisher.label end if refargs.stated and text ~= '' and (refargs.title or refargs.publisher) then text = text..', '..refargs.stated.label end if refargs.accessdate and text ~= '' then text = text..', '..'hentet '..refargs.accessdate end -- if refargs.importedfrom then text = text..'Importeret fra '..refargs.importedfrom.label..'. ' end mw.logObject(text,'text') return text end -- Get and format all references to a statement -- Append the references to text and return the new text -- If text is nil, return nil again local get_references = function(args, text, statement) -- This function is work in progess. -- parameter ref er sat til 'ja' hvis der ønskes referencer local kilderef = mw.text.trim(args['ref'] or '') if kilderef ~= 'ja' then return text end if not text then return nil end local references = statement.references -- refs er en tabel med de fundne referencer local refs = {} if not references or not next(references) then --refs[1] = '\nOplysningen er fra [[d:' .. the_qid .. '#' .. statement.id .. '|Wikidata]], som ikke har kilder til den.' else for _ ,ref in pairs(references) do local reference = get_reference(ref) if reference ~= '' then table.insert(refs, reference) end end end -- indholdet af fodnoten local indhold = '' -- antallet af fundne referencer if #refs == 1 then indhold = refs[1]..' (fra [[d:' .. the_qid .. '#' .. statement.id .. '|Wikidata]]).' elseif #refs > 1 then indhold = table.concat(refs, '.<br />')..' (fra [[d:' .. the_qid .. '#' .. statement.id .. '|Wikidata]]).' end if indhold ~= '' then mw.logObject(indhold,'indhold') text = text .. the_frame:extensionTag{ name = 'ref', content = indhold, args = { name = statement.id } } end return text end -- Looks at the arguments 'sprog' og 'skrivsprog' in args -- Returns 3 values: 1) get_all: true if all languages are wanted -- 2) show_language: true if language name is wanted -- 3) a table with keys for wanted languages. local get_lang_args = function(args) local languages = mw.text.trim(args.sprog or preferred_language) local show_language = mw.text.trim(args.skrivsprog or '') == 'ja' local get_all = false local wanteds = {} if languages == 'alle' then get_all = true else for key in mw.text.gsplit(languages, '%s*,%s*') do wanteds[key] = true end end return get_all, show_language, wanteds end -- Get values from a qualifier with data type time -- Insert the values in the table given as first argument -- The table elements are tables with the unformatted and the formatted value -- Return the table local get_time_qualifier = function(args, times, qualifiers) if qualifiers then for key, qualifier in pairs(qualifiers) do if qualifier.snaktype == "value" then local value = qualifier.datavalue.value local text = p.format_time(args, value) if text then table.insert(times, { value.time, text }) end end end end return times end -- combine the formated dates in the second element of the element in the dates table local combine_dates = function(dates) local text = '' if dates and dates[1] then text = dates[1][2] end for i = 2, #dates do text = text .. '/' .. dates[i][2] end return text end -- Get time values from the qualifiers and add them to the table times -- The elements of times are tables with unformated and formated time values -- Returns the times table local get_qualifier_times = function(args, times, qualifiers) if qualifiers then get_time_qualifier(args, times, qualifiers.P585) -- P585 is point of time local starts = get_time_qualifier(args, {}, qualifiers.P580) -- P580 is start time local ends = get_time_qualifier(args, {}, qualifiers.P582) -- P582 is end time if #starts > 0 then -- There can more than one start time, e.g. if the sources don't agree if #ends > 0 then -- Period with start and end time table.insert(times, { starts[1][1], combine_dates(starts) .. '-' .. combine_dates(ends) } ) else -- Only start time table.insert(times, { starts[1][1], 'fra ' .. combine_dates(starts) } ) end else if #ends > 0 then -- Only end time table.insert(times, { ends[1][1], 'til ' .. combine_dates(ends) } ) end end end return times end -- Sort and combine the qualifier time values in the table times. -- The elements of times are tables with unformated and formated time values. -- Returns text ready to append to the value. local format_qualifier_times = function(times) local text = '' if #times > 0 then table.sort(times, function (a,b) -- Use the unformated ISO 8601 time string for sorting local signa, signb = a[1]:sub(1, 1), b[1]:sub(1, 1) if signa == '+' then if signb == '+' then return a[1] < b[1] -- 2 AD times: The higher number is greater else return false -- AD time is greater than BC time end else if signb == '+' then return true -- BC time is lesser than AD time else return a[1] > b[1] -- 2 BC times: The higher number is lesser end end end) text = text .. ' (' .. times[1][2] for i = 2, #times do text = text .. ', ' .. times[i][2] end text = text .. ')' end return '<small>'..text..'</small>' end -- round the number 'n' to use max. 'decimals' decimals local function round(n, decimals) return tonumber(string.format('%.' .. decimals .. 'f', n)) end --[[ Convert a signed decimal degree to degrees, arch minutes and direction letter If 'round_to_integer' is true, round the minute value to an integer ]] local function convert_to_dm(degrees, posdir, negdir, round_to_integer) local dir if degrees < 0 then degrees = -degrees dir = negdir else dir = posdir end local d = math.floor(degrees) local m = (degrees - d) * 60 if round_to_integer then m = round(m, 0) end if m == 60 then d, m = d + 1, 0 end return d, m, dir end -- Convert a signed decimal degree to degrees, arch minutes, arch seconds and direction letter local function convert_to_dms(degrees, posdir, negdir) local d, minutes, dir = convert_to_dm(degrees, posdir, negdir) local m = math.floor(minutes) local s = (minutes - m) * 60 if s == 60 then if m == 59 then d, m, s = d + 1, 0, 0 else m, s = m + 1, 0 end end return d, m, s, dir end -- Avoid minute and second values rounded up 60 local function convert_60_seconds(degrees, minutes, seconds) if seconds == 60 then seconds = 0 if minutes == 59 then degrees, minutes = degrees + 1, 0 else minutes = minutes + 1 end end return degrees, minutes, seconds end local function format_coordinates(args, value) local lat = value.latitude local lon = value.longitude local precision = value.precision or 0 local format = args.format local coordArgs local coordArgsFormat local roundedPrecision = string.format('%.1e', precision) -- The rounded precision will have the format 'd.d1e±dd' if precision >= 1 then --[[ No fractions of degrees, so both formats will present the same way. ]] coordArgs = { round(lat, 0), round(lon, 0) } elseif (format ~= 'dec' and roundedPrecision == '1.7e-02') or (format == 'dms' and precision >= 0.01) then --[[ Convert to degrees and minutes to get the most accurate value if the precision is 1 arch minute and the format is not dec. Also Convert to degrees and minutes if dms is requested and precsion is in range. ]] local lat_d, lat_m, lat_NS = convert_to_dm(lat, 'N', 'S', true) local lon_d, lon_m, lon_EW = convert_to_dm(lon, 'E', 'W', true) coordArgs = { lat_d, lat_m, lat_NS, lon_d, lon_m, lon_EW } coordArgsFormat = 'dm' elseif roundedPrecision == '2.8e-04' or roundedPrecision == '2.8e-05' or roundedPrecision == '2.8e-06' or roundedPrecision == '2.8e-07' or format == 'dms' then --[[ Convert to degrees, minutes and seconds to get the most accurate value if the precision is 1, 1/10, 1/100 or 1/1000 arch second. Also convert to degrees, minutes and seconds if dms is requested and precsion is in range. ]] local lat_d, lat_m, lat_s, lat_NS = convert_to_dms(lat, 'N', 'S') local lon_d, lon_m, lon_s, lon_EW = convert_to_dms(lon, 'E', 'W') if precision > 0 then local decimals = tonumber(string.sub(roundedPrecision, -1)) - 4 if string.sub(roundedPrecision, 1, 1) == '1' then decimals = decimals + 1 end if decimals >= 0 then lat_s = round(lat_s, decimals) lat_d, lat_m, lat_s = convert_60_seconds(lat_d, lat_m, lat_s) lon_s = round(lon_s, decimals) lon_d, lon_m, lon_s = convert_60_seconds(lon_d, lon_m, lon_s) end end coordArgs = { lat_d, lat_m, lat_s, lat_NS, lon_d, lon_m, lon_s, lon_EW } coordArgsFormat = 'dms' else local decimals = tonumber(string.sub(roundedPrecision, -3)) if decimals <= 0 then coordArgs = { round(lat, -decimals), round(lon, -decimals) } else coordArgs = { lat, lon } end end if args.koordlink == 'nej' then -- no geoHack or other links if coordArgsFormat == 'dm' then return coordArgs[1] .. '°' .. coordArgs[2] .. '′' .. coordArgs[3] .. ' ' .. coordArgs[4] .. '°' .. coordArgs[5] .. '′' .. ((coordArgs[6] == 'E') and 'Ø' or 'V') elseif coordArgsFormat == 'dms' then return coordArgs[1] .. '°' .. coordArgs[2] .. '′' .. coordArgs[3] .. '″' .. coordArgs[4] .. ' ' .. coordArgs[5] .. '°' .. coordArgs[6] .. '′' .. coordArgs[7] .. '″' .. ((coordArgs[8] == 'E') and 'Ø' or 'V') else lat = coordArgs[1] lon = coordArgs[2] lat = (lat < 0) and (-lat .. '°S') or (lat .. '°N') lon = (lon < 0) and (-lon .. '°V') or (lon .. '°Ø') return lat .. ' ' .. lon end end local geoHackParameters = {} local dim = mw.text.trim(args.dim or '') if dim ~= '' then geoHackParameters[#geoHackParameters + 1] = 'dim:' .. dim end local scale = mw.text.trim(args.scale or '') if scale ~= '' then geoHackParameters[#geoHackParameters + 1] = 'scale:' .. scale end local type = mw.text.trim(args.type or '') if type ~= '' then geoHackParameters[#geoHackParameters + 1] = 'type:' .. type end local globe = value.globe -- The first 31 chars is 'http://www.wikidata.org/entity/', then comes Qid if globe ~= 'http://www.wikidata.org/entity/Q2' then -- Q2 is earth -- The globe name in lower case is used for the subpage name to Template:GeoTemplate geoHackParameters[#geoHackParameters + 1] = 'globe:' .. string.lower(mw.wikibase.getLabelByLang(string.sub(globe, 32), 'en')) end local region = mw.text.trim(args.region or '') if region ~= '' then geoHackParameters[#geoHackParameters + 1] = 'region:' .. region else local countries = mw.wikibase.getBestStatements(the_qid, 'P17') -- P17 is country if countries[1] and countries[1].mainsnak.snaktype == 'value' then local country = countries[1].mainsnak.datavalue.value.id country = data.countries[country] if country and country[1] then region = country[1] end end if region == '' and args.fetched_item_id then local countries = mw.wikibase.getBestStatements(args.fetched_item_id, 'P17') -- P17 is country if countries[1] and countries[1].mainsnak.snaktype == 'value' then local country = countries[1].mainsnak.datavalue.value.id country = data.countries[country] if country and country[1] then region = country[1] end end end if region ~= '' then geoHackParameters[#geoHackParameters + 1] = 'region:' .. region end end if #geoHackParameters > 0 then coordArgs[#coordArgs + 1] = table.concat(geoHackParameters, '_') end coordArgs.display = args.display coordArgs.format = format coordArgs.name = args.name return require('Modul:Coordinates')._coord(coordArgs) end -- Handle a qualifier -- Return new text inkl. the qualifier or nil to remove the statement from the results --[[ Return the raw value (timestamp) of the qualifier as second return value if use == seneste and the qualifier is a time value. ]] local get_qualifier = function(args, text, qual, format, formatwithout, use) if not qual then -- No such qualifier if use == 'med' then -- Only statements with the qualifier is wanted, so remove this statement return nil else -- Otherwise return the statement with the formatwithout applied -- Use the table version of string.gsub to avoid having to escape % chars return (string.gsub(formatwithout, '$1', { ['$1'] = text })) end end if use == 'uden' then -- Only statements without the qualifier is wanted, so remove this statement return nil end -- These are used for monolingual texts. We will only get values for them if necessary local get_all, show_language, wanteds = false, false, false -- Get the qualifier. There can be several values, loop over them and separate with comma local testUseValue = ( use ~= 'alle' and use ~= 'med' and use ~= 'seneste' and use ~= '' ) -- 'uden' er elimineret her local qualtext, qualpure = {}, {} local timestamp for _, q in pairs(qual) do if q.snaktype == 'novalue' then qualtext[#qualtext + 1] = 'ingen' elseif q.snaktype == 'somevalue' then qualtext[#qualtext + 1] = 'ukendt' else local datatype = q.datatype if datatype == 'time' then qualtext[#qualtext + 1] = p.format_time(args, q.datavalue.value) if use == 'seneste' then timestamp = q.datavalue.value.time end elseif datatype == 'monolingualtext' then if not wanteds then -- wanteds will be true if the language args are already fetched get_all, show_language, wanteds = get_lang_args(args) end if get_all or wanteds[q.datavalue.value.language] then if show_language then qualtext[#qualtext + 1] = mw.text.nowiki(q.datavalue.value.text) .. ' (' .. mw.language.fetchLanguageName(q.datavalue.value.language, preferred_language) .. ')' else qualtext[#qualtext + 1] = mw.text.nowiki(q.datavalue.value.text) end end elseif datatype == 'string' or datatype == 'commonsMedia' or datatype == 'external-id' then qualtext[#qualtext + 1] = mw.text.nowiki(q.datavalue.value) elseif datatype == 'url' then qualtext[#qualtext + 1] = q.datavalue.value elseif datatype == 'quantity' then qualtext[#qualtext + 1] = p.format_number(args, q.datavalue.value) elseif datatype == 'wikibase-item' then qualtext[#qualtext + 1] = p.get_label(args, q.datavalue.value.id, nil, nil) if testUseValue then -- q-value qualpure[#qualpure + 1] = q.datavalue.value.id -- label without link local label = mw.wikibase.getLabel(q.datavalue.value.id) if label then qualpure[#qualpure + 1] = label end end elseif datatype == 'globe-coordinate' then qualtext[#qualtext + 1] = format_coordinates(args, q.datavalue.value) elseif datatype == 'math' then qualtext[#qualtext + 1] = '<math>' .. q.datavalue.value .. '</math>' end end end if testUseValue then local function useValueInTable(tbl) for _, qualTextHere in pairs(tbl) do if qualTextHere == use then return true end end return false end if (not useValueInTable(qualtext) and (not useValueInTable(qualpure))) then return nil end end if #qualtext == 0 then -- No usable qualifiers. This happens if no qualifiers of type monolingualtext is in the right languages. return (use == 'med') and nil or (string.gsub(formatwithout, '$1', { ['$1'] = text })) end return (string.gsub(format, '$[12]', { ['$1'] = text, ['$2'] = table.concat(qualtext, ', ') })), timestamp end -- Handle requets for qualifiers for a statement -- text is the already formated statement -- Return the new text with qualifiers or nil to remove the statement from the results -- Return as second value a timestamp from the last call of get_qualifier if any local get_qualifiers = function(args, text, qualifiers, notime) if not notime and mw.text.trim(args.tid or '') == 'ja' then -- Check qualifiers for point of time, start time, and end time local times = get_qualifier_times(args, {}, qualifiers) text = text .. format_qualifier_times(times) end -- mw.logObject(qualifiers,'qualifiers') local qualno = 1 local timestamp repeat local qual = mw.text.trim(args['kvalifikator' .. tostring(qualno)] or '') if qual == '' then break end local format = mw.text.trim(args['kvalifikatorformat' .. tostring(qualno)] or '$1 ($2)') local formatwithout = mw.text.trim(args['kvalifikatorformatuden' .. tostring(qualno)] or '$1') local use = mw.text.trim(args['kvalifikatorbrug' .. tostring(qualno)] or 'alle') text, timestamp = get_qualifier(args, text, qualifiers and qualifiers[qual], format, formatwithout, use) qualno = qualno + 1 until not text return text, timestamp end -- Determine if the string 'name' is in the list 'list' med comma separated names -- Returns true if 'name' is in the list. local function inlist (name, list) for n in mw.text.gsplit(list, '%s*,%s*') do if n == name then return true end end return false end --[[ Handle commnon arguments for all "hent"-functions: the unnamed arguments 1 og 2, q, feltnavn, wikidata, ingen_wikidata. Get the best statements, that is statements with preferred rank is any, or else statements with normal rank. Return args, statements, return_now (the last contains a value to return immediately if not nil) Set shared local variables: frame, the_pid, the_qid ]] local get_statements = function(frame) the_frame = frame -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. local args = (frame == mw.getCurrentFrame()) and frame:getParent().args or frame.args -- If a second unnamed argument is present and not empty, return it unconditionally local input_parm = mw.text.trim(args[2] or "") if input_parm and (#input_parm > 0) then return nil, nil, input_parm end -- Test if there is an infobox fieldname, and if Wikidata should be used for that field local fieldname = mw.text.trim(args.feltnavn or '') if #fieldname > 0 then local blacklist = args.ingen_wikidata if blacklist and inlist(fieldname, blacklist) then -- The fieldname is blaklisted return nil, nil, '' end local whitelist = mw.text.trim(args.wikidata or '') if whitelist ~= 'alle' and whitelist ~= 'ja' and not inlist(fieldname, whitelist) then -- fieldname isn't on the list of allowed fieldnames return nil, nil, '' end end -- Get the item to use from either the parameter q or the item connected to the current page the_qid = mw.text.trim(args.q or '') if the_qid == '' then the_qid = mw.wikibase.getEntityIdForCurrentPage() if the_qid == nil then -- No entity, stop here return nil, nil, '' end end -- The property is first unnamed argument the_pid = mw.text.trim(args[1] or "") local statements = mw.wikibase.getBestStatements(the_qid, the_pid) if statements == nil or #statements == 0 then -- No data to fetch return nil, nil, '' end return args, statements end -- Make a link to a page if wanted from a label -- Make the link to the entity 'entity' if not nil, else to 'qid' -- Return '' if the value should be deleted (no article and kunlink=ja) p.make_link = function(args, label, entity, qid) -- Convert characters with special meaning in wikitext to HTML entities label = mw.text.nowiki(label) -- Use italics if requested local use_italics = mw.text.trim(args.kursiv or "") if use_italics == 'ja' then label = "''" .. label .. "''" end local link = mw.text.trim(args.link or "") if link == 'nej' then -- link is not wanted return label end local sitelink if entity then sitelink = entity:getSitelink() else sitelink = mw.wikibase.getSitelink(qid) end if sitelink == nil then -- link is not possible local kunlink = mw.text.trim(args.kunlink or "") if kunlink == 'ja' then return '' else return label end end if sitelink == label then return '[[' .. sitelink .. ']]' else return '[[' .. sitelink .. '|' .. label .. ']]' end end -- Make text with message, reference, and category about using a fallback language p.make_language_message = function(args, langcode, qid) local language = mw.language.fetchLanguageName(langcode, preferred_language) -- No language in parenthesis for now -- local text =' (' .. language .. ')' local text = '' local language_note = mw.text.trim(args.sprognote or '') if language_note ~= 'nej' then local ref_args = { name = 'sprog ' .. langcode .. qid } local language_notegroup = mw.text.trim(args.sprognotegroup or '') if language_notegroup ~= '' then ref_args.group = language_notegroup end text = text .. the_frame:extensionTag{ name = 'ref', content = string.format(fallback_note, language, qid), args = ref_args } end local language_cat = mw.text.trim(args.sprogkat or '') if language_cat ~= 'nej' and (language_note ~= 'nej' or language_cat == 'ja') then add_tracking_category(tracking_cats.fallback_category) end return text end -- Make a link a for a country or state if make_link is true, else just get the label. local make_country_link = function(country_id, make_link) local label = mw.wikibase.getLabel(country_id) if make_link then local sitelink = mw.wikibase.getSitelink(country_id) if sitelink then label = '[[' .. sitelink .. '|' .. mw.text.nowiki(label or sitelink) .. ']]' end end return label end -- Get the country (or countries) for a place. Return formatted link(s) to the country/countries, and country_id if unique local get_country = function(place_id, make_link) local statements = mw.wikibase.getBestStatements(place_id, 'P17') local text local country_id for _, statement in pairs(statements) do if statement.mainsnak.snaktype == 'value' then country_id = statement.mainsnak.datavalue.value.id if country_id == place_id then return -- The place is the country. Return nil for no result. end local link = make_country_link(country_id, make_link) if link then text = text and (text .. '/' .. link) or link end end end return text, #statements == 1 and country_id or nil end -- Get a value of type item from an entity if it is unique. local get_unique_item_value = function(entity, pid) local statements = entity:getBestStatements(pid) if statements and #statements == 1 and statements[1].mainsnak and statements[1].mainsnak.snaktype == 'value' then return statements[1].mainsnak.datavalue.value.id end return nil end -- Format the label with upper case, link, extras (party or country), and language note -- make_note is the item ID to link to if a note is wanted, or else nil -- If requested there is linked to 'entity', or 'qid' if no entity -- Return '' if the value should be deleted (no article and 'kunlink=ja') local format_label = function(args, format, text, extra_text, entity, qid, lang, use_ucfirst, make_note) if use_ucfirst then text = mw.getLanguage(lang):ucfirst(text) end local text = p.make_link(args, text, entity, qid) if make_note and text ~= '' then text = text .. p.make_language_message(args, lang, make_note) end if extra_text then return (string.gsub(format, '$[12]', { ['$1'] = text, ['$2'] = extra_text })) else return text end end -- Get the label of an item. -- Creates a link using the sitelink if it exists unless the link argument is set to no -- Converts the first character of the label to uppercase if use_ucfirst -- Finds and adds country, state and country, or political party for the item if requested in the args and get_extras is true -- Return '' if only links are requested (kunlink=ja) and no article exists p.get_label = function(args, qid, use_ucfirst, get_extras) -- In order to save memory we will only get the entire entity for qid if necessary. -- It isn't needed if country or political party isn't requsted, -- and the entity have a label in the preferred language -- Find out if which extra, if any, are requested, and get extra_format local extra_format local get_party local show_country local place if get_extras then extra_format = mw.text.trim(args.parti or '') if extra_format ~= '' then get_party = true else extra_format = mw.text.trim(args.land or '') if extra_format ~= '' then show_country = true else place = mw.text.trim(args.sted or '') == 'ja' if place then extra_format = '$1, $2' else get_extras = nil end end end end if not get_extras then -- Try for a label in the the preferred language local label = mw.wikibase.getLabelByLang(qid, preferred_language) if label then return format_label(args, nil, label, nil, nil, qid, preferred_language, use_ucfirst, nil) end end -- OK, we will need the entity to continue (for now) local entity = mw.wikibase.getEntity(qid) if not entity then return '' end local extra_text local country_id, tried_to_get_country_id -- Find political party of the item if requested if get_party then -- P102 is member of political party local party_id = get_unique_item_value(entity, 'P102') if party_id then -- First try a shortname/abbreviation for the party, P1813 is short name local shortname_statements = mw.wikibase.getBestStatements(party_id, 'P1813') for key, statement in pairs(shortname_statements) do if statement.mainsnak.snaktype == 'value' and statement.mainsnak.datavalue.value.language == 'da' then extra_text = statement.mainsnak.datavalue.value.text break -- one is enough. As we don't know which is best, take the first end end if not extra_text then -- No shortname, get the label local extra_text = mw.wikibase.getLabelByLang(party_id, preferred_language) end if extra_text then extra_text = p.make_link(args, extra_text, nil, party_id) end end else -- Party was not requested. Get country if requested if (show_country or place) and not data.no_country[qid] then local make_link = mw.text.trim(args.link or "") ~= 'nej' extra_text, country_id = get_country(qid, make_link) tried_to_get_country_id = true if place and data.show_state[country_id] then local unit_id = qid local state_id repeat -- Walk though administrative units until we come to the country, and then show the last unit before country local statements = mw.wikibase.getBestStatements(unit_id, 'P131') -- P131 is 'located in the administrative territorial entity' if statements[1] and statements[1].mainsnak.snaktype == 'value' then state_id = unit_id -- previous value unit_id = statements[1].mainsnak.datavalue.value.id else state_id = nil -- the chain is broken break; end until unit_id == country_id if state_id and state_id ~= qid then local link = make_country_link(state_id, make_link) if link then extra_text = link .. ', ' .. extra_text end end end end end -- Try the preferred language local label, lang = entity:getLabelWithLang(preferred_language) if lang == preferred_language then return format_label(args, extra_format, label, extra_text, entity, nil, lang, use_ucfirst, nil) end -- Next try the local language if the item is located in certain countries if not country_id and not tried_to_get_country_id then -- P17 is country country_id, tried_to_get_country_id = get_unique_item_value(entity, 'P17'), true end if country_id then local fallback = fallback_languages_after_country[country_id] if fallback then local label, lang = entity:getLabelWithLang(fallback) if lang == fallback then return format_label(args, extra_format, label, extra_text, entity, nil, lang, use_ucfirst, nil) end end if country_id == 'Q159' or -- Q159 is Russia country_id == 'Q34266' or -- Q34266 is Russian Empire country_id == 'Q15180' then -- Q15180 is Soviet Union add_tracking_category(tracking_cats.category_missing_russian_name) end end -- Find out if the item is a human local ishuman = nil -- P31 is instance of local instanceof = entity:getBestStatements('P31') for key, statement in pairs(instanceof) do -- Q5 is human if statement.mainsnak.snaktype == 'value' and statement.mainsnak.datavalue.value.id == 'Q5' then ishuman = true break end end if ishuman then -- Next for humans try first group of fallback languags for humans (Norgewian and Swedish) for i, fallback in ipairs(fallback_languages_humans) do local label, lang = entity:getLabelWithLang(fallback) if lang == fallback then return format_label(args, extra_format, label, extra_text, entity, nil, lang, use_ucfirst, nil) end end -- Next for humans try the language of their country if there is one main language -- and it is written in a Latin script (the table of these is probably incomplete) -- P27 is country of citizenship local citizenship = get_unique_item_value(entity, 'P27') if citizenship then local fallback = fallback_languages_for_persons[citizenship] if fallback then local label, lang = entity:getLabelWithLang(fallback) if lang == fallback then return format_label(args, extra_format, label, extra_text, entity, nil, lang, use_ucfirst, nil) end end if citizenship == 'Q159' or -- Q159 is Russia citizenship == 'Q34266' or -- Q34266 is Russian Empire citizenship == 'Q15180' then -- Q15180 is Soviet Union add_tracking_category(tracking_cats.category_missing_russian_name) end end add_tracking_category(tracking_cats.category_human_missing_name) end -- Try the fallback languages for i, fallback in ipairs(fallback_languages) do local label, lang = entity:getLabelWithLang(fallback) if lang == fallback then return format_label(args, extra_format, label, extra_text, entity, nil, lang, use_ucfirst, qid) end end -- Last resort: try any label local labels = entity.labels if labels then for lang,labeltable in pairs(labels) do if lang then return format_label(args, extra_format, labeltable.value, extra_text, entity, nil, lang, use_ucfirst, qid) else return '' -- ingen label hos wikidata resulterer i manglende tekst (kun evt. et blyantikon) end break end end return '' end p.format_statement_group = function(args, statements, startrange, endrange, use_ucfirst) local statement = statements[startrange] local text = nil if statement.sortkey == 'novalue' then text = mw.text.trim(args.ingen or "") if (text == '') then return nil end elseif statement.sortkey == "somevalue" then text = mw.text.trim(args.ukendt or "") if (text == '') then return nil end else text = p.get_label(args, statement.sortkey, use_ucfirst, true) if (text == '') then return nil end -- if the entity is a timezone in Russia, then add the MSK time if requested if mw.text.trim(args.msk or '') == 'ja' and msk_timezones[statement.sortkey] then text = text .. msk_timezones[statement.sortkey] end -- Go through all statements for time qualifiers if requested if mw.text.trim(args.tid or '') == 'ja' then local times = {} for i = startrange, endrange - 1 do local qualifiers = statements[i].qualifiers get_qualifier_times(args, times, qualifiers) end text = text .. format_qualifier_times(times) end end -- handle qualifier arguments except for "tid" which may be used for statement groups -- and is handled separately above. When grouping is used, this call will have no effect -- because the qualifier arg will have turned grouping off in hent_emne(). --[[ Transfer item title to the args for possibly use to find region code based on country for a coordinate qualifier ]] if statement.mainsnak.snaktype == 'value' then args.fetched_item_id = statement.mainsnak.datavalue.value.id end text = get_qualifiers(args, text, statement.qualifiers, true) text = get_references(args, text, statement) return text end -- format the list of statements with the wanted separator p.output_all_statements = function(args, output, mere_end_maks) -- Avoid empty lists if #output == 0 then -- No tracking categories for empty results, as infoboxes or others may test if the result is empty or not return '' end -- Prepare an icon with link to Wikidata local icon = '' if mw.text.trim(args.ikon or '') == 'ja' then icon = ' [[File:Blue pencil.svg|frameless|text-top|5px|alt=Rediger på Wikidata|link=d:' .. the_qid .. '#' .. the_pid .. '|Rediger på Wikidata]]' end local max = tonumber(args.maks or 1e6) local number = math.min(#output, max) local suffix if number == 1 then suffix = mw.text.trim(args.ental or '') else suffix = mw.text.trim(args.flertal or '') end local list = args.liste or '' if (list == 'ja') then if mere_end_maks and mere_end_maks ~= '' then mere_end_maks = '</li><li>' .. mere_end_maks else mere_end_maks = '' end return '<ul><li>' .. table.concat(output, '</li><li>', 1, number) .. mere_end_maks .. icon .. '</li></ul>' .. suffix .. tracking_categories else local separator = args.adskil or ', ' if mere_end_maks and mere_end_maks ~= '' then mere_end_maks = ' ' .. mere_end_maks else mere_end_maks = '' end return table.concat(output, separator, 1, number) .. mere_end_maks .. icon .. suffix .. tracking_categories end end p.hent_emne = function(frame) local args, statements, return_now = get_statements(frame) if return_now then return return_now end -- Sort the statements after snaktype (value, novalue, somevalue) and id -- This makes it possible to find and group equal values together for key, statement in pairs(statements) do if statement.mainsnak.snaktype == 'value' then if statement.mainsnak.datatype ~= 'wikibase-item' then -- The property has a wrong datatype, ignore it. return '' end statement.sortkey = statement.mainsnak.datavalue.value.id else statement.sortkey = statement.mainsnak.snaktype end end table.sort(statements, function (a,b) return (a.sortkey < b.sortkey) end) if #statements > 5 then -- finder sider hvor meget hentes fra Wikidata if the_pid =='P463' then add_tracking_category(tracking_cats.many_p463_category) elseif the_pid =='P106' and #statements > 10 then add_tracking_category(tracking_cats.tiplus_p106_category) elseif the_pid =='P106' then add_tracking_category(tracking_cats.many_p106_category) elseif the_pid =='P1344' then add_tracking_category(tracking_cats.many_p1344_category) elseif the_pid =='P802' then add_tracking_category(tracking_cats.many_p802_category) elseif the_pid =='P800' then add_tracking_category(tracking_cats.many_p800_category) elseif the_pid =='P737' then add_tracking_category(tracking_cats.many_p737_category) elseif the_pid =='P166' then add_tracking_category(tracking_cats.many_p166_category) end end local output = {} local upper_case_labels = mw.text.trim(args.medstort or '') local firstvalue = true local qual1 = mw.text.trim(args.kvalifikator1 or '') local no_statement_grouping = qual1 ~= '' -- Go thru the statements and format them for displaying local startrange = 1 local endrange = 1 local only = mw.text.trim(args.kun or '') -- We need to keep track of the maximal allowed number of results here, so references -- made with frame:extensionTag() for removed results will not stay behind. local max = tonumber(args.maks) or 1e6 -- if no limit then set some limit we will never reach while max > 0 and startrange <= #statements do local sortkey = statements[startrange].sortkey while endrange <= #statements and statements[endrange].sortkey == sortkey do endrange = endrange + 1 if no_statement_grouping then -- We have qualifiers to check for each statement, so we cannot group -- statements with equal values together. break end end -- Check if only results with a certain value is requested if only == '' or only == sortkey then local use_ucfirst = upper_case_labels == 'alle' or (upper_case_labels == 'ja' and firstvalue) local text = p.format_statement_group(args, statements, startrange, endrange, use_ucfirst) if text then output[#output + 1] = text max = max - 1 firstvalue = false end end startrange = endrange end local mere_end_maks = nil -- en tilføjelse der fortæller, at ikke alt vises, fordi listen er længere end maks if tonumber(args.maks) and #statements > tonumber(args.maks) then if args.mere_end_maks then -- Så en tom streng kan bruges til at fjerne default-værdien mere_end_maks = mw.text.trim(args.mere_end_maks) else mere_end_maks = 'med flere' end end return p.output_all_statements(args, output, mere_end_maks) end --[[ Process statements and return the formated result. If the parameter kvalifikatorbrog=seneste is used and the qualifier is a type time, return only the statement value for the latest qualifier value and at most one. ]] local function process_statements(statements, type, format_func, args) local output = {} local references = {} local latest -- latest timestamp found for earlier processed statements local timestamp -- timestamp for actual statement local dropped_earlier_value -- true if values with earlier timestamps than the latest is dropped local dropped_latest_value -- true if more than one value had the latest timestamp -- Go through the statements and format them for displaying for _, statement in pairs(statements) do local text = nil if statement.mainsnak.snaktype == 'value' then if statement.mainsnak.datatype == type then text = format_func(args, statement.mainsnak.datavalue.value) end elseif statement.mainsnak.snaktype == 'novalue' then text = mw.text.trim(args.ingen or "") elseif statement.mainsnak.snaktype == 'somevalue' then text = mw.text.trim(args.ukendt or "") end if text then text, timestamp = get_qualifiers(args, text, statement.qualifiers) if text and text ~= '' then if latest then --[[ Replace the previous value if the new timestamp is later than the current latest value, and else drop this value. ]] if timestamp and timestamp >= latest then if timestamp == latest then dropped_latest_value = true else output[1] = text references[1] = statement latest = timestamp dropped_earlier_value = true dropped_latest_value = false end end elseif timestamp then --[[ This is the first value with a timestamp, as latest is nil. Replace possible previous value(s) with the new value. ]] output = { [1] = text } references = { [1] = statement } latest = timestamp else output[#output + 1] = text references[#references + 1] = statement end end end end for key, text in pairs(output) do output[key] = get_references(args, text, references[key]) end if dropped_latest_value then add_tracking_category(tracking_cats.dropped_latest_value) elseif dropped_earlier_value then add_tracking_category(tracking_cats.dropped_earlier_value) end return p.output_all_statements(args, output, nil) end -- Format a time value -- Return formatted text for the date p.format_time = function(args, value) -- Parse the ISO 8601 time value -- The format is like '+2000-00-00T00:00:00Z'. -- For now the value can only contain date. Their is no timezone or time. local sign, year, month, day = string.match(value.time, '^([%+-])0*(%d+)-0?(%d+)-0?(%d+)T') if not sign then -- No match. We can consider an error message or category for this, but ignore for now return nil end -- handle year and AD/BC local bc_text = '' -- text for AD or BC if sign == '-' then -- Year 0 doesn't exist, year 1,2,3 BC etc is given as -1,-2,-3 etc. -- (or maybe also in some cases as 0,-1,-2 etc.?) -- (see also [[d:Help:Dates#Years BC]]) bc_text = bc end if value.precision >= 9 then -- precision is year or greater local linkdato = bc_text == '' and mw.text.trim(args['linkdato'] or "") == 'ja' local date if linkdato then date = '[['..year..']]' .. bc_text else date = year .. bc_text end local yearonly = mw.text.trim(args['kunår'] or "") == 'ja' if not yearonly and value.precision >= 10 then -- precision is month or greater: Prepend the month if linkdato then if value.precision >= 11 then date = months[month] .. ']]'.. date end else date = months[month] .. date end if value.precision >= 11 then -- precision is day or greater: Prepend the day date = day .. '. ' .. date if linkdato then date = '[['..date end -- Compare the date with another date and calculate age if requested local agepid = mw.text.trim(args['alder'] or "") if agepid ~= '' then local ageformat = mw.text.trim(args['alderformat'] or "$1 ($3 år)") local agestatements = mw.wikibase.getBestStatements(the_qid, agepid) local agevalue = agestatements and #agestatements == 1 and agestatements[1].mainsnak and agestatements[1].mainsnak.snaktype == 'value' and agestatements[1].mainsnak.datavalue.value if agevalue and agevalue.precision >= 11 then local agedate = p.format_time({['kunår']=args['kunår']}, agevalue) local age local agesign, ageyear, agemonth, ageday = string.match(agevalue.time, '^([%+-])0*(%d+)-0?(%d+)-0?(%d+)T') -- First get the difference in the years. Remember that year 0 doesn't exist. if agesign == '-' then if sign == '-' then age = tonumber(ageyear) - tonumber(year) -- e.g. 100 BC - 50 BC else age = tonumber(ageyear) + tonumber(year) - 1 -- e.g. 10 BC - 40 AD end else if sign == '-' then age = 1 - tonumber(year) - tonumber(ageyear) -- e.g 40 AD - 10 BC (negative gives no sense) else age = tonumber(year) - tonumber(ageyear) -- e.g. 50 AD - 100 AD end end --Substract a year if the birthday isn't reached in the last year if tonumber(month) < tonumber(agemonth) or (tonumber(month) == tonumber(agemonth) and tonumber(day) < tonumber(ageday)) then age = age - 1 end return (string.gsub(ageformat, '$[123]', { ['$1'] = date, ['$2'] = agedate, ['$3'] = tostring(age) })) end -- if agevalue else -- if agepid -- Calcucate current age if requested unconditional (aldernu=ja) -- or there is no non-deprecated statements with a selected property local agenow = mw.text.trim(args['aldernu'] or "") if agenow ~= '' and (agenow == 'ja' or (mw.wikibase.isValidEntityId(agenow) and #mw.wikibase.getBestStatements(the_qid, agenow) == 0)) and sign == '+' -- only AD years then local ageformat = mw.text.trim(args['alderformat'] or "$1 ($3 år)") local now = os.date('*t') local age = now.year - tonumber(year) --Substract a year if the date isn't this year yet. if now.month < tonumber(month) or (now.month == tonumber(month) and now.day < tonumber(day)) then age = age - 1 end return (string.gsub(ageformat, '$[13]', { ['$1'] = date, ['$3'] = tostring(age) })) end -- if agenow end -- if agepid / else end -- if value.precision >= 11 then end -- if value.precision >= 10 then return date end --if value.precision >= 9 then -- precision is less than year local year_num = tonumber(year) if value.precision == 8 then -- precision is decade -- 10 (or any number in the period) seems to mean years 10-19, -- 20 (or any number in the period) seems to mean years 20-29, -- 2010 (or any number in the period) seems to mean years 2010-2019 if year_num <= 10 then return '1. årti' .. bc_text else -- Make sure the number ends with 0 return tostring(math.floor(year_num/10)*10) .. "'erne" .. bc_text end end if value.precision == 7 then -- precision is century -- 100 (or any number in the period) seems to mean years 1-100, -- 200 (or any number in the period) seems to mean years 101-200, -- 2100 (or any number in the period) seems to mean years 2001-2100 if year_num <= 100 then return '1. århundrede' .. bc_text else -- Make sure the number ends with 00 and convert the period one year down return tostring(math.floor((year_num - 1)/100)*100) .. '-tallet' .. bc_text end end -- precision less than century is not handled return nil -- if value.precision == 6 then -- precision is 1000 years -- if value.precision == 5 then -- precision is 10.000 years -- if value.precision == 4 then -- precision is 100.000 years -- if value.precision == 3 then -- precision is million years -- if value.precision == 2 then -- precision is 10 million years -- if value.precision == 1 then -- precision is 100 million years -- if value.precision == 0 then -- precision is 1 billion years end p.hent_tid = function(frame) local args, statements, return_now = get_statements(frame) if return_now then return return_now end if (the_pid =='P570' or the_pid =='P569') and #statements > 1 then -- mere end 1 resultat hentes fra Wikidata if the_pid =='P569' then -- fødselsdato add_tracking_category(tracking_cats.many_p569_category) end if the_pid =='P570' then -- dødsdato add_tracking_category(tracking_cats.many_p570_category) end end return process_statements(statements, 'time', p.format_time, args) end local insert_delimiters = function(number) -- first change the decimal mark to comma number = string.gsub(number, '%.', ',') repeat -- Find the group of 3 digits and insert delimiter local matches number, matches = string.gsub(number, "^(-?%d+)(%d%d%d)", '%1.%2') until matches == 0 return number end local make_the_number = function(args, amount, diff, unit, decimaldel, currency) local decimals = mw.text.trim(args.decimaler or '0') if decimals == 'smart' then if amount > 100 then decimals = '0' elseif amount > 10 then decimals = '1' elseif amount > 1 then decimals = '2' else decimals = '3' end elseif decimals == 'orig' then if decimaldel then decimals = tostring(string.len(decimaldel)) else decimals = '0' end else decimals = tostring(math.floor(tonumber(decimals) or 0)) end local forkort = mw.text.trim(args.forkort_store_tal or 'nej') local forkort_text = '' if forkort == 'ja' and amount >= 1e3 then -- større end tusind (10 i 3. potens) if amount < 1e6 then -- mindre end 1 million (10 i 6. potens) forkort_text = 'tusind'; amount = amount / 1e3; if diff > 0 then diff = diff / 1e3 end elseif amount < 1e9 then forkort_text = 'mio.'; amount = amount / 1e6; if diff > 0 then diff = diff / 1e6 end elseif amount < 1e12 then forkort_text = 'mia.'; amount = amount / 1e9; if diff > 0 then diff = diff / 1e9 end elseif amount < 1e15 then forkort_text = 'billioner'; amount = amount / 1e12; if diff > 0 then diff = diff / 1e12 end elseif amount < 1e18 then forkort_text = 'trillioner'; amount = amount / 1e15; if diff > 0 then diff = diff / 1e15 end else forkort_text = 'trilliarder'; amount = amount / 1e18; if diff > 0 then diff = diff / 1e18 end end end local text = '' local display_unit = mw.text.trim(args.visenhed or "") ~= 'nej' -- For currencies start with the currency, linked if possible if currency and display_unit then add_tracking_category (tracking_cats.category_currency) local link = mw.wikibase.getSitelink(currency) if link then text = '[[' .. link .. '|' .. unit .. ']] ' else add_tracking_category (tracking_cats.category_currency_no_link) text = unit .. ' ' end end -- First the amount text = text .. insert_delimiters(string.format('%.' .. decimals .. 'f', amount)) -- Second the variation if diff > 0 and mw.text.trim(args.visusikkerhed or "") ~= 'nej' then local difftext = string.format('%.' .. decimals .. 'f', diff) -- Don't show the diff it if is rounded to 0 if tonumber(difftext) ~= 0 then text = text .. '±' .. insert_delimiters(difftext) end end -- Third if forkort == 'ja' and forkort_text ~= '' then text = text .. ' ' .. forkort_text end -- Forth the unit, if not a currency if unit and not currency and display_unit then text = text .. ' ' .. unit end return text end -- Format a quantity value and return the formated value -- Also return the amount as a number if it a quantity with a recogniced unit -- (used to get area) p.format_number = function(args, value) local amount =tonumber(value.amount) local decimaldel = string.match(tostring(value.amount), '%d+%.(%d+)$') local diff1, diff2 = 0, 0 if value.lowerBound then diff1 = string.format("%0.13f", amount - tonumber(value.lowerBound)) end if value.upperBound then diff2 = string.format("%0.13f", tonumber(value.upperBound) - amount) end local diff = math.max(diff1, diff2) local unit = value.unit if unit == '1' then -- Number without unit local text = make_the_number(args, amount, diff, nil, decimaldel) -- We may have to find the area and calculate the density local densityformat = mw.text.trim(args['arealogtæthed'] or '') if densityformat ~= '' then local area_text, area_number, density_text -- P2046 is area local area_statements = mw.wikibase.getBestStatements(the_qid, 'P2046') if area_statements and #area_statements == 1 and area_statements[1].mainsnak.snaktype == 'value' then area_text, area_number = p.format_number({ enhed='km2', visenhed='nej', visusikkerhed=args.visusikkerhed, decimaler='smart' }, area_statements[1].mainsnak.datavalue.value) if area_number then density_text = p.format_number({ decimaler='smart' }, { amount=amount / area_number, unit='1' }) return (string.gsub(densityformat, '$[123]', { ['$1'] = text, ['$2'] = area_text, ['$3'] = density_text })) end end -- No area found. Return the value with densityformatwithout applied local densityformatwithout = mw.text.trim(args['arealogtætheduden'] or '$1') return (string.gsub(densityformatwithout, '$1', { ['$1'] = text })) end -- area and density was not asked for. return text end local unit_qid = string.match(unit, 'http://www%.wikidata%.org/entity/(Q%d+)$') if not unit_qid then -- Unknown unit format return nil end local wd_unit = wd_units[unit_qid] if not wd_unit then -- The unit is not in our table. Here we could read information -- about the unit entity. Maybe to be done later add_tracking_category (tracking_cats.category_unrecognized_unit) return make_the_number(args, amount, diff, nil, decimaldel) end local wanted_unit = mw.text.trim(args.enhed or "") if wanted_unit == '' and wd_unit.conv_to then wanted_unit = wd_unit.conv_to end local wanted = wanted_units[wanted_unit] if wanted and wd_unit.name ~= wanted_unit and wd_unit.type == wanted.type then if wd_unit.conv_plus then -- Ved denne type enheder (temperatur) skal nulpunktet forskydes med en addend amount = ((amount + wd_unit.conv_plus) * wd_unit.conv + wanted.conv_plus) * wanted.conv else amount = amount * wd_unit.conv * wanted.conv end diff = diff * wd_unit.conv * wanted.conv -- Usikkerheden skal ikke ændre nulpunkt return make_the_number(args, amount, diff, wanted.show_as, decimaldel), amount end local currency = (wd_unit.type == 'currency') and unit_qid return make_the_number(args, amount, diff, wd_unit.show_as, decimaldel, currency), amount end p.hent_tal = function(frame) local args, statements, return_now = get_statements(frame) if return_now then return return_now end if #statements > 1 then -- mere end 1 resultat hentes fra Wikidata if the_pid =='P1082' then -- indbyggertal add_tracking_category(tracking_cats.many_p1082_category) end end return process_statements(statements, 'quantity', p.format_number, args) end -- Handle datatypes string, url, commonsMedia, external-id which have similar structures p.hent_streng = function(frame) local args, statements, return_now = get_statements(frame) if return_now then return return_now end if #statements > 10 then -- finder sider hvor meget hentes fra Wikidata if the_pid =='P395' then add_tracking_category(tracking_cats.many_p395_category) elseif the_pid =='P281' then add_tracking_category(tracking_cats.many_p281_category) end end local output = {} -- For formating of strings. $1 in the format vil be replaced by the string local format = mw.text.trim(args.format or '') if format == '' then format = nil end local brugskabelon = mw.text.trim(args.brugskabelon or '') if brugskabelon == '' then brugskabelon = nil end -- Go thru the statements and format them for displaying for key, statement in pairs(statements) do local text = nil if statement.mainsnak.snaktype == 'value' then if statement.mainsnak.datatype == 'string' then text = mw.text.nowiki(statement.mainsnak.datavalue.value) elseif statement.mainsnak.datatype == 'url' or statement.mainsnak.datatype == 'commonsMedia' or statement.mainsnak.datatype == 'external-id' then text = statement.mainsnak.datavalue.value end if format and text then -- We have to escape any % in the found string with another % before using it as repl in string.gsub text = string.gsub(text, '%%', '%%%%') text = string.gsub(format, '$1', text) end if brugskabelon and text then text = the_frame:expandTemplate{ title = brugskabelon, args = { text } } end elseif statement.mainsnak.snaktype == 'novalue' then text = mw.text.trim(args.ingen or "") elseif statement.mainsnak.snaktype == 'somevalue' then text = mw.text.trim(args.ukendt or "") end if text then text = get_qualifiers(args, text, statement.qualifiers) text = get_references(args, text, statement) if text and text ~= '' then table.insert(output, text) end end end return p.output_all_statements(args, output, nil) end p.hent_tekst = function(frame) local args, statements, return_now = get_statements(frame) if return_now then return return_now end local output = {} local get_all, show_language, wanteds = get_lang_args(args) if #statements == 1 and mw.text.trim(args.eneste or '') == 'ja' then get_all = true end -- Go thru the statements and format them for displaying for key, statement in pairs(statements) do local text = nil if statement.mainsnak.snaktype == 'value' then if statement.mainsnak.datatype == 'monolingualtext' then if get_all or wanteds[statement.mainsnak.datavalue.value.language] then text = mw.text.nowiki(statement.mainsnak.datavalue.value.text) if show_language then text = text .. ' (' .. mw.language.fetchLanguageName(statement.mainsnak.datavalue.value.language, preferred_language) .. ')' end end end elseif statement.mainsnak.snaktype == 'novalue' then text = mw.text.trim(args.ingen or "") elseif statement.mainsnak.snaktype == 'somevalue' then text = mw.text.trim(args.ukendt or "") end if text then text = get_qualifiers(args, text, statement.qualifiers) text = get_references(args, text, statement) if text and text ~= '' then table.insert(output, text) end end end return p.output_all_statements(args, output, nil) end p.hent_koord = function(frame) local args, statements, return_now = get_statements(frame) if return_now then return return_now end return process_statements(statements, 'globe-coordinate', format_coordinates, args) end local function format_math(args, value) return '<math>' .. value .. '</math>' end p.hent_matematik = function(frame) local args, statements, return_now = get_statements(frame) if return_now then return return_now end return process_statements(statements, 'math', format_math, args) end -- Get Wikidata entity ID for the current page. -- Arguments: format: format string with $1 for the ID, ingen: text to return for no entity p.hent_id = function(frame) local args = (mw.getCurrentFrame()) and frame:getParent().args or frame.args -- Get the item to use from either the parameter q or the item connected to the current page local qid = mw.text.trim(args.q or '') if qid == '' then qid = mw.wikibase.getEntityIdForCurrentPage() end if qid then local format = mw.text.trim(args.format or '$1') return (string.gsub(format, '$1', { ['$1'] = qid })) else return mw.text.trim(args.ingen or '') end end return p </textarea><div id="mw-scribunto-console"></div><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Skabeloner der er brugt på denne side: </p></div><ul> <li><a href="/wiki/Skabelon:High-use" title="Skabelon:High-use">Skabelon:High-use</a> (<a href="/w/index.php?title=Skabelon:High-use&action=edit" title="Skabelon:High-use">vis kildekode</a>) (semibeskyttet)</li><li><a href="/wiki/Skabelon:Kryds" title="Skabelon:Kryds">Skabelon:Kryds</a> (<a href="/w/index.php?title=Skabelon:Kryds&action=edit" title="Skabelon:Kryds">redigér</a>) </li><li><a href="/wiki/Skabelon:Tjek" title="Skabelon:Tjek">Skabelon:Tjek</a> (<a href="/w/index.php?title=Skabelon:Tjek&action=edit" title="Skabelon:Tjek">redigér</a>) </li><li><a href="/wiki/Skabelon:Vis" title="Skabelon:Vis">Skabelon:Vis</a> (<a href="/w/index.php?title=Skabelon:Vis&action=edit" title="Skabelon:Vis">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Skabelon:Wikidata-parametre" title="Skabelon:Wikidata-parametre">Skabelon:Wikidata-parametre</a> (<a href="/w/index.php?title=Skabelon:Wikidata-parametre&action=edit" title="Skabelon:Wikidata-parametre">redigér</a>) </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">vis kildekode</a>) (skabelonredaktør-beskyttet)</li><li><a href="/wiki/Modul:Brug_Wikidata" title="Modul:Brug Wikidata">Modul:Brug Wikidata</a> (<a href="/w/index.php?title=Modul:Brug_Wikidata&action=edit" title="Modul:Brug Wikidata">vis kildekode</a>) (skabelonredaktør-beskyttet)</li><li><a href="/wiki/Modul:Brug_Wikidata/data" title="Modul:Brug Wikidata/data">Modul:Brug Wikidata/data</a> (<a href="/w/index.php?title=Modul:Brug_Wikidata/data&action=edit" title="Modul:Brug Wikidata/data">vis kildekode</a>) (skabelonredaktør-beskyttet)</li><li><a href="/wiki/Modul:Brug_Wikidata/dok" title="Modul:Brug Wikidata/dok">Modul:Brug Wikidata/dok</a> (<a href="/w/index.php?title=Modul:Brug_Wikidata/dok&action=edit" title="Modul:Brug Wikidata/dok">redigér</a>) </li><li><a href="/wiki/Modul:Documentation" title="Modul:Documentation">Modul:Documentation</a> (<a href="/w/index.php?title=Modul:Documentation&action=edit" title="Modul:Documentation">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Documentation/config" title="Modul:Documentation/config">Modul:Documentation/config</a> (<a href="/w/index.php?title=Modul:Documentation/config&action=edit" title="Modul:Documentation/config">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Documentation/styles.css" title="Modul:Documentation/styles.css">Modul:Documentation/styles.css</a> (<a href="/w/index.php?title=Modul:Documentation/styles.css&action=edit" title="Modul:Documentation/styles.css">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Effective_protection_expiry" title="Modul:Effective protection expiry">Modul:Effective protection expiry</a> (<a href="/w/index.php?title=Modul:Effective_protection_expiry&action=edit" title="Modul:Effective protection expiry">vis kildekode</a>) (semibeskyttet)</li><li><a href="/wiki/Modul:Effective_protection_level" title="Modul:Effective protection level">Modul:Effective protection level</a> (<a href="/w/index.php?title=Modul:Effective_protection_level&action=edit" title="Modul:Effective protection level">vis kildekode</a>) (semibeskyttet)</li><li><a href="/wiki/Modul:File_link" title="Modul:File link">Modul:File link</a> (<a href="/w/index.php?title=Modul:File_link&action=edit" title="Modul:File link">vis kildekode</a>) (semibeskyttet)</li><li><a href="/wiki/Modul:High-use" title="Modul:High-use">Modul:High-use</a> (<a href="/w/index.php?title=Modul:High-use&action=edit" title="Modul:High-use">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Message_box" title="Modul:Message box">Modul:Message box</a> (<a href="/w/index.php?title=Modul:Message_box&action=edit" title="Modul:Message box">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Message_box/configuration" title="Modul:Message box/configuration">Modul:Message box/configuration</a> (<a href="/w/index.php?title=Modul:Message_box/configuration&action=edit" title="Modul:Message box/configuration">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Message_box/styles.css" title="Modul:Message box/styles.css">Modul:Message box/styles.css</a> (<a href="/w/index.php?title=Modul:Message_box/styles.css&action=edit" title="Modul:Message box/styles.css">vis kildekode</a>) (etableret bruger-beskyttet)</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">vis kildekode</a>) (beskyttet)</li><li><a href="/wiki/Modul:Protection_banner" title="Modul:Protection banner">Modul:Protection banner</a> (<a href="/w/index.php?title=Modul:Protection_banner&action=edit" title="Modul:Protection banner">vis kildekode</a>) (semibeskyttet)</li><li><a href="/wiki/Modul:Protection_banner/config" title="Modul:Protection banner/config">Modul:Protection banner/config</a> (<a href="/w/index.php?title=Modul:Protection_banner/config&action=edit" title="Modul:Protection banner/config">vis kildekode</a>) (semibeskyttet)</li><li><a href="/wiki/Modul:Transclusion_count" title="Modul:Transclusion count">Modul:Transclusion count</a> (<a href="/w/index.php?title=Modul:Transclusion_count&action=edit" title="Modul:Transclusion count">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Transclusion_count/data" title="Modul:Transclusion count/data">Modul:Transclusion count/data</a> (<a href="/w/index.php?title=Modul:Transclusion_count/data&action=edit" title="Modul:Transclusion count/data">vis kildekode</a>) (etableret bruger-beskyttet)</li><li><a href="/wiki/Modul:Yesno" title="Modul:Yesno">Modul:Yesno</a> (<a href="/w/index.php?title=Modul:Yesno&action=edit" title="Modul:Yesno">vis kildekode</a>) (skabelonredaktør-beskyttet)</li></ul></div><p id="mw-returnto">Returnér til <a href="/wiki/Modul:Brug_Wikidata" title="Modul:Brug Wikidata">Modul:Brug 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="">Hentet fra "<a dir="ltr" href="https://da.wikipedia.org/wiki/Modul:Brug_Wikidata">https://da.wikipedia.org/wiki/Modul:Brug_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">Privatlivspolitik</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Om">Om Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Generelle_forbehold">Forbehold</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Udviklere</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/da.wikipedia.org">Statistik</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie-erklæring</a></li> <li id="footer-places-mobileview"><a href="//da.m.wikipedia.org/w/index.php?title=Modul:Brug_Wikidata&action=edit&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobilvisning</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-6b7f745dd4-9ct64","wgBackendResponseTime":212,"wgPageParseReport":{"limitreport":{"cputime":"0.004","walltime":"0.006","ppvisitednodes":{"value":18,"limit":1000000},"postexpandincludesize":{"value":615,"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-6b7f745dd4-9ct64","timestamp":"20241125094054","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>