Wikipedia diqwiki https://diq.wikipedia.org/wiki/Pela_Seri MediaWiki 1.46.0-wmf.26 first-letter Medya Xısusi Werênayış Karber Werênayışê karberi Wikipediya Werênayışê Wikipediya Dosya Werênayışê dosya MedyaWiki Werênayışê MedyaWikiyi Şablon Werênayışê şabloni Peşti Werênayışê peşti Kategoriye Werênayışê kategoriye Portal Werênayışê portali TimedText TimedText talk Modul Werênayışê moduli Event Event talk Modul:Databox 828 83930 548616 534078 2026-05-05T20:41:16Z Mirzali 16 548616 Scribunto text/plain -- This extended version of Databox is stored at https://sv.wikipedia.org/wiki/Modul:Databox, but can be used by other languages -- Versions: (Besides minor adjustments to the property_blacklist and layout) -- 2024-03-03 Parameter "keep_title_case" to not change first letter to upper case (default false) -- 2023-06-18 Shows monolingualtext but only in local language - and maximum one value per property -- Can show any commonsMedia file that has media caption qualifier in the local language, or with content in ("language of work" qualifier) the local language -- Can show several maps if several coordinates, limited by parameter maxFiles (default 1). -- 2023-06-11 Locator map image shown if it has media caption in the local language -- 2020-05-25 Hide "is instance of" -> "human" -- 2020-05-25 Category:Databox that shows qid code -- 2020-05-24 Years linked to articles. Decades, centuries and millennia formated in local language. -- 2020-05-13 P155 (follows) and P156 (followed by) merged into one "Chronology" list, also showing current object. -- Parameter "list_separator" for replacing comma in lists. -- 2020-05-10 Parameter "era" for choosing if year "BCE" (or similar in local language) should be replaced by "BC", empty string or other. -- Upper-case initial letter of P31 (instance of). -- 2020-05-05 P31 hidden if too long list. Administrative wiki category if too long list. -- 2020-05-02 More than two parent/child levels in bulleted list. -- 2020-05-01 Property short names based on P1813. Image legend/caption. -- 2020-04-28 Properties linked to articles (based on Property:P1629 of the property). -- Datatype "url" not shown (except for official web site). Input parameter "levels". -- 2020-04-27 Two higher and two lower levels of child and parent items shown as bulleted list for some properties -- 2020-04-21 Parameters "width", "height", "zoom" and "list_length". Soft hyphens auto-inserted in long property names. -- 2020-04-18 (Monolingual text strings hidden.) Property name hidden if no good value. First image shown if several images. smzlhkw88565vrj1a973d14l40hffu1 548617 548616 2026-05-05T20:41:59Z Mirzali 16 Vırnayışê hesabê 548616 ke terefê [[Karber:Mirzali|Mirzali]] ra peyser gêriyao 548617 Scribunto text/plain local property_blacklist = { 'P360', --is a list of 'P4224', --category contains 'P935', -- Commons gallery 'P1472', -- Commons Creator page 'P1612', -- Commons Institution page 'P373', -- Commons category 'P3722', -- Commons maps category 'P1151', -- topic's main Wikimedia portal 'P1424', -- topic's main template 'P910', -- topic's main category 'P1200', -- bodies of water basin category 'P1792', -- category of associated people 'P1464', -- category for people born here 'P1465', -- category for people who died here 'P1791', -- category of people buried here 'P1740', -- category for films shot at this location 'P2033', -- Category for pictures taken with camera 'P2517', -- category for recipients of this award 'P4195', -- category for employees of the organization 'P1754', -- category related to list 'P301', -- category's main topic 'P971', -- category combines topics 'P3876', -- category for alumni of educational institution 'P1753', -- list related to category 'P3921', -- Wikidata SPARQL query equivalent 'P1204', -- Wikimedia portal's main topic 'P1423', -- template's main topic 'P1709', -- equivalent class 'P3950', -- narrower external class 'P2888', -- exact match 'P1382', -- coincident with 'P2670', -- has parts of the class 'P3113', -- does not have part 'P2737', -- union of 'P2738', -- disjoint union of 'P2445', -- metasubclass of 'P1963', -- properties for this type 'P3176', -- uses property 'P1889', -- different from 'P460', -- said to be the same as 'P2959', -- permanent duplicated item 'P2860', -- cites 'P5125', -- wikimedia outline 'P5008', -- on focus list of Wikimedia project 'P2559', -- Wikidata usage instructions 'P1343', -- described by source 'P972', -- catalogu 'P1282', -- OSM tag or key 'P4839', -- Wolfram Language entity code 'P6104', -- Maintained by Wikiproject 'P5996' -- Category for films in this language } function valuesToKeys(array) local result = {} for _, v in pairs(array) do result[v] = true end return result end local p = {} function p.databox(frame) local args = frame:getParent().args local itemId = nil if args.item then itemId = args.item end local lang = mw.language.getContentLanguage() local item = mw.wikibase.getEntity(itemId) if item == nil then mw.addWarning("Wikidata item not found") return "" end local databoxRoot = mw.html.create('div') :addClass('infobox') :css({ float = 'right', border = '2px solid black' , ['max-width'] = '270px', padding = '0 0.2em', margin = '0 0 0.4em 0.4em', }) --Title databoxRoot:tag('div') :css({ ['text-align'] = 'center', ['color'] = '#ffffff', ['background-color'] = '#add8e6', padding = '0.5em 0', margin = '0.5em 0', ['font-size'] = '145%', ['font-weight'] = 'bold', }) :wikitext(item:getLabel() or mw.title.getCurrentTitle().text) --Image local images = item:getBestStatements('P18') if #images == 1 then databoxRoot :tag('div') :wikitext('[[File:' .. images[1].mainsnak.datavalue.value .. '|frameless|260px]]') end --Table local dataTable = databoxRoot :tag('table') :css({ ['text-align'] = 'left', ['font-size'] = '90%', ['word-break'] = 'break-word', ['width'] = '100%', ['table-layout'] = 'fixed', }) dataTable:tag('caption') :css({ ['color'] = '#ffffff', ['background-color'] = '#add8e6', ['font-weight'] = 'bold', ['margin-top'] = '0.2em', }) :wikitext(item:formatStatements('P31').value) local properties = mw.wikibase.orderProperties(item:getProperties()) local property_blacklist_hash = valuesToKeys(property_blacklist) property_blacklist_hash['P31'] = true --Special property local edit_message = mw.message.new('vector-view-edit'):plain() for _, property in pairs(properties) do local datatype = item.claims[property][1].mainsnak.datatype if datatype ~= 'commonsMedia' and datatype ~= 'external-id' and datatype ~= 'quantity' and not property_blacklist_hash[property] and #item:getBestStatements(property) <= 5 then local propertyValue = item:formatStatements(property) dataTable:tag('tr') :tag('th') :attr('scope', 'row') :wikitext(lang:ucfirst(propertyValue.label)):done() :tag('td') :wikitext(frame:preprocess(propertyValue.value)) :wikitext('&nbsp;[[File:OOjs UI icon edit-ltr.svg|' .. edit_message .. '|12px|baseline|class=noviewer|link=https://www.wikidata.org/wiki/' .. item.id .. '#' .. property .. ']]') end end --Map local coordinates_statements = item:getBestStatements('P625') if #coordinates_statements == 1 and coordinates_statements[1].mainsnak.datavalue and coordinates_statements[1].mainsnak.datavalue.value.globe == 'http://www.wikidata.org/entity/Q2' then --We build the call to mapframe local latitude = coordinates_statements[1].mainsnak.datavalue.value.latitude local longitude = coordinates_statements[1].mainsnak.datavalue.value.longitude local geojson = { type = 'Feature', geometry = { type = 'Point', coordinates = { longitude, latitude } }, properties = { title = item:getLabel() or mw.title.getCurrentTitle().text, ['marker-symbol'] = 'marker', ['marker-color'] = '#009900', } } databoxRoot:wikitext(frame:extensionTag('mapframe', mw.text.jsonEncode(geojson), { height = 300, width = 300, frameless = 'frameless', align = 'center', latitude = latitude, longitude = longitude, zoom = zoom })) end return tostring(databoxRoot) end return p 0zft2a3j0ugyskr2sk93va8ik16mij1 Werênayışê moduli:Databox 829 100110 548615 2026-05-05T13:23:26Z MediaWiki message delivery 9973 /* Databox has 2 new parameters */ qısımo newe 548615 wikitext text/x-wiki == Databox has 2 new parameters == ''Sorry for posting in English, you can help by translating it'' The code in this module added 2 new parameters: * <code>useImage</code> * <code>excludeProperties</code> '''How to use them'''<br> Invoke either or both parameters into the template when entering the databox template: '''<nowiki>{{</nowiki>Databox}}''', placing a pipe <code>|</code> and then the parameter name, followed by an equals sign<code>=</code> and ending with the value (no spaces are required), it will have a form like:<br> <nowiki>{{Databox|parameterName=value}}</nowiki> * <code>useImage=</code> <nowiki>{{</nowiki>Databox|useImage=<code>add the [[d:Property:P18|P18 (image)]] filename here</code>}} * <code>excludeProperties=</code> <nowiki>{{</nowiki>Databox|excludeProperties=<code>add comma-separated property ID's here (P105,P171)</code>}} '''Parameter behaviour'''<br> Both parameters when used will make changes to the invoked databox at the local page level.<br> ''They do not affect any other Databoxes on the wiki''. * <code>'''useImage:'''</code> This parameter allows the local databox to choose which image of the item's P18 files to display. A Wikidata item can have multiple files for its property Image (P18). By default, only the most recently uploaded (or Preferred) file will be displayed when a databox is invoked. * <code>'''excludeProperties:'''</code> This parameter allows the local databox to exclude additional properties from being included in the current databox (only). Databox code already contains a global list of properties to exclude from being displayed, this exclusion list affects '''all''' databoxes on the current wiki. Adding or removing properties under '''local site excluded properties = {''' of the code at [[Module:Databox]] will affect all databoxes currently displayed and any future ones. Editors' may want to have more control over what data/properties are shown for individual databoxes to stop it from becoming too long or containing irrelevant data for the current article, page or topic. [[m:Wikidata_For_Wikimedia_Projects/Projects/Databox|Databox - additional Parameters]] - More information about these parameters can be found here. <br> [[m:Wikidata_For_Wikimedia_Projects/Projects/Databox|User Talk: Databox - additional Parameters]] - Questions and feedback about these parameters are welcome here (or as a reply to this topic).<br> [[m:User:Danny_Benjafield_(WMDE)|User:Danny_Benjafield (WMDE)]] on behalf of the [[m:Wikidata_For_Wikimedia_Projects|Wikidata For Wikimedia Projects]] team will be updating the local code for the Template:Databox and Module:Databox pages in the coming weeks. If you do not wish to update to the newest version, please let them know at their [[m:User_talk:Danny_Benjafield_(WMDE)|User talk:Danny_Benjafield (WMDE)]] or reply here. Thank you, - [[Karber:MediaWiki message delivery|MediaWiki message delivery]] ([[Werênayışê karberi:MediaWiki message delivery|mesac]]) 13:23, 5 Gulane 2026 ([[UTC]]) <!-- Message sent by User:Danny Benjafield (WMDE)@metawiki using the list at https://meta.wikimedia.org/w/index.php?title=User:Danny_Benjafield_(WMDE)/MassMessage_test_list&oldid=30504313 --> kmpupe66ifqxue3lt66a2ozm8w39308