Википєдїꙗ cuwiki https://cu.wikipedia.org/wiki/%D0%93%D0%BB%D0%B0%D0%B2%D1%8C%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0 MediaWiki 1.47.0-wmf.24 first-letter Срѣдьства Нарочьна Бєсѣда Польꙃєватєл҄ь Польꙃєватєлꙗ бєсѣда Википєдїꙗ Википєдїѩ бєсѣда Дѣло Дѣла бєсѣда MediaWiki MediaWiki бєсѣда Обраꙁьць Обраꙁьца бєсѣда Помощь Помощи бєсѣда Катигорїꙗ Катигорїѩ бєсѣда TimedText TimedText talk Module Module talk Event Event talk Ꙁълинъ 0 8180 88059 86340 2026-10-20T04:49:10Z CommonsDelinker 70 Replacing CZ_Zlin_COA.svg with [[File:CZ_Zlín_COA.svg]] (by [[:c:User:CommonsDelinker|CommonsDelinker]] because: [[:c:COM:FR|File renamed]]: [[:c:COM:FR#FR1|Criterion 1]] (original uploader’s request)). 88059 wikitext text/x-wiki {{coord|display=title|49|13|59|N|17|40|1|E|type:city}} {{Градъ|Имѧ = Ꙁълинъ | Тѷпъ= градъ | знамѧ= Flag of Zlin.svg | знакъ = CZ Zlín COA.svg | Дрьжава = {{Чешьска знамѧ}} Чєшьско | Глава = | Людии = 75 тꙑсѫщѧ | Основанъ = | Харта = |}} [[Дѣло:20150531 130939 stitch.jpg|thumb|left|Ꙁълинъ]] '''Ꙁълинъ''' и {{Lang-cs|Zlín}} [zliːn] · [[Чешьско|Чєшьска]] Ꙁълиньска краꙗ главьнъ [[градъ]] ѥстъ ⁙ Людии обитаѥтъ 75 тꙑсѫщь ⁙ Ꙁьданъ ѥстъ рѣцѣ [[Дрѣвьница|Дрѣвьницѣ]] == ꙁьри такождє == {{commonscat|Zlín}} * [http://www.zlin.eu/ Ꙁълинъ Мєждоусѣтии] [[Катигорїꙗ:Чєшьско]] 6v11nhjqrqc5yw098k4ev8hxdlb8q0j Module:Числєниѥ лѣтъ 828 11196 88060 2026-10-20T09:45:03Z Qamen 30020 сътворѥниѥ модоула числениꙗ лѣтъ 88060 Scribunto text/plain -- Calendar calculation module for MediaWiki Scribunto. -- No HTML, CSS or language-dependent month/weekday names here. -- Civil dates use astronomical year numbering internally: 1 BC = year 0. -- Byzantine years begin on 1 September of the JULIAN calendar. -- Today's date uses a fixed UTC+02:00 offset; it is not a user's local date. local p = {} local floor = math.floor local function leap(y, cal) if cal == 'julian' then return y % 4 == 0 end return y % 4 == 0 and (y % 100 ~= 0 or y % 400 == 0) end local function days_in_month(y, m, cal) local lengths = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } if m == 2 and leap(y, cal) then return 29 end return lengths[m] end -- Integer Julian Day Number, Gregorian or Julian proleptic calendar. local function to_jdn(y, m, d, cal) local a = floor((14 - m) / 12) local yy = y + 4800 - a local mm = m + 12 * a - 3 local result = d + floor((153 * mm + 2) / 5) + 365 * yy + floor(yy / 4) if cal == 'gregorian' then return result - floor(yy / 100) + floor(yy / 400) - 32045 end return result - 32083 end local function from_jdn(jdn, cal) local a if cal == 'gregorian' then local b = jdn + 32044 local c = floor((4 * b + 3) / 146097) local d = b - floor(146097 * c / 4) local e = floor((4 * d + 3) / 1461) local f = d - floor(1461 * e / 4) local m = floor((5 * f + 2) / 153) return 100 * c + e - 4800 + floor(m / 10), m + 3 - 12 * floor(m / 10), f - floor((153 * m + 2) / 5) + 1 end a = jdn + 32082 local b = floor((4 * a + 3) / 1461) local c = a - floor(1461 * b / 4) local m = floor((5 * c + 2) / 153) return b - 4800 + floor(m / 10), m + 3 - 12 * floor(m / 10), c - floor((153 * m + 2) / 5) + 1 end local EPOCH_AM = to_jdn(-5508, 9, 1, 'julian') local function integer(value) local n = tonumber(value) if n == nil or n ~= floor(n) or n ~= n or math.abs(n) > 100000 then return nil end return n end local function input_jdn(args) local source = args.source or 'today' if source == 'today' then -- UTC+02:00, fixed year-round. Reading the UTC hour rather than -- os.time() avoids a one-second parser cache lifetime. local now = os.date('!*t') local jdn = to_jdn(now.year, now.month, now.day, 'gregorian') if now.hour >= 22 then jdn = jdn + 1 end return jdn end if source ~= 'am' and source ~= 'julian' and source ~= 'gregorian' then return nil, 'invalid' end local y = integer(args.year) local m = integer(args.month) local d = integer(args.day) if not y or not m or not d or y < 1 or m < 1 or m > 12 or d < 1 then return nil, 'invalid' end local cal = source if source == 'am' then cal = 'julian' y = y - (m >= 9 and 5509 or 5508) else local era = args.era or 'ad' if era == 'bc' then y = 1 - y elseif era ~= 'ad' then return nil, 'invalid' end end if d > days_in_month(y, m, cal) then return nil, 'invalid' end local jdn = to_jdn(y, m, d, cal) if source == 'am' and jdn < EPOCH_AM then return nil, 'invalid' end return jdn end local function compute(args) local jdn, err = input_jdn(args) if not jdn then return { status = err or 'invalid' } end local target = args.target or 'gregorian' if target ~= 'am' and target ~= 'julian' and target ~= 'gregorian' then return { status = 'invalid' } end local jy, jm, jd = from_jdn(jdn, 'julian') local am_year = jy + (jm >= 9 and 5509 or 5508) local result = { status = (target == 'am' and jdn < EPOCH_AM) and 'before_am' or 'ok', weekday = (jdn % 7) + 1, -- 1 = Monday; 7 = Sunday indiction = (jdn >= EPOCH_AM) and ((am_year - 1) % 15 + 1) or nil, utc = 'UTC+2', } if target == 'am' then if result.status == 'ok' then result.year, result.month, result.day = am_year, jm, jd result.era = 'am' end else local y, m, d if target == 'julian' then y, m, d = jy, jm, jd else y, m, d = from_jdn(jdn, 'gregorian') end result.year = y <= 0 and (1 - y) or y result.month, result.day = m, d result.era = y <= 0 and 'bc' or 'ad' end return result end -- Returns a single unformatted value, to be used in any wiki template. -- Usage: {{#invoke:Числениѥ лѣтъ|get|source=today|target=am|field=year}} function p.get(frame) local args = frame.args or {} local data = compute(args) local field = args.field or 'year' local allowed = { year = true, month = true, day = true, era = true, indiction = true, weekday = true, utc = true, status = true, } if not allowed[field] then return '' end local value = data[field] return value ~= nil and tostring(value) or '' end function p.today(frame) local args = {} for key, value in pairs(frame.args or {}) do args[key] = value end args.source = 'today' return p.get({ args = args }) end -- Optional Lua API for other modules, without parsing or HTML. p.compute = compute return p bfnz2kbzbrxty093gwzqe6gjuk7syfn 88061 88060 2026-10-20T10:34:55Z Qamen 30020 Qamen нарєчє страницѫ ⁖ [[Module:Числениѥ лѣтъ]] ⁖ имєньмь ⁖ [[Module:Числєниѥ лѣтъ]] ⁖: Misspelled title 88060 Scribunto text/plain -- Calendar calculation module for MediaWiki Scribunto. -- No HTML, CSS or language-dependent month/weekday names here. -- Civil dates use astronomical year numbering internally: 1 BC = year 0. -- Byzantine years begin on 1 September of the JULIAN calendar. -- Today's date uses a fixed UTC+02:00 offset; it is not a user's local date. local p = {} local floor = math.floor local function leap(y, cal) if cal == 'julian' then return y % 4 == 0 end return y % 4 == 0 and (y % 100 ~= 0 or y % 400 == 0) end local function days_in_month(y, m, cal) local lengths = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } if m == 2 and leap(y, cal) then return 29 end return lengths[m] end -- Integer Julian Day Number, Gregorian or Julian proleptic calendar. local function to_jdn(y, m, d, cal) local a = floor((14 - m) / 12) local yy = y + 4800 - a local mm = m + 12 * a - 3 local result = d + floor((153 * mm + 2) / 5) + 365 * yy + floor(yy / 4) if cal == 'gregorian' then return result - floor(yy / 100) + floor(yy / 400) - 32045 end return result - 32083 end local function from_jdn(jdn, cal) local a if cal == 'gregorian' then local b = jdn + 32044 local c = floor((4 * b + 3) / 146097) local d = b - floor(146097 * c / 4) local e = floor((4 * d + 3) / 1461) local f = d - floor(1461 * e / 4) local m = floor((5 * f + 2) / 153) return 100 * c + e - 4800 + floor(m / 10), m + 3 - 12 * floor(m / 10), f - floor((153 * m + 2) / 5) + 1 end a = jdn + 32082 local b = floor((4 * a + 3) / 1461) local c = a - floor(1461 * b / 4) local m = floor((5 * c + 2) / 153) return b - 4800 + floor(m / 10), m + 3 - 12 * floor(m / 10), c - floor((153 * m + 2) / 5) + 1 end local EPOCH_AM = to_jdn(-5508, 9, 1, 'julian') local function integer(value) local n = tonumber(value) if n == nil or n ~= floor(n) or n ~= n or math.abs(n) > 100000 then return nil end return n end local function input_jdn(args) local source = args.source or 'today' if source == 'today' then -- UTC+02:00, fixed year-round. Reading the UTC hour rather than -- os.time() avoids a one-second parser cache lifetime. local now = os.date('!*t') local jdn = to_jdn(now.year, now.month, now.day, 'gregorian') if now.hour >= 22 then jdn = jdn + 1 end return jdn end if source ~= 'am' and source ~= 'julian' and source ~= 'gregorian' then return nil, 'invalid' end local y = integer(args.year) local m = integer(args.month) local d = integer(args.day) if not y or not m or not d or y < 1 or m < 1 or m > 12 or d < 1 then return nil, 'invalid' end local cal = source if source == 'am' then cal = 'julian' y = y - (m >= 9 and 5509 or 5508) else local era = args.era or 'ad' if era == 'bc' then y = 1 - y elseif era ~= 'ad' then return nil, 'invalid' end end if d > days_in_month(y, m, cal) then return nil, 'invalid' end local jdn = to_jdn(y, m, d, cal) if source == 'am' and jdn < EPOCH_AM then return nil, 'invalid' end return jdn end local function compute(args) local jdn, err = input_jdn(args) if not jdn then return { status = err or 'invalid' } end local target = args.target or 'gregorian' if target ~= 'am' and target ~= 'julian' and target ~= 'gregorian' then return { status = 'invalid' } end local jy, jm, jd = from_jdn(jdn, 'julian') local am_year = jy + (jm >= 9 and 5509 or 5508) local result = { status = (target == 'am' and jdn < EPOCH_AM) and 'before_am' or 'ok', weekday = (jdn % 7) + 1, -- 1 = Monday; 7 = Sunday indiction = (jdn >= EPOCH_AM) and ((am_year - 1) % 15 + 1) or nil, utc = 'UTC+2', } if target == 'am' then if result.status == 'ok' then result.year, result.month, result.day = am_year, jm, jd result.era = 'am' end else local y, m, d if target == 'julian' then y, m, d = jy, jm, jd else y, m, d = from_jdn(jdn, 'gregorian') end result.year = y <= 0 and (1 - y) or y result.month, result.day = m, d result.era = y <= 0 and 'bc' or 'ad' end return result end -- Returns a single unformatted value, to be used in any wiki template. -- Usage: {{#invoke:Числениѥ лѣтъ|get|source=today|target=am|field=year}} function p.get(frame) local args = frame.args or {} local data = compute(args) local field = args.field or 'year' local allowed = { year = true, month = true, day = true, era = true, indiction = true, weekday = true, utc = true, status = true, } if not allowed[field] then return '' end local value = data[field] return value ~= nil and tostring(value) or '' end function p.today(frame) local args = {} for key, value in pairs(frame.args or {}) do args[key] = value end args.source = 'today' return p.get({ args = args }) end -- Optional Lua API for other modules, without parsing or HTML. p.compute = compute return p bfnz2kbzbrxty093gwzqe6gjuk7syfn Module:Числениѥ лѣтъ 828 11197 88062 2026-10-20T10:34:55Z Qamen 30020 Qamen нарєчє страницѫ ⁖ [[Module:Числениѥ лѣтъ]] ⁖ имєньмь ⁖ [[Module:Числєниѥ лѣтъ]] ⁖: Misspelled title 88062 Scribunto text/plain return require [[Module:Числєниѥ лѣтъ]] bgcpxegy4bcsvvznvcjw1rluw74tco8 Module:Числєниѥ лѣтъ/doc 828 11198 88063 2026-10-20T10:47:13Z Qamen 30020 сътворєниѥ слова къ модоулєви: Числєниѥ лѣтъ 88063 wikitext text/x-wiki == Словѣньска == '''Числєниѥ лѣтъ''' ѥстъ писаниѥ ѩꙁꙑцѣмъ Lua имьжє прѣлагаѭтъ числа дьнии и лѣтъ ѿ ѥдинаго числєниꙗ къ дроугомоу⁙ Сє писаниѥ имѣтъ три числєниꙗ · ромѣискоѥ ѿ начѧла мира · иоулиѥво и григориѥво⁙ Лѣто ѿ начѧла мира починаѥтъ въ 1 дьнь сєптѧбра по иоулиѥвоу числєниѭ⁙ Писаниѥ даѥтъ ѥдино число либо кратъко имѧ · нижє оустроѥниѥ таблицъ⁙ Инии обраꙁьци да приимоутъ сиꙗ числа и полагаѭтъ къ нимъ надъписаниꙗ и шарꙑ⁙ === Обраꙁꙑ оупотрѣблєниꙗ === '''Нꙑнѣшьнѥѥ лѣто ѿ начѧла мира''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|today|target=am|field=year}}</nowiki></pre> '''Їндїктъ нꙑнѣшьнѧго лѣта''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|today|target=am|field=indiction}}</nowiki></pre> '''Прѣложєниѥ 20 октѧбра 2026 лѣта по григориѥвоу числєниѭ въ лѣто ѿ начѧла мира''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|get|source=gregorian|year=2026|month=10|day=20|target=am|field=year}}</nowiki></pre> Сє даѥтъ '''7535'''⁙ '''Прѣложєниѥ 7 октѧбра 7535 лѣта ѿ начѧла мира на григориѥво числєниѥ''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|get|source=am|year=7535|month=10|day=7|target=gregorian|field=day}}</nowiki></pre> Сє даѥтъ '''20'''⁙ === Имєна и числа === * <code>source</code> · числєниѥ ѿ нєго жє писаниѥ приимлѥтъ дьнь⁙ Имєна сѫтъ <code>today</code> · <code>am</code> · <code>julian</code> · <code>gregorian</code>⁙ * <code>target</code> · числєниѥ въ нєжє писаниѥ прѣлагаѥтъ дьнь⁙ Имєна сѫтъ <code>am</code> · <code>julian</code> · <code>gregorian</code>⁙ * <code>year</code> · число лѣта⁙ * <code>month</code> · число мѣсѧца ѿ 1 до 12⁙ * <code>day</code> · число дьнє въ мѣсѧци⁙ * <code>era</code> · <code>ad</code> по рождьствѣ Хрїстовѣ либо <code>bc</code> прѣждє рождьства Хрїстова⁙ Сє имѧ потрѣбьно при иоулиѥвѣ и григориѥвѣ числєнии⁙ * <code>field</code> · имѧ искомага числа либо слова⁙ Имєна сѫтъ <code>year</code> · <code>month</code> · <code>day</code> · <code>era</code> · <code>weekday</code> · <code>indiction</code> · <code>utc</code> · <code>status</code>⁙ <code>weekday</code> даѥтъ число дьнє сєдмицꙑ ѿ 1 до 7 · 1 ѥстъ понєдѣльникъ · 7 нєдѣлꙗ⁙ <code>indiction</code> даѥтъ число їндїкта ѿ 1 до 15⁙ <code>utc</code> даѥтъ <code>UTC+2</code>⁙ <code>status</code> даѥтъ ѥдино ѿ сихъ словєсъ⁙ * <code>ok</code> · число обрѣтєно⁙ * <code>invalid</code> · число нєподобьно либо имѧ нєприѧто⁙ * <code>before_am</code> · искомꙑи дьнь прѣждє начѧла числєниꙗ ѿ начѧла мира⁙ Ащє <code>source</code> нє написано приимлѥтъ <code>today</code>⁙ Ащє <code>target</code> нє написано приимлѥтъ <code>gregorian</code>⁙ Ащє <code>field</code> нє написано приимлѥтъ <code>year</code>⁙ === Нꙑнѣшьнии дьнь === Нꙑнѣ писаниѥ приимлѥтъ врѣмѧ ѿ слоужьбьнаго оустроѥниꙗ Википєдїѩ а нє ѿ оустроѥниꙗ чьтоущаго⁙ Къ врѣмєни <code>UTC</code> прилагаѥтъ 2 часа и лѣтѣ и ꙁимѣ⁙ Сє оустроѥниѥ до врѣмєнє прїѧто⁙ Егда жє мѣстьноѥ врѣмѧ чьтоущаго приимати начьнѫтъ прѣмѣнимъ сь обꙑчаи⁙ Иногъда Википєдїꙗ прѣждьнѥѥ число дьнє на страницѣ покаꙁоуѥтъ бо страницѫ прѣждє оустрои⁙ === Оупотрѣблєниѥ въ инѣхъ писаниихъ Lua === Инии писаниꙗ Lua могѫтъ приимати числа ѿ <code>compute</code>⁙ <pre><nowiki>local calendar = require('Module:Числєниѥ лѣтъ') local result = calendar.compute({ source = 'gregorian', year = 2026, month = 10, day = 20, target = 'am' }) -- result.year == 7535</nowiki></pre> == English == '''Числєниѥ лѣтъ''' is a reusable Scribunto module written in Lua. It converts dates between the Byzantine Anno Mundi (<code>am</code>), Julian (<code>julian</code>), and Gregorian (<code>gregorian</code>) calendars. Byzantine years start on 1 September in the Julian calendar. The module returns individual numbers or short identifiers rather than formatted dates or HTML. Templates and other modules can supply their own translated month and weekday names, layout, and visual styling. === Examples === '''Current Byzantine year''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|today|target=am|field=year}}</nowiki></pre> '''Current indiction''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|today|target=am|field=indiction}}</nowiki></pre> '''Gregorian 20 October 2026 to Byzantine year''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|get|source=gregorian|year=2026|month=10|day=20|target=am|field=year}}</nowiki></pre> Returns '''7535'''. '''Byzantine 7 October 7535 to Gregorian day of the month''' <pre><nowiki>{{#invoke:Числєниѥ лѣтъ|get|source=am|year=7535|month=10|day=7|target=gregorian|field=day}}</nowiki></pre> Returns '''20'''. === Parameters === * <code>source</code> - input calendar: <code>today</code>, <code>am</code>, <code>julian</code>, or <code>gregorian</code>. * <code>target</code> - output calendar: <code>am</code>, <code>julian</code>, or <code>gregorian</code>. * <code>year</code> - positive integer year; there is no year zero in the input. * <code>month</code> - month number, 1 to 12. * <code>day</code> - day of the month. * <code>era</code> - <code>ad</code> or <code>bc</code> for Julian and Gregorian input; defaults to <code>ad</code>. * <code>field</code> - requested output: <code>year</code>, <code>month</code>, <code>day</code>, <code>era</code>, <code>weekday</code>, <code>indiction</code>, <code>utc</code>, or <code>status</code>. The <code>weekday</code> field returns 1 for Monday through 7 for Sunday. The <code>indiction</code> field returns 1 through 15 for supported Anno Mundi dates. The <code>utc</code> field returns <code>UTC+2</code>. The <code>status</code> field returns <code>ok</code> for a successful calculation, <code>invalid</code> for invalid input, and <code>before_am</code> if the requested Byzantine date precedes the epoch. For such dates, the Byzantine year field is unavailable. Defaults: <code>source=today</code>, <code>target=gregorian</code>, and <code>field=year</code>. Input dates must be valid in their specified calendar. The <code>am</code> input uses Julian month and day numbering, with its year changing on 1 September. The module uses astronomical year numbering internally (year 0 = 1 BC). Julian and Gregorian dates before the historical introduction of those calendars are calculated proleptically. === Current date: temporary solution === The current-date function reads the MediaWiki server's UTC clock and applies a fixed '''UTC+2''' offset all year. This is '''a temporary compromise''': it does not determine the reader's actual local date or time zone, and it does not switch between summer and winter time. The intention is to replace this server-based date source with the reader's local date when an appropriate client-side mechanism becomes available, while retaining the existing calendar calculations. MediaWiki page caching can also delay the displayed date beyond midnight in UTC+2. === Lua API === Other Scribunto modules can call <code>compute</code> directly: <pre><nowiki>local calendar = require('Module:Числєниѥ лѣтъ') local result = calendar.compute({ source = 'gregorian', year = 2026, month = 10, day = 20, target = 'am' }) -- result.year == 7535</nowiki></pre> The returned Lua table contains the requested date fields, a weekday number, an indiction number when available, a UTC offset label, and a status code. The public <code>get</code> and <code>today</code> entry points return one selected field for use in wikitext. 5wkh47hcgnt643liw0rvjah8p9wopfr