Contribuțiile utilizatorului Sergiu

Un utilizator cu 62 modificări. Cont creat în 5 iulie 2024.
Căutare contribuțiiExtindeRestrânge
⧼contribs-top⧽
⧼contribs-date⧽
(cele mai noi | cele mai vechi) Vezi (50 mai noi | ) (20 | 50 | 100 | 250 | 500)

14 iulie 2024

  • 20:3114 iulie 2024 20:31 dif ist +903 N Modul:WikidataUtils/BiographyPagină nouă: local Wikidata = require('Modul:Wikidata') local p = {} local function isDead(qId) local deathDateClaims = Wikidata.findBestClaimsForProperty(qId, 'P570') if deathDateClaims then for _,eachDeathDateClaim in ipairs(deathDateClaims) do if Wikidata.isClaimTrue(eachDeathDateClaim) and eachDeathDateClaim.mainsnak.snaktype ~= 'novalue' then return true end end end return false end p.isDead = isDead local function isFemale(qId) local genders = Wikidata.findBestCl... actuală
  • 20:3114 iulie 2024 20:31 dif ist +5.769 N Modul:NameAndImagePagină nouă: local getArgs = require('Modul:Arguments').getArgs local wikidata = require('Modul:Wikidata') local StringUtils = require('Modul:StringUtils') local DateUtils = require('Modul:DateUtils') local GregorianDate = require('Modul:GregorianDate') local join = require('Modul:Separated entries')._main local libUtils = require('libraryUtil') local p = {} local maxSize = { ['P94'] = '23x23', ['P41'] = '23x23'} local function toWikidataTimestamp(timestamp) local ret = nil if timesta... actuală
  • 20:3014 iulie 2024 20:30 dif ist +2.602 N Modul:EditAtWikidataPagină nouă: -- Module to display an icon with a tooltip such as "Edit this at Wikidata" -- Icon will be linked to the Wikidata entry for the article where this is placed. -- This message is only displayed if a local_parameter is not supplied -- i.e. when called from a template, it can be coded not to display the message -- when a local parameter is in use, preventing the value form Wikidata being fetched. -- The qid of a Wikidata entry can optionally be supplied for testing outside the... actuală
  • 20:3014 iulie 2024 20:30 dif ist +1.309 N Modul:LangPagină nouă: local p = {} local getArgs = require('Modul:Arguments').getArgs local wikidata = require('Modul:Wikidata') p.fromArgs = function(langISOcode, languageDir, langText, italic) local span = mw.html.create('span') span:attr('lang', langISOcode) span:attr('translate', 'no') if languageDir then span:attr('dir', languageDir) end if italic then span:css('font-style', 'italic') end span:wikitext(langText) return tostring(span) end p.fromFrame = function(frame) local args = ge... actuală
  • 20:2914 iulie 2024 20:29 dif ist +4.673 N Modul:BirthDateAndAgePagină nouă: local p = {} local getArgs = require('Modul:Arguments').getArgs local wikidata = require('Modul:Wikidata') local plural = require('Modul:Plural').get_plural local GregorianDate = require('Modul:GregorianDate') local computeYearsPastBetween = function(inMomentDate, inReferenceDate) local momentDate = GregorianDate.julianToGregorian(inMomentDate) local referenceDate = GregorianDate.julianToGregorian(inReferenceDate) local yearsDiff = tonumber(momentDate.year) - tonumber(ref... actuală
  • 20:2814 iulie 2024 20:28 dif ist +744 N Modul:TimestampedTablePagină nouă: local DateUtils = require('Modul:DateUtils') local p = {} local function getTimestampedValueFromArray(arr, ts) local tsDate = type(ts) == 'string' and DateUtils.parseDate(ts) or type(ts) == 'table' and ts if not tsDate then tsDate = nil end local closestDate = nil local closestDateLabel = nil for k,v in pairs(arr) do local crtStartDate = k == '_' and {year=-3000, precision=9} or DateUtils.parseDate(k) if (nil == tsDate or (tsDate and DateUtils.compare(crtStartDate,... actuală
  • 20:2814 iulie 2024 20:28 dif ist +1.424 N Modul:Plain textPagină nouă: --converts text with wikilinks to plain text, e.g "gah is bar" to "gah is bar" --removes anything enclosed in tags that isn't nested, mediawiki strip markers (references etc), files, italic and bold markup local p = {} function p.main(frame) local text = frame.args[1] return p._main(text) end function p._main(text) if not text then return end text = mw.text.killMarkers(text) :gsub(' ', ' ') --replace nbsp spaces with regular spaces :gsub('<br ?/?>',... actuală
  • 20:2714 iulie 2024 20:27 dif ist +2.321 N Modul:Ill-wdPagină nouă: local getArgs = require('Modul:Arguments').getArgs local wikidata = require('Modul:Wikidata') local StringUtils = require('Modul:StringUtils') local plainText = require('Modul:Plain text')._main local p = {} p.fromArgs = function(wdId, wdLabel, wdArticleName, capitalize) local out = '' if mw.wikibase.sitelink(wdId) then if wdLabel then out = wikidata.findLinkToItemWithLabel(wdId, wdLabel) else local label = mw.wikibase.label(StringUtils._prependIfMissing({tostrin... actuală
  • 20:2414 iulie 2024 20:24 dif ist +9.660 N Modul:LocationAndCountry/dataPagină nouă: local ESCALATABLE_LOCATION_ENTITIES = { -- if this is one of the types of the location from Wikidata, then we skip and escalate it to the administrative unit 'Q79007', --street 'Q16917', --hospital 'Q608152', --hospice 'Q1059324', -- university hospital 'Q702842', --municipal arrondissement (France) 'Q2115448', --raioane ale orașelor federale rusești 'Q15921300', --sector of Bucharest 'Q2755753', --area of London 'Q211690', --London borough 'Q518343', -- municipal... actuală
  • 20:2314 iulie 2024 20:23 dif ist +16.231 N Modul:LocationAndCountryPagină nouă: -- will display a wikidata property representing a location, followed by a comma and the name of the country, both with wikilinks -- the first argument specifies the parameter to be displayed -- the second argument specifies the entity ID -- the third argument specifies a timestamp showing the moment in time for which the country is to be identified -- the fourth argument specifies the maximum number of values to be processed (default 1) -- the fifth argument specifies the se... actuală
  • 20:2214 iulie 2024 20:22 dif ist +8.745 N Modul:SetPagină nouă: --[[ ------------------------------------------------------------------------------------ -- Set -- -- -- -- This module includes a number of set operations for dealing with Lua tables. -- -- It currently has union, intersection and complement functions for both -- -- key/value pairs and for values only.... actuală
  • 20:2214 iulie 2024 20:22 dif ist +9.746 N Modul:Transliteration/langdataPagină nouă: local map = { ['sr'] = { ['а'] = 'a', ['б'] = 'b', ['в'] = 'v', ['г'] = 'g', ['д'] = 'd', ['ђ'] = 'đ', ['е'] = 'e', ['ж'] = 'ž', ['з'] = 'z', ['и'] = 'i', ['ј'] = 'j', ['к'] = 'k', ['л'] = 'l', ['љ'] = 'lj', ['м'] = 'm', ['н'] = 'n', ['њ'] = 'nj', ['о'] = 'o', ['п'] = 'p', ['р'] = 'r', ['с'] = 's', ['т'] = 't', ['ћ'] = 'ć', ['у'] = 'u', ['ф'] = 'f', ['х'] = 'h', ['ц'] = 'c', ['ч'] = 'č', ['џ'] = 'dž', ['ш'] = 'š' }, ['mk'] = {... actuală
  • 20:2114 iulie 2024 20:21 dif ist +2.511 N Modul:TransliterationPagină nouă: local p = {} local getArgs = require('Modul:Arguments').getArgs local transliterationMaps = mw.loadData('Modul:Transliteration/langdata') local function isTransliterationSupported(langCode) if transliterationMaps[langCode] then return true end return false end p.isTransliterationSupported = isTransliterationSupported local function postProcess(str) local chars = {} local idx = 1 while idx <= mw.ustring.len(str) do local crtChar = mw.ustring.sub(str, idx, idx) if c... actuală
  • 20:2014 iulie 2024 20:20 dif ist +1.782 N Modul:PluralPagină nouă: local getArgs = require('Module:Arguments').getArgs local lang = mw.getLanguage("ro") local p = {} function p.build_first_plural(singular) local plural = mw.loadData("Modul:Plural/data").plural if plural[singular] ~= nil then return plural[singular] else return string.format("%si", singular) end end function p.build_plural(count, singular, first_plural, second_plural) local form if count == 1 then form = singular elseif count == 0 or count ~= nil an... actuală
  • 20:1814 iulie 2024 20:18 dif ist +194 N Modul:LangUtilsPagină nouă: -- This module contains various utility code for use with language-related modules local langCodes = { ["Q188"] = "de", ["Q1860"] = "en", ["Q7913"] = "ro", ["Q7737"] = "ru", } return langCodes actuală
  • 20:1714 iulie 2024 20:17 dif ist +164.514 N Modul:Citation/CS1Pagină nouă: local cs1 ={}; --[[--------------------------< F O R W A R D D E C L A R A T I O N S >-------------------------------------- ]] local dates, year_date_check, reformat_dates, date_hyphen_to_dash, -- functions in Module:Citation/CS1/Date_validation date_name_xlate local is_set, in_array, substitute, error_comment, set_error, select_one, -- functions in Module:Citation/CS1/Utilities add_maint_cat, wrap_style, safe_for_italics, is_wikilink, make_wikilink; local z ={}... actuală
  • 20:1614 iulie 2024 20:16 dif ist +1.254 N Modul:GregorianDate/dataPagină nouă: local limitDates = { {year = 4, month = 3, day = 3, calendar = 'julian' }, {year = 100, month = 3, day = 2, calendar = 'julian' }, {year = 200, month = 3, day = 1, calendar = 'julian' }, {year = 300, month = 2, day = 29, calendar = 'julian' }, {year = 500, month = 2, day = 28, calendar = 'julian' }, {year = 600, month = 2, day = 27, calendar = 'julian' }, {year = 700, month = 2, day = 26, calendar = 'julian' }, {year = 900, month = 2, day = 25, calendar = 'julian' },... actuală
  • 20:1614 iulie 2024 20:16 dif ist +4.385 N Modul:GregorianDatePagină nouă: local p = {} local DateUtils = require('Modul:DateUtils') local getArgs = require('Modul:Arguments').getArgs local data = mw.loadData('Modul:GregorianDate/data') local compareDates = function(date1, date2) if date1.year < date2.year then return 1 end if date2.year < date1.year then return -1 end if date1.month < date2.month then return 1 end if date2.month < date1.month then return -1 end if date1.day < date2.day then return 1 end if date2.day < date1.day then retur... actuală
  • 20:1514 iulie 2024 20:15 dif ist +646 N Modul:DateUtils/dataPagină nouă: local months = { ['ianuarie'] = 1, ['februarie'] = 2, ['martie'] = 3, ['aprilie'] = 4, ['mai'] = 5, ['iunie'] = 6, ['iulie'] = 7, ['august'] = 8, ['septembrie'] = 9, ['octombrie'] = 10, ['noiembrie'] = 11, ['decembrie'] = 12, ['January'] = 1, ['February'] = 2, ['March'] = 3, ['April'] = 4, ['May'] = 5, ['June'] = 6, ['July'] = 7, ['August'] = 8, ['September'] = 9, ['October'] = 10, ['November'] = 11, ['December'] = 12, ['janvier'] = 1, ['février'] = 2, ['mars'] = 3, [... actuală
  • 20:0914 iulie 2024 20:09 dif ist +4.341 N Modul:RomanPagină nouă: -- This module implements {{Roman}}. local p = {} -- This function implements the {{overline}} template. local function overline(s) return mw.ustring.format( '<span style="text-decoration:overline;">%s</span>', s ) end -- Gets the Roman numerals for a given numeral table. Returns both the string of -- numerals and the value of the number after it is finished being processed. local function getLetters(num, t) local ret = {} for _, v in ipairs(t) do local... actuală
  • 20:0814 iulie 2024 20:08 dif ist +15.083 N Modul:DateUtilsPagină nouă: local p = {} local maxDaysInMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} local roman = require('Modul:Roman') local getArgs = require('Modul:Arguments').getArgs local defaultPostfixYear = { bc = 'î.Hr.', ad = 'd.Hr.' } local linkingPostfixYear = { bc = 'î.Hr.', ad = 'd.Hr.' } local months = mw.loadData('Modul:DateUtils/data').months local suffixFormatYear = function(y, postFixYear) local postFixYear = postFixYear or defaultPostfixYear return (y < 0 and (' ' .... actuală
  • 19:5514 iulie 2024 19:55 dif ist +8.351 N Modul:StringUtilsPagină nouă: local p = {} local arguments = require('Modul:Arguments') local TableTools = require('Modul:TableTools') local function makeInvokeFunc(funcName) return function (frame) local args = arguments.getArgs(frame, { wrappers = 'Format:Ifempty' }) local firstRet,secondRet = p[funcName](args) return firstRet end end -- Adaugă la începutul unui șir un prefix, dacă nu există deja acolo el sau unul dintre cele listate în ultimul argument function p._prependIfMissing(...)... actuală
  • 19:5414 iulie 2024 19:54 dif ist +96.724 N Modul:WikidataPagină nouă: local getArgs = require('Module:Arguments').getArgs local SepEntries = require('Module:Separated entries') local StringUtils = require('Modul:StringUtils') local DateUtils = require('Modul:DateUtils') local GregorianDate = require('Modul:GregorianDate') local Citation = require('Modul:Citation/CS1') local TableTools = require('Modul:TableTools') local LangUtils = require('Modul:LangUtils') local plural = require('Modul:Plural').build_plural local Transliteration = require('M... actuală
  • 19:5214 iulie 2024 19:52 dif ist +27.699 N Modul:InfoboxBiographyPagină nouă: local p = {} local getArgs = require('Modul:Arguments').getArgs local wikidata = require('Modul:Wikidata') local lc = require('Modul:LocationAndCountry') local bda = require('Modul:BirthDateAndAge') local infobox = require('Modul:Infobox') local infoboxImage = require('Modul:InfoboxImage').InfoboxImage local join = require('Modul:Separated entries')._main local StringUtils = require('Modul:StringUtils') local DateUtils = require('Modul:DateUtils') local Lang = require('Modul:... actuală
  • 19:5014 iulie 2024 19:50 dif ist −19 Pagina principală→‎Enciclopedia Populară Moldovenească Etichetă: Editare vizuală

13 iulie 2024

(cele mai noi | cele mai vechi) Vezi (50 mai noi | ) (20 | 50 | 100 | 250 | 500)