<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://ru.ru-skazki.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AMetaCatDoc</id>
	<title>Модуль:MetaCatDoc - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://ru.ru-skazki.ru/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AMetaCatDoc"/>
	<link rel="alternate" type="text/html" href="http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:MetaCatDoc&amp;action=history"/>
	<updated>2026-04-08T09:19:33Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:MetaCatDoc&amp;diff=15721&amp;oldid=prev</id>
		<title>Импортёр: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:MetaCatDoc&amp;diff=15721&amp;oldid=prev"/>
		<updated>2024-05-02T08:21:02Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:21, 2 мая 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Импортёр</name></author>
	</entry>
	<entry>
		<id>http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:MetaCatDoc&amp;diff=15720&amp;oldid=prev</id>
		<title>ru&gt;Andras: Новая страница: «---*- mode: lua; coding: utf-8; -*-  local p = {}  local title = mw.title.getCurrentTitle().text local getArgs = require(&#039;Module:Arguments&#039;).getArgs local toroman = require(&#039;Module:Roman&#039;).convert  local ft = string.format  function p.main(frame)     local args = getArgs(frame)     title = args[&#039;title&#039;] or title     local templ = string.gsub(title, &#039;/doc$&#039;, &#039;&#039;) -- rm /doc     local text = mw.title.new(templ,10):getContent()     text = string.gsub(text, &#039;&lt;noi...»</title>
		<link rel="alternate" type="text/html" href="http://ru.ru-skazki.ru/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:MetaCatDoc&amp;diff=15720&amp;oldid=prev"/>
		<updated>2024-02-13T07:32:49Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «---*- mode: lua; coding: utf-8; -*-  local p = {}  local title = mw.title.getCurrentTitle().text local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs local toroman = require(&amp;#039;Module:Roman&amp;#039;).convert  local ft = string.format  function p.main(frame)     local args = getArgs(frame)     title = args[&amp;#039;title&amp;#039;] or title     local templ = string.gsub(title, &amp;#039;/doc$&amp;#039;, &amp;#039;&amp;#039;) -- rm /doc     local text = mw.title.new(templ,10):getContent()     text = string.gsub(text, &amp;#039;&amp;lt;noi...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;---*- mode: lua; coding: utf-8; -*-&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local title = mw.title.getCurrentTitle().text&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
local toroman = require(&amp;#039;Module:Roman&amp;#039;).convert&lt;br /&gt;
&lt;br /&gt;
local ft = string.format&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local args = getArgs(frame)&lt;br /&gt;
    title = args[&amp;#039;title&amp;#039;] or title&lt;br /&gt;
    local templ = string.gsub(title, &amp;#039;/doc$&amp;#039;, &amp;#039;&amp;#039;) -- rm /doc&lt;br /&gt;
    local text = mw.title.new(templ,10):getContent()&lt;br /&gt;
    text = string.gsub(text, &amp;#039;&amp;lt;noinclude&amp;gt;.-&amp;lt;/noinclude&amp;gt;&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
    text = string.gsub(text, &amp;#039;&amp;lt;!--.---&amp;gt;&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
    if string.find(text, &amp;#039;YearMetaCat2&amp;#039;) then&lt;br /&gt;
        mn = &amp;#039;YearMetaCat2&amp;#039;&lt;br /&gt;
    elseif string.find(text, &amp;#039;DecadeMetaCat&amp;#039;) then&lt;br /&gt;
        mn = &amp;#039;DecadeMetaCat&amp;#039;&lt;br /&gt;
    elseif string.find(text, &amp;#039;CenturyMetaCat&amp;#039;) then&lt;br /&gt;
        mn = &amp;#039;CenturyMetaCat&amp;#039;&lt;br /&gt;
    else&lt;br /&gt;
        error(&amp;#039;не найден модуль (YearMetaCat2/DecadeMetaCat/CenturyMetaCat)&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local ret = &amp;#039;;Добавляет категории:\n&amp;#039;&lt;br /&gt;
    local cats = string.gsub(text, &amp;#039;.-{{#invoke:&amp;#039;..mn..&amp;#039;|main(.-)}}.*&amp;#039;, &amp;#039;%1&amp;#039;)&lt;br /&gt;
    for _, c in ipairs(mw.text.split(cats, &amp;#039;|&amp;#039;, true)) do&lt;br /&gt;
        if c ~= &amp;#039;&amp;#039; and not string.find(c, &amp;#039;=&amp;#039;) then&lt;br /&gt;
            local cc = mw.text.split(c, &amp;#039;!&amp;#039;, true)&lt;br /&gt;
            local c1 = mw.text.trim(cc[1])&lt;br /&gt;
            if mn == &amp;#039;CenturyMetaCat&amp;#039; then&lt;br /&gt;
                local c3 = mw.text.trim(cc[3] or &amp;#039;&amp;#039;)&lt;br /&gt;
                local c4 = mw.text.trim(cc[4] or &amp;#039;&amp;#039;)&lt;br /&gt;
                local ss&lt;br /&gt;
                if c3 ~= &amp;#039;&amp;#039; and c4 ~= &amp;#039;&amp;#039; then&lt;br /&gt;
                    c3 = tonumber(c3)&lt;br /&gt;
                    c4 = tonumber(c4)&lt;br /&gt;
                    if c3 &amp;lt; 0 and c4 &amp;lt; 0 then&lt;br /&gt;
                        ss = ft(&amp;#039;с %s по %s века до н. э. «%s»&amp;#039;, toroman(-c3), toroman(-c4), c1)&lt;br /&gt;
                    elseif c3 &amp;lt; 0 and c4 &amp;gt; 0 then&lt;br /&gt;
                        ss = ft(&amp;#039;с %s века до н. э. по %s век «%s»&amp;#039;, toroman(-c3), toroman(c4), c1)&lt;br /&gt;
                    else&lt;br /&gt;
                        ss = ft(&amp;#039;с %s по %s века «%s»&amp;#039;, toroman(c3), toroman(c4), c1)&lt;br /&gt;
                    end&lt;br /&gt;
                elseif c3 ~= &amp;#039;&amp;#039; then&lt;br /&gt;
                    c3 = tonumber(c3)&lt;br /&gt;
                    if c3 &amp;lt; 0 then&lt;br /&gt;
                        ss = ft(&amp;#039;с %s века до н. э. «%s»&amp;#039;, toroman(-c3), c1)&lt;br /&gt;
                    else&lt;br /&gt;
                        ss = ft(&amp;#039;с %s века «%s»&amp;#039;, toroman(c3), c1)&lt;br /&gt;
                    end&lt;br /&gt;
                elseif c4 ~= &amp;#039;&amp;#039; then&lt;br /&gt;
                    c4 = tonumber(c4)&lt;br /&gt;
                    if c4 &amp;lt; 0 then&lt;br /&gt;
                        ss = ft(&amp;#039;до %s века до н. э. «%s»&amp;#039;, toroman(-c4), c1)&lt;br /&gt;
                    else&lt;br /&gt;
                        ss = ft(&amp;#039;до %s века «%s»&amp;#039;, toroman(c4), c1)&lt;br /&gt;
                    end&lt;br /&gt;
                else&lt;br /&gt;
                    ss = c1&lt;br /&gt;
                end&lt;br /&gt;
                ret = ret..&amp;#039;* &amp;#039;..ss..&amp;#039;\n&amp;#039;&lt;br /&gt;
            else -- not century&lt;br /&gt;
                ret = ret..&amp;#039;* &amp;#039;..c1..&amp;#039;\n&amp;#039;&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local templs = &amp;#039;&amp;#039;&lt;br /&gt;
    local n = 0&lt;br /&gt;
    for t in string.gmatch(text, &amp;#039;{{[^#].-}}&amp;#039;) do&lt;br /&gt;
        t = mw.text.trim(string.sub(t, 3, -3))&lt;br /&gt;
        t = string.gsub(t, &amp;#039;{{#invoke:&amp;#039;..mn..&amp;#039;|expand|&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
        n = n + 1&lt;br /&gt;
        local i = string.find(t, &amp;#039;|&amp;#039;)&lt;br /&gt;
        if i then&lt;br /&gt;
            local tn = string.sub(t, 0, i-1)&lt;br /&gt;
            local a = string.sub(t, i)&lt;br /&gt;
            templs = templs..ft(&amp;#039;* {{[[Ш:%s|%s]]%s}}\n&amp;#039;, tn, tn, a)&lt;br /&gt;
        else&lt;br /&gt;
            templs = templs..ft(&amp;#039;* {{[[Ш:%s|%s]]}}\n&amp;#039;, t, t)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    if n == 1 then&lt;br /&gt;
        ret = ret..&amp;#039;;Добавляет шаблон:\n&amp;#039;..templs&lt;br /&gt;
    elseif n &amp;gt; 1 then&lt;br /&gt;
        ret = ret..&amp;#039;;Добавляет шаблоны:\n&amp;#039;..templs&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>ru&gt;Andras</name></author>
	</entry>
</feed>