CINXE.COM

View source for Module:Information - Wikimedia Commons

<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>View source for Module:Information - Wikimedia Commons</title> <script>(function(){var className="client-js";var cookie=document.cookie.match(/(?:^|; )commonswikimwclientpreferences=([^;]+)/);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":"d2c7f790-8e6a-43dd-9ede-e8fff4d71b8d","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Module:Information","wgTitle":"Information","wgCurRevisionId":905700166,"wgRevisionId":0,"wgArticleId":73831897,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"], "wgCategories":[],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Module:Information","wgRelevantArticleId":73831897,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["templateeditor"],"wgRestrictionMove":["templateeditor"],"wgNoticeProject":"commons","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":false,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":20000,"wgCodeEditorCurrentLanguage":"lua","wgCentralAuthMobileDomain":false,"upwizPropertyTitles":{"P180":"Main subjects visible in this work"},"upwizPropertyPlaceholders":{"P180":"e.g., Angolan giraffe"},"upwizPropertyCopyLabels":{"P180":"Main subjects"},"wgEditSubmitButtonLabelPublish" :true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wbmiDefaultProperties":["P180"],"wbmiPropertyTitles":{"P180":"Items portrayed in this file"},"wbmiPropertyTypes":{"P180":"wikibase-item"},"wbmiRepoApiUrl":"/w/api.php","wbmiHelpUrls":{"P180":"https://commons.wikimedia.org/wiki/Special:MyLanguage/Commons:Depicts"},"wbmiExternalEntitySearchBaseUri":"https://www.wikidata.org/w/api.php","wbmiSupportedDataTypes":["wikibase-item","string","quantity","time","monolingualtext","external-id","globe-coordinate","url"],"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.gadget.Long-Image-Names-in-Categories":"ready","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.styles.legacy":"ready","ext.charinsert.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","codex-search-styles":"ready","ext.uls.pt":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.codeEditor","ext.scribunto.edit","mediawiki.action.edit.collapsibleFooter","site","mediawiki.page.ready","skins.vector.legacy.js","ext.centralNotice.geoIP","ext.charinsert","ext.gadget.Slideshow","ext.gadget.ZoomViewer","ext.gadget.CollapsibleTemplates","ext.gadget.fastcci","ext.gadget.Stockphoto","ext.gadget.WatchlistNotice","ext.gadget.AjaxQuickDelete","ext.gadget.WikiMiniAtlas","ext.gadget.LanguageSelect","ext.gadget.PictureOfTheYearEnhancements","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.wikimediaEvents.wikibase","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface", "ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=codex-search-styles%7Cext.charinsert.styles%7Cext.codeEditor.styles%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cskins.vector.styles.legacy&amp;only=styles&amp;skin=vector"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.gadget.Long-Image-Names-in-Categories&amp;only=styles&amp;skin=vector"> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector"> <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="View source for Module:Information - Wikimedia Commons"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//commons.m.wikimedia.org/wiki/Module:Information"> <link rel="apple-touch-icon" href="/static/apple-touch/commons.png"> <link rel="icon" href="/static/favicon/commons.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikimedia Commons"> <link rel="EditURI" type="application/rsd+xml" href="//commons.wikimedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://commons.wikimedia.org/wiki/Module:Information"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="Wikimedia Commons Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="codeeditor-loading skin-vector-legacy mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-828 ns-subject page-Module_Information rootpage-Module_Information skin-vector action-edit"><div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div id="siteNotice"><!-- CentralNotice --></div> <div class="mw-indicators"> </div> <h1 id="firstHeading" class="firstHeading mw-first-heading">View source for Module:Information</h1> <div id="bodyContent" class="vector-body"> <div id="contentSub"><div id="mw-content-subtitle">← <a href="/wiki/Module:Information" title="Module:Information">Module:Information</a></div></div> <div id="contentSub2"></div> <div id="jump-to-nav"></div> <a class="mw-jump-link" href="#mw-head">Jump to navigation</a> <a class="mw-jump-link" href="#searchInput">Jump to search</a> <div id="mw-content-text" class="mw-body-content"><p>You do not have permission to edit this page, for the following reasons: </p> <ul class="permissions-errors"><li class="mw-permissionerror-protectedpagetext"><div class="mw-parser-output"> <div id="mw-protectedpagetext"> <style data-mw-deduplicate="TemplateStyles:r919301499">.mw-parser-output .fmbox{clear:both;margin:0.2em 0;width:100%;border:1px solid #a2a9b1;background-color:var(--background-color-interactive-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .fmbox-warning{border:1px solid #bb7070;background-color:#ffdbdb}.mw-parser-output .fmbox-editnotice{background-color:transparent}.mw-parser-output .fmbox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .fmbox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .fmbox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .fmbox .mbox-invalid-type{text-align:center}@media screen{html.skin-theme-clientpref-night .mw-parser-output .fmbox-warning{background-color:#300}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .fmbox-warning{background-color:#300}}</style><table class="plainlinks fmbox fmbox-editnotice" role="presentation"><tbody><tr><td class="mbox-image"><figure class="mw-halign-left" typeof="mw:File"><a href="/wiki/File:Template-protection-shackle-brackets_2.svg" class="mw-file-description"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/Template-protection-shackle-brackets_2.svg/100px-Template-protection-shackle-brackets_2.svg.png" decoding="async" width="100" height="100" class="mw-file-element" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/Template-protection-shackle-brackets_2.svg/150px-Template-protection-shackle-brackets_2.svg.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/Template-protection-shackle-brackets_2.svg/200px-Template-protection-shackle-brackets_2.svg.png 2x" data-file-width="512" data-file-height="512" /></a><figcaption></figcaption></figure></td><td class="mbox-text"><dl><dt style=""><strong style="font-size:130%">This page is currently protected, and can be edited only by <a href="/wiki/Commons:Template_editor" class="mw-redirect" title="Commons:Template editor">template editors</a> and <a href="/wiki/Commons:A" class="mw-redirect" title="Commons:A">administrators</a>.</strong></dt></dl> <ul><li>Some <a href="/wiki/Commons:Templates" title="Commons:Templates">templates</a> and site interface pages are permanently <a href="/wiki/Commons:Page_protection#Types_of_protection" class="mw-redirect" title="Commons:Page protection">protected</a> due to visibility or risk.</li> <li>The reason for protection can be found in the <span class="plainlinks"><a class="external text" href="https://commons.wikimedia.org/w/index.php?title=Special:Log&amp;type=protect&amp;page=Module:Information">protection log</a></span>.</li> <li>You can <a href="/wiki/Module_talk:Information" title="Module talk:Information">discuss this page</a> with others. If you have noticed an error or have a suggestion for a simple change, start a <span class="plainlinks"><a class="external text" href="https://commons.wikimedia.org/w/index.php?title=Module_talk:Information&amp;action=edit&amp;section=new">new section</a></span> and insert the text <code>&#123;{edit request}&#125;</code> followed by your request. A template editor or an administrator may then make the change on your behalf.</li> <li>You may also test proposed changes in the <a href="/wiki/Module:Information/sandbox" title="Module:Information/sandbox">template's sandbox</a>.</li> <li>You may <a href="/wiki/Commons:Administrators%27_noticeboard/Blocks_and_protections" title="Commons:Administrators&#39; noticeboard/Blocks and protections">request unprotection</a> of the page.</li></ul></td></tr></tbody></table></div></div></li></ul> <li class="mw-permissionerror-globalblocking-blockedtext-range"><b>Your IP address is in a range that has been <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Global_blocks" class="extiw" title="m:Special:MyLanguage/Global blocks">blocked on all Wikimedia Foundation wikis</a>.</b> <p>The block was made by <a href="/wiki/User:Jon_Kolbert" title="User:Jon Kolbert">‪Jon Kolbert‬</a>. The reason given is <i><a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/NOP" class="extiw" title="m:Special:MyLanguage/NOP">Open proxy/Webhost</a>: See the <a href="https://meta.wikimedia.org/wiki/WM:OP/H" class="extiw" title="m:WM:OP/H">help page</a> if you are affected </i>. </p> <ul><li>Start of block: 15:12, 27 August 2023</li> <li>Expiry of block: 15:12, 27 August 2028</li></ul> <p>Your current IP address is 8.222.208.146. The blocked range is 8.222.128.0/17. </p><p>Please include all above details in any queries you make. If you believe you were blocked by mistake, you can find additional information and instructions in the <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/No_open_proxies" class="extiw" title="m:Special:MyLanguage/No open proxies">No open proxies</a> global policy. </p> Otherwise, to discuss the block please <a href="https://meta.wikimedia.org/wiki/Steward_requests/Global" class="extiw" title="m:Steward requests/Global">post a request for review on Meta-Wiki</a>. You could also send an email to the <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Stewards" class="extiw" title="m:Special:MyLanguage/Stewards">stewards</a> <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/VRT" class="extiw" title="m:Special:MyLanguage/VRT">VRT</a> queue at <kbd>stewards@wikimedia.org</kbd> including all above details.</li><hr /> <p>You can view and copy the source of this page. </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="en" dir="ltr" name="wpTextbox1">--[[ __ __ _ _ ___ __ _ _ | \/ | ___ __| |_ _| | ___ _|_ _|_ __ / _| ___ _ __ _ __ ___ __ _| |_(_) ___ _ __ | |\/| |/ _ \ / _` | | | | |/ _ (_)| || '_ \| |_ / _ \| '__| '_ ` _ \ / _` | __| |/ _ \| '_ \ | | | | (_) | (_| | |_| | | __/_ | || | | | _| (_) | | | | | | | | (_| | |_| | (_) | | | | |_| |_|\___/ \__,_|\__,_|_|\___(_)___|_| |_|_| \___/|_| |_| |_| |_|\__,_|\__|_|\___/|_| |_| This module is intended to be the engine behind "Template:Information". Please do not modify this code without applying the changes first at "Module:Information/sandbox" and testing at "Module:Information/testcases". Authors and maintainers: * User:Jarekt - original version ]] -- ======================================= -- === Dependencies ====================== -- ======================================= require('strict') -- used for debugging purposes as it detects cases of unintended global variables local ISOdate = require('Module:ISOdate')._ISOdate -- date localization local core = require('Module:Core') -- ================================================== -- === Internal functions =========================== -- ================================================== local function langWrapper(text, textLang) -- code equivalent to https://commons.wikimedia.org/wiki/Template:Description local language = mw.language.new( textLang ) local dir = language:getDir() local LangName = language:ucfirst(mw.language.fetchLanguageName( textLang, textLang)) local str = mw.ustring.format('&lt;span class="language %s">&lt;b>%s:&lt;/b>&lt;/span>', textLang, LangName) return mw.ustring.format('&lt;div class="description" dir="%s" lang="%s">%s %s&lt;/div>', dir, textLang, str, text) end ------------------------------------------------------------------------------- local function getBareLabel(id, userLang) -- code equivalent to require("Module:Wikidata label")._getLabel with Wikidata=- option local label, link -- build language fallback list local langList = mw.language.getFallbacksFor(userLang) table.insert(langList, 1, userLang) for _, lang in ipairs(langList) do -- loop over language fallback list looking for label in the specific language label = mw.wikibase.getLabelByLang(id, lang) if label then break end -- label found and we are done end return label or id end ------------------------------------------------------------------------------- local function message(name, lang) return mw.message.new( 'wm-license-information-'..name ):inLanguage(lang):plain() end -- ==================================================================== -- === This function is just responsible for producing HTML of the === -- === template. At this stage all the fields are already filed === -- ==================================================================== local function Build_html(args) local lang = args.lang -- user's language local dir = mw.language.new( lang ):getDir() -- get text direction local desTag = mw.ustring.format('&lt;span class="summary fn" style="display:none">%s&lt;/span>', args.pagename) local prmTag = mw.ustring.format("&lt;br />&lt;small>([[%s|%s]])&lt;/small>", message('permission-reusing-link', lang), message('permission-reusing-text', lang)) -- field specific preferences local params = { {field='other_fields_0'}, {field='description' , id='fileinfotpl_desc', tag2=desTag, td='class="description"'}, {field='other_fields_1'}, {field='date' , id='fileinfotpl_date', td=mw.ustring.format('lang="%s"', lang)}, {field='source' , id='fileinfotpl_src'}, {field='author' , id='fileinfotpl_aut'}, {field='permission' , id='fileinfotpl_perm', tag2=prmTag }, {field='other_versions' , id='fileinfotpl_ver', tag='other-versions'}, {field='other_fields'}, } local results = {} for _, param in ipairs(params) do local field, tag, cell1, cell2, id field = args[param.field] if param.id then -- skip "other fields" parameter if type(field) == 'string' then -- add "id" to first &lt;td> cell only if the field is present id = mw.ustring.format('id="%s" ', param.id) elseif type(field) == 'table' then -- the field was initially not present, it contains only our -- warning text; flatten it so that mw.ustring.format() gets a string field = field.missing end if field or (args.demo and param.tag) then -- skip the row if still no field tag = message(param.tag or param.field, lang) .. (param.tag2 or '') cell1 = mw.ustring.format('&lt;td %sclass="fileinfo-paramfield" lang="%s">%s&lt;/td>\n', id or '', lang, tag) cell2 = mw.ustring.format('&lt;td %s>\n%s&lt;/td>', param.td or '', field or '') field = mw.ustring.format('&lt;tr>\n%s%s\n&lt;/tr>\n\n', cell1, cell2) end end table.insert(results, field) end -- To save space in the templatelinks table, skip templatestyles in the File namespace on Commons; -- files get a copy of these styles via [[MediaWiki:Filepage.css]] instead. -- See [[Module talk:Information/styles.css]]. local templatestyles = '' if args.namespace ~= 6 or not(mw.site.server:match('//commons.wikimedia.org$')) then templatestyles = mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Module:Information/styles.css' } } end -- add table and outer layers local style = mw.ustring.format('class="fileinfotpl-type-information vevent" dir="%s"', dir) results = mw.ustring.format('&lt;table %s>\n\n%s\n&lt;/table>\n', style, table.concat(results)) results = mw.ustring.format('&lt;div class="hproduct commons-file-information-table">\n%s\n%s\n&lt;/div>', templatestyles, results) return results end -- ================================================== -- === External functions =========================== -- ================================================== local p = {} -- =========================================================================== -- === Version of the function to be called from other LUA codes -- =========================================================================== ------------------------------------------------------------------------------- -- _information function creates a wikicode for {{Information}} template based on -- passed arguments (through "args") and data extracted from SDC. Allowed fields of -- "args" are : 'description', 'date', 'permission', 'author', 'other_versions', -- 'source','other_fields', 'other_fields_0', 'other_fields_1', 'demo' and 'lang' ------------------------------------------------------------------------------- -- Dependencies: p._SDC_Description, p._SDC_Source, p._SDC_Author, p._SDC_Date, -- Build_html, Module:ISOdate (_date) ------------------------------------------------------------------------------- function p._information(args) local cats = '' -- ============================================================================================ -- === add [[Category:Pages using Information template with incorrect parameter]] if needed === -- ============================================================================================ local page = mw.title.getCurrentTitle() local lang = args.lang local namespace = page.namespace -- get page namespace if namespace==6 or namespace==10 then local allowedFields = {'description', 'date', 'permission', 'author', 'other_versions', 'source','other_fields', 'other_fields_0', 'other_fields_1', 'demo', 'lang', 'strict','sdc'} local set, badField = {}, {} for _, field in ipairs(allowedFields) do set[field] = true end for field, _ in pairs( args ) do if not set[field] then table.insert(badField, field) end end if #badField>0 then cats = mw.ustring.format('\n;&lt;span style="color:var(--color-error,red)">Error in [[Template:Information|{{Information}}'.. ' template]]: unknown parameter "%s".&lt;/span>', table.concat(badField,'", "')) cats = cats .. '\n[[Category:Pages using Information template with incorrect parameter]]' end end if args.date then -- apply ISODate to function to date string to convert date in ISO format to translated date string args.date = ISOdate(args.date, lang, '', 'dtstart', '100-999') end args.pagename = page.text args.namespace = namespace -- ==================================================== -- === harvest structured data === -- ==================================================== local entity = mw.wikibase.getEntity() if namespace==6 then entity = mw.wikibase.getEntity() elseif args.sdc then entity = mw.wikibase.getEntity(args.sdc) end if (namespace==6 or args.sdc) and entity then -- file namespace -- call SDC functions only when needed local icon = true -- local field is missing -> get it from SDC args.description = args.description or p._SDC_Description(entity, lang, icon) args.source = args.source or p._SDC_Source(entity, lang, icon) args.author = args.author or p._SDC_Author(entity, lang, icon) args.date = args.date or p._SDC_Date(entity, lang, icon) end -- ==================================================== -- === add tracking templates and categories === -- ==================================================== -- add the template tag (all official infoboxes transclude {{Infobox template tag}} so files without that tag do not have an infobox mw.getCurrentFrame():expandTemplate{ title = 'Infobox template tag' } -- files are required to have at least the 3 fields below if args.strict~=false then local reqFields = {description='Media lacking a description', author='Media lacking author information', source='Images without source'} for field, errCat in pairs(reqFields) do if args[field] and mw.ustring.match(args[field],"^[%s%p]+$") then args[field]=nil; end -- ignore punctuation only fields if not args[field] then -- code equivalent to Template:Source missing, Template:Author missing, Template:Description missing local tag1 = 'class="boilerplate metadata" id="cleanup" style="text-align: center; color: inherit;background: var(--background-color-warning-subtle,#ffe); '.. 'margin: .75em 15%; padding: .5em; border: 1px solid var(--border-color-content-removed,#e3e3b0);' local tag2 = message(field..'-missing', lang) local tag3 = message(field..'-missing-request', lang) local dir = mw.language.new( lang ):getDir() -- get text direction args[field] = {missing = mw.ustring.format('&lt;div %s direction: %s;" lang="%s">%s\n%s\n&lt;/div>', tag1, dir, lang, tag2, tag3)} cats = cats .. '\n[[Category:'.. errCat ..']]' end end end if namespace~=6 then cats = '' -- categories are added only to files end return Build_html(args) .. cats end ------------------------------------------------------------------------------- -- interface for other Lua codes to 5 functions for extracting description, source, -- author, date and location information from SDC. -- INPUTS: -- - "entity" - structure created by mw.wikibase.getEntity function -- - "lang" - users language ------------------------------------------------------------------------------- -- Dependencies: langWrapper ------------------------------------------------------------------------------- function p._SDC_Description(entity, lang, icon) -- create {{en|1=...}} template with SDC's caption local description, _ if entity and entity.labels then -- get label in users language or one of that language fallback list local label = core.langSwitch(entity.labels, lang) local labels, D = {}, {} if label then -- show either matching language labels[lang] = label else -- or if missing then show all labels = entity.labels end for _, label in pairs(labels) do -- add {{en|1=....}} like wrapper if icon and #D==0 then -- add editAtSDC icon to the first description label.value = label.value .. core.editAtSDC('ooui-php-4', lang) end table.insert(D, langWrapper(label.value, label.language, lang)) end description = table.concat(D, '\n') end return description end ------------------------------------------------------------------------------- -- Dependencies: Module:Wikidata_date "_date" function, Module:ISOdate "_ISOdate" function ------------------------------------------------------------------------------- function p._SDC_Date(entity, lang, icon) -- get creation date from P571 (inception) -- Code can handle YYYY-MM-DD, YYYY-MM, and YYYY dates without any additional resources -- But can load [[Module:Wikidata date]] if needed local Date if entity and entity.claims and entity.claims.P571 then local snak = entity.claims.P571[1].mainsnak if (snak.snaktype == "value") then local v = snak.datavalue.value if v and (v.calendarmodel=='http://www.wikidata.org/entity/Q1985727') and (mw.ustring.sub(v.time,1,1)=='+') then if v.precision >= 11 then -- day Date = mw.ustring.sub(v.time,2,11) -- date in YYYY-MM-DD format elseif v.precision == 10 then -- month Date = mw.ustring.sub(v.time,2,8) -- date in YYYY-MM format elseif v.precision == 9 then -- year Date = mw.ustring.sub(v.time,2,5) -- date in YYYY format end if Date then -- translate Date = ISOdate(Date, lang, '', 'dtstart', '100-999') end end end if entity.claims.P571[1].qualifiers then -- non-trivial case: call heavy cavalery local getDate = require("Module:Wikidata date")._date -- lazy loading: load only if needed local result = getDate(entity, 'P571', lang) -- display the date in user's language Date = result.str end end if icon and Date then Date = Date .. core.editAtSDC('P571', lang) end return Date end ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- function p._SDC_Source(entity, lang, icon) -- get source from P7482 (source of file) -- Code can handle {{Own}} template and URLs local source, label if entity and entity.claims and entity.claims.P7482 then for _,statement in ipairs(entity.claims.P7482) do if statement.mainsnak.datavalue then -- get URL is source is " file available on the internet (Q74228490) " if statement.mainsnak.datavalue.value.id=='Q74228490' and statement.qualifiers and statement.qualifiers.P973 then source = statement.qualifiers.P973[1].datavalue.value -- described at URL if statement.qualifiers.P137 then -- "operator" local id = statement.qualifiers.P137[1].datavalue.value.id label = getBareLabel(id, lang) source = '[' .. source ..' ' .. label ..']' end end -- add {{tl|own}} if source is "original creation by uploader (Q66458942)" if statement.mainsnak.datavalue.value.id=='Q66458942' then label = mw.message.new( 'Wm-license-own-work'):inLanguage(lang):plain() source = mw.ustring.format('&lt;span class="int-own-work" lang="%s">%s&lt;/span>',lang, label) end -- add {{tl|Own work by the original uploader}} if source is " Own work by the original uploader (Q87402110)" if statement.mainsnak.datavalue.value.id=='Q87402110' then label = getBareLabel('Q87402110', lang) source = mw.ustring.format('&lt;span class="int-own-work" lang="%s">%s&lt;/span>',lang, label) end if source then break end end end end if icon and source then source = source .. core.editAtSDC('P7482', lang) end return source end ------------------------------------------------------------------------------- -- Dependencies: Module:Core "getLabel" function ------------------------------------------------------------------------------- function p._SDC_Author(entity, lang, icon) -- get author from P170 (creator) -- Code can handle usuall cases of "[[User:Example|Example]]" as well as users with Wikidata Item IDs local author if entity and entity.claims and entity.claims.P170 then local creators = {} for _,statement in ipairs(entity.claims.P170) do if statement.mainsnak.snaktype == "value" then -- Creator has item ID local val = statement.mainsnak.datavalue.value.id table.insert(creators, core.getLabel(val, lang)) elseif statement.mainsnak.snaktype == "somevalue" then -- Creator defined by username if statement.qualifiers then -- author name string (P2093) local qual = {} local properties = {P2093='authorStr', P4174='username', P3831='role', P2699='url'} for prop, field in pairs( properties ) do if statement.qualifiers[prop] then qual[field] = statement.qualifiers[prop][1].datavalue.value end end local role = '' if qual.role and entity.claims.P170[2] then -- add role only is multiple creators role = '&amp;nbsp;(' .. core.getLabel(qual.role.id, lang) .. ')' end if qual.username and qual.authorStr then -- author name string (P2093) &amp; Wikimedia username (P4174) table.insert(creators, '[[User:'..qual.username..'|'..qual.authorStr..']]'..role) elseif qual.username and not qual.authorStr then -- no author name string (P2093) &amp; Wikimedia username (P4174) table.insert(creators, '[[User:'..qual.username..'|'..qual.username..']]'..role) elseif qual.url and qual.authorStr then -- author name string (P2093) &amp; URL (P2699) table.insert(creators, '['..qual.url..' '..qual.authorStr..']'..role) elseif qual.url and not qual.authorStr then -- no author name string (P2093) &amp; URL (P2699) table.insert(creators, qual.url..role) elseif qual.authorStr then -- author name string (P2093) table.insert(creators, qual.authorStr..role) end end end end -- end for author = table.concat(creators, ', ') end if icon and author then author = author .. core.editAtSDC('P170', lang) end return author end ------------------------------------------------------------------------------- -- Dependencies: Module:Code "getLabel" function ------------------------------------------------------------------------------- function p._SDC_Location(entity, lang, icon) -- get location P276 (location) local location, prop if entity and entity.claims and entity.claims.P1071 then local snak = entity.claims.P1071[1].mainsnak if (snak.snaktype == "value") then location = core.getLabel(snak.datavalue.value.id, lang) prop = 'P1071' end end if entity and entity.claims and entity.claims.P276 then local snak = entity.claims.P276[1].mainsnak if (snak.snaktype == "value") then location = core.getLabel(snak.datavalue.value.id, lang) prop = 'P276' end end if icon and location then location = location .. core.editAtSDC(prop, lang) end return location end -- =========================================================================== -- === Version of the functions to be called from template namespace -- =========================================================================== ------------------------------------------------------------------------------- -- information function creates a wikicode for {{Information}} template based on -- passed arguments (through "frame") and data extracted from SDC. Allowed template -- arguments are : 'description', 'date', 'permission', 'author', 'other_versions', -- 'source','other_fields', 'other_fields_0', 'other_fields_1', 'demo', 'sdc' and 'lang'. -- All inputs do not depend on capitalization and all "_" can be replaced with spaces. ------------------------------------------------------------------------------- -- Dependencies: p._information ------------------------------------------------------------------------------- function p.information(frame) local args = core.getArgs(frame) args.strict = true return p._information(args) end ------------------------------------------------------------------------------- -- interface for templates to 5 functions for extracting description, source, -- author, date and location information from SDC. -- INPUTS (templaate parameters): -- * "mid" - pageID defining a file. Optional, defaulting to the current file. -- * "lang" - users language. Optional defaulting to the language of the user -- * "icon" - add "Edit this at Wikidata" icon? boolean ( 'true'/'false', 'yes'/'no', 1/0 ------------------------------------------------------------------------------- -- Dependencies: getEntity ------------------------------------------------------------------------------- local function parseFrame(frame) local args = core.getArgs(frame) local entity = mw.wikibase.getEntity( args.mid ) local icon = core.yesno(args.icon, true) return {entity, args.lang, icon} end function p.SDC_Description(frame) return p._SDC_Description(unpack(parseFrame(frame))) end function p.SDC_Source(frame) return p._SDC_Source(unpack(parseFrame(frame))) end function p.SDC_Author(frame) return p._SDC_Author(unpack(parseFrame(frame))) end function p.SDC_Date(frame) return p._SDC_Date(unpack(parseFrame(frame))) end function p.SDC_Location(frame) return p._SDC_Location(unpack(parseFrame(frame))) end return p ------------------------------------------------------------------------------- -- List of exported functions ------------------------------------------------------------------------------- -- information -- SDC_Description -- SDC_Source -- SDC_Author -- SDC_Date -- SDC_Location </textarea><div id="mw-scribunto-console"></div><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Templates used on this page: </p></div><ul> <li><a href="/wiki/Template:Border-radius" title="Template:Border-radius">Template:Border-radius</a> (<a href="/w/index.php?title=Template:Border-radius&amp;action=edit" title="Template:Border-radius">view source</a>) (protected)</li><li><a href="/wiki/Template:Fallback" title="Template:Fallback">Template:Fallback</a> (<a href="/w/index.php?title=Template:Fallback&amp;action=edit" title="Template:Fallback">view source</a>) (protected)</li><li><a href="/wiki/Template:Heavily_used_module" title="Template:Heavily used module">Template:Heavily used module</a> (<a href="/w/index.php?title=Template:Heavily_used_module&amp;action=edit" title="Template:Heavily used module">edit</a>) </li><li><a href="/wiki/Template:Heavily_used_module/en" title="Template:Heavily used module/en">Template:Heavily used module/en</a> (<a href="/w/index.php?title=Template:Heavily_used_module/en&amp;action=edit" title="Template:Heavily used module/en">edit</a>) </li><li><a href="/wiki/Template:Heavily_used_module/layout" title="Template:Heavily used module/layout">Template:Heavily used module/layout</a> (<a href="/w/index.php?title=Template:Heavily_used_module/layout&amp;action=edit" title="Template:Heavily used module/layout">edit</a>) </li><li><a href="/wiki/Template:Infobox_template_tag" title="Template:Infobox template tag">Template:Infobox template tag</a> (<a href="/w/index.php?title=Template:Infobox_template_tag&amp;action=edit" title="Template:Infobox template tag">view source</a>) (protected)</li><li><a href="/wiki/Template:Lang" title="Template:Lang">Template:Lang</a> (<a href="/w/index.php?title=Template:Lang&amp;action=edit" title="Template:Lang">view source</a>) (protected)</li><li><a href="/wiki/Template:LangSwitch" title="Template:LangSwitch">Template:LangSwitch</a> (<a href="/w/index.php?title=Template:LangSwitch&amp;action=edit" title="Template:LangSwitch">view source</a>) (protected)</li><li><a href="/wiki/Template:Linear-gradient" title="Template:Linear-gradient">Template:Linear-gradient</a> (<a href="/w/index.php?title=Template:Linear-gradient&amp;action=edit" title="Template:Linear-gradient">view source</a>) (semi-protected)</li><li><a href="/wiki/Template:Lua" title="Template:Lua">Template:Lua</a> (<a href="/w/index.php?title=Template:Lua&amp;action=edit" title="Template:Lua">view source</a>) (autopatroller protected)</li><li><a href="/wiki/Template:LuaLogo" title="Template:LuaLogo">Template:LuaLogo</a> (<a href="/w/index.php?title=Template:LuaLogo&amp;action=edit" title="Template:LuaLogo">view source</a>) (protected)</li><li><a href="/wiki/Template:Mbox" title="Template:Mbox">Template:Mbox</a> (<a href="/w/index.php?title=Template:Mbox&amp;action=edit" title="Template:Mbox">view source</a>) (template editor protected)</li><li><a href="/wiki/Template:Mbox/styles.css" title="Template:Mbox/styles.css">Template:Mbox/styles.css</a> (<a href="/w/index.php?title=Template:Mbox/styles.css&amp;action=edit" title="Template:Mbox/styles.css">view source</a>) (template editor protected)</li><li><a href="/wiki/Template:Module-nav" title="Template:Module-nav">Template:Module-nav</a> (<a href="/w/index.php?title=Template:Module-nav&amp;action=edit" title="Template:Module-nav">view source</a>) (protected)</li><li><a href="/wiki/Template:Module-nav/i18n" title="Template:Module-nav/i18n">Template:Module-nav/i18n</a> (<a href="/w/index.php?title=Template:Module-nav/i18n&amp;action=edit" title="Template:Module-nav/i18n">edit</a>) </li><li><a href="/wiki/Template:Module-nav/tab" title="Template:Module-nav/tab">Template:Module-nav/tab</a> (<a href="/w/index.php?title=Template:Module-nav/tab&amp;action=edit" title="Template:Module-nav/tab">view source</a>) (protected)</li><li><a href="/wiki/Template:Module-nav/tab2" title="Template:Module-nav/tab2">Template:Module-nav/tab2</a> (<a href="/w/index.php?title=Template:Module-nav/tab2&amp;action=edit" title="Template:Module-nav/tab2">view source</a>) (protected)</li><li><a href="/wiki/Template:Module-nav/tab3" title="Template:Module-nav/tab3">Template:Module-nav/tab3</a> (<a href="/w/index.php?title=Template:Module-nav/tab3&amp;action=edit" title="Template:Module-nav/tab3">view source</a>) (protected)</li><li><a href="/wiki/Template:Module_rating" title="Template:Module rating">Template:Module rating</a> (<a href="/w/index.php?title=Template:Module_rating&amp;action=edit" title="Template:Module rating">edit</a>) </li><li><a href="/wiki/Template:Module_rating/i18n/en" title="Template:Module rating/i18n/en">Template:Module rating/i18n/en</a> (<a href="/w/index.php?title=Template:Module_rating/i18n/en&amp;action=edit" title="Template:Module rating/i18n/en">edit</a>) </li><li><a href="/wiki/Template:Ombox" class="mw-redirect" title="Template:Ombox">Template:Ombox</a> (<a href="/w/index.php?title=Template:Ombox&amp;action=edit" class="mw-redirect" title="Template:Ombox">view source</a>) (autopatroller protected)</li><li><a href="/wiki/Template:T/main" title="Template:T/main">Template:T/main</a> (<a href="/w/index.php?title=Template:T/main&amp;action=edit" title="Template:T/main">view source</a>) (protected)</li><li><a href="/wiki/Template:Tl" title="Template:Tl">Template:Tl</a> (<a href="/w/index.php?title=Template:Tl&amp;action=edit" title="Template:Tl">view source</a>) (protected)</li><li><a href="/wiki/Template:Uses_TemplateStyles" title="Template:Uses TemplateStyles">Template:Uses TemplateStyles</a> (<a href="/w/index.php?title=Template:Uses_TemplateStyles&amp;action=edit" title="Template:Uses TemplateStyles">edit</a>) </li><li><a href="/wiki/Template:Uses_templatestyles" class="mw-redirect" title="Template:Uses templatestyles">Template:Uses templatestyles</a> (<a href="/w/index.php?title=Template:Uses_templatestyles&amp;action=edit" class="mw-redirect" title="Template:Uses templatestyles">edit</a>) </li><li><a href="/wiki/Module:Autotranslate" title="Module:Autotranslate">Module:Autotranslate</a> (<a href="/w/index.php?title=Module:Autotranslate&amp;action=edit" title="Module:Autotranslate">view source</a>) (protected)</li><li><a href="/wiki/Module:Core" title="Module:Core">Module:Core</a> (<a href="/w/index.php?title=Module:Core&amp;action=edit" title="Module:Core">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:DateI18n" title="Module:DateI18n">Module:DateI18n</a> (<a href="/w/index.php?title=Module:DateI18n&amp;action=edit" title="Module:DateI18n">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Effective_protection_level" title="Module:Effective protection level">Module:Effective protection level</a> (<a href="/w/index.php?title=Module:Effective_protection_level&amp;action=edit" title="Module:Effective protection level">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:ISOdate" title="Module:ISOdate">Module:ISOdate</a> (<a href="/w/index.php?title=Module:ISOdate&amp;action=edit" title="Module:ISOdate">view source</a>) (protected)</li><li><a href="/wiki/Module:Information" title="Module:Information">Module:Information</a> (<a href="/w/index.php?title=Module:Information&amp;action=edit" title="Module:Information">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Information/doc" title="Module:Information/doc">Module:Information/doc</a> (<a href="/w/index.php?title=Module:Information/doc&amp;action=edit" title="Module:Information/doc">edit</a>) </li><li><a href="/wiki/Module:Information/styles.css" title="Module:Information/styles.css">Module:Information/styles.css</a> (<a href="/w/index.php?title=Module:Information/styles.css&amp;action=edit" title="Module:Information/styles.css">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:LangSwitch" title="Module:LangSwitch">Module:LangSwitch</a> (<a href="/w/index.php?title=Module:LangSwitch&amp;action=edit" title="Module:LangSwitch">view source</a>) (protected)</li><li><a href="/wiki/Module:List" title="Module:List">Module:List</a> (<a href="/w/index.php?title=Module:List&amp;action=edit" title="Module:List">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Lua_banner" title="Module:Lua banner">Module:Lua banner</a> (<a href="/w/index.php?title=Module:Lua_banner&amp;action=edit" title="Module:Lua banner">view source</a>) (autopatroller protected)</li><li><a href="/wiki/Module:Lua_banner/config" title="Module:Lua banner/config">Module:Lua banner/config</a> (<a href="/w/index.php?title=Module:Lua_banner/config&amp;action=edit" title="Module:Lua banner/config">edit</a>) </li><li><a href="/wiki/Module:Message_box" title="Module:Message box">Module:Message box</a> (<a href="/w/index.php?title=Module:Message_box&amp;action=edit" title="Module:Message box">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Message_box/configuration" title="Module:Message box/configuration">Module:Message box/configuration</a> (<a href="/w/index.php?title=Module:Message_box/configuration&amp;action=edit" title="Module:Message box/configuration">edit</a>) </li><li><a href="/wiki/Module:Message_box/ombox.css" title="Module:Message box/ombox.css">Module:Message box/ombox.css</a> (<a href="/w/index.php?title=Module:Message_box/ombox.css&amp;action=edit" title="Module:Message box/ombox.css">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:TNT" title="Module:TNT">Module:TNT</a> (<a href="/w/index.php?title=Module:TNT&amp;action=edit" title="Module:TNT">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:TableTools" title="Module:TableTools">Module:TableTools</a> (<a href="/w/index.php?title=Module:TableTools&amp;action=edit" title="Module:TableTools">view source</a>) (template editor protected)</li><li><a href="/wiki/Module:Uses_TemplateStyles" title="Module:Uses TemplateStyles">Module:Uses TemplateStyles</a> (<a href="/w/index.php?title=Module:Uses_TemplateStyles&amp;action=edit" title="Module:Uses TemplateStyles">edit</a>) </li><li><a href="/wiki/Module:Uses_TemplateStyles/config" title="Module:Uses TemplateStyles/config">Module:Uses TemplateStyles/config</a> (<a href="/w/index.php?title=Module:Uses_TemplateStyles/config&amp;action=edit" title="Module:Uses TemplateStyles/config">edit</a>) </li><li><a href="/wiki/Module:Yesno" title="Module:Yesno">Module:Yesno</a> (<a href="/w/index.php?title=Module:Yesno&amp;action=edit" title="Module:Yesno">view source</a>) (protected)</li></ul></div><p id="mw-returnto">Return to <a href="/wiki/Module:Information" title="Module:Information">Module:Information</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="">Retrieved from "<a dir="ltr" href="https://commons.wikimedia.org/wiki/Module:Information">https://commons.wikimedia.org/wiki/Module:Information</a>"</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> </div> </div> <div id="mw-navigation"> <h2>Navigation menu</h2> <div id="mw-head"> <nav id="p-personal" class="mw-portlet mw-portlet-personal vector-user-menu-legacy vector-menu" aria-labelledby="p-personal-label" > <h3 id="p-personal-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Personal tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-uls" class="mw-list-item active"><a class="uls-trigger" href="#"><span>English</span></a></li><li id="pt-anonuserpage" class="mw-list-item"><span title="The user page for the IP address you are editing as">Not logged in</span></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li><li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-createaccount" class="mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Module%3AInformation&amp;returntoquery=action%3Dedit" title="You are encouraged to create an account and log in; however, it is not mandatory"><span>Create account</span></a></li><li id="pt-login" class="mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Module%3AInformation&amp;returntoquery=action%3Dedit" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span>Log in</span></a></li> </ul> </div> </nav> <div id="left-navigation"> <nav id="p-namespaces" class="mw-portlet mw-portlet-namespaces vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-namespaces-label" > <h3 id="p-namespaces-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Namespaces</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-module" class="selected mw-list-item"><a href="/wiki/Module:Information" title="View the module page [c]" accesskey="c"><span>Module</span></a></li><li id="ca-talk" class="mw-list-item"><a href="/wiki/Module_talk:Information" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </nav> <nav id="p-variants" class="mw-portlet mw-portlet-variants emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-variants-label" > <input type="checkbox" id="p-variants-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-variants" class="vector-menu-checkbox" aria-labelledby="p-variants-label" > <label id="p-variants-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">English</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> </div> <div id="right-navigation"> <nav id="p-views" class="mw-portlet mw-portlet-views vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-views-label" > <h3 id="p-views-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Views</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="mw-list-item"><a href="/wiki/Module:Information"><span>View</span></a></li><li id="ca-viewsource" class="selected mw-list-item"><a href="/w/index.php?title=Module:Information&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="mw-list-item"><a href="/w/index.php?title=Module:Information&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>History</span></a></li> </ul> </div> </nav> <nav id="p-cactions" class="mw-portlet mw-portlet-cactions emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-cactions-label" title="More options" > <input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label" > <label id="p-cactions-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">More</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box"> <h3 >Search</h3> <form action="/w/index.php" id="searchform" class="vector-search-box-form"> <div id="simpleSearch" class="vector-search-box-inner" data-search-loc="header-navigation"> <input class="vector-search-box-input" type="search" name="search" placeholder="Search Wikimedia Commons" aria-label="Search Wikimedia Commons" autocapitalize="sentences" title="Search Wikimedia Commons [f]" accesskey="f" id="searchInput" > <input type="hidden" name="title" value="Special:MediaSearch"> <input id="mw-searchButton" class="searchButton mw-fallbackSearchButton" type="submit" name="fulltext" title="Search the pages for this text" value="Search"> <input id="searchButton" class="searchButton" type="submit" name="go" title="Go to a page with this exact name if it exists" value="Go"> </div> </form> </div> </div> </div> <div id="mw-panel" class="vector-legacy-sidebar"> <div id="p-logo" role="banner"> <a class="mw-wiki-logo" href="/wiki/Main_Page" title="Visit the main page"></a> </div> <nav id="p-navigation" class="mw-portlet mw-portlet-navigation vector-menu-portal portal vector-menu" aria-labelledby="p-navigation-label" > <h3 id="p-navigation-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Navigate</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-welcome" class="mw-list-item"><a href="/wiki/Commons:Welcome"><span>Welcome</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Commons:Community_portal" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-village-pump" class="mw-list-item"><a href="/wiki/Commons:Village_pump"><span>Village pump</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>Help center</span></a></li> </ul> </div> </nav> <nav id="p-participate" class="mw-portlet mw-portlet-participate vector-menu-portal portal vector-menu" aria-labelledby="p-participate-label" > <h3 id="p-participate-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Participate</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-uploadbtn" class="mw-list-item"><a href="/wiki/Special:UploadWizard"><span>Upload file</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-latestfiles" class="mw-list-item"><a href="/wiki/Special:NewFiles"><span>Latest files</span></a></li><li id="n-randomimage" class="mw-list-item"><a href="/wiki/Special:Random/File" title="Load a random file [x]" accesskey="x"><span>Random file</span></a></li><li id="n-contact" class="mw-list-item"><a href="/wiki/Commons:Contact_us"><span>Contact us</span></a></li> </ul> </div> </nav> <nav id="p-tb" class="mw-portlet mw-portlet-tb vector-menu-portal portal vector-menu" aria-labelledby="p-tb-label" > <h3 id="p-tb-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Module:Information" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Module:Information" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Module:Information&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fcommons.wikimedia.org%2Fw%2Findex.php%3Ftitle%3DModule%3AInformation%26action%3Dedit"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fcommons.wikimedia.org%2Fw%2Findex.php%3Ftitle%3DModule%3AInformation%26action%3Dedit"><span>Download QR code</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-otherprojects" class="mw-portlet mw-portlet-wikibase-otherprojects vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-otherprojects-label" > <h3 id="p-wikibase-otherprojects-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In other projects</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q91785418" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </nav> </div> </div> <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">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Commons:Welcome">About Wikimedia Commons</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Commons:General_disclaimer">Disclaimers</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">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/commons.wikimedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//commons.m.wikimedia.org/w/index.php?title=Module:Information&amp;action=edit&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</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> <script>(RLQ=window.RLQ||[]).push(function(){mw.log.warn("This page is using the deprecated ResourceLoader module \"codex-search-styles\".\n[1.43] Use a CodexModule with codexComponents to set your specific components used: https://www.mediawiki.org/wiki/Codex#Using_a_limited_subset_of_components");mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-dnxpp","wgBackendResponseTime":248,"wgPageParseReport":{"limitreport":{"cputime":"0.043","walltime":"0.061","ppvisitednodes":{"value":172,"limit":1000000},"postexpandincludesize":{"value":14250,"limit":2097152},"templateargumentsize":{"value":1716,"limit":2097152},"expansiondepth":{"value":17,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":1026,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 48.078 1 Template:Protectedpagetext/PageTemplateProtected","100.00% 48.078 1 -total"," 89.06% 42.820 1 Template:Editnotice"," 54.35% 26.132 1 Template:Fmbox"," 29.98% 14.415 2 Template:FULLROOTPAGENAME"," 26.33% 12.658 1 Template:Namespace_has_subpages"," 7.94% 3.818 1 Template:Image"," 3.10% 1.492 1 Template:Str_left"]},"scribunto":{"limitreport-timeusage":{"value":"0.015","limit":"10.000"},"limitreport-memusage":{"value":715789,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-dnxpp","timestamp":"20241124025614","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

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