<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki-data.rcsi.science/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AHigh-use</id>
	<title>Модуль:High-use - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-data.rcsi.science/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AHigh-use"/>
	<link rel="alternate" type="text/html" href="https://wiki-data.rcsi.science/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:High-use&amp;action=history"/>
	<updated>2026-04-03T17:52:03Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki-data.rcsi.science/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:High-use&amp;diff=502&amp;oldid=prev</id>
		<title>Admin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="https://wiki-data.rcsi.science/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:High-use&amp;diff=502&amp;oldid=prev"/>
		<updated>2021-11-15T12:53:46Z</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;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия 12:53, 15 ноября 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff::1.12:old-501:rev-502 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki-data.rcsi.science/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:High-use&amp;diff=501&amp;oldid=prev</id>
		<title>ru&gt;GKFX: Link to https://linkcount.toolforge.org/ which is more detailed and mobile-friendly</title>
		<link rel="alternate" type="text/html" href="https://wiki-data.rcsi.science/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:High-use&amp;diff=501&amp;oldid=prev"/>
		<updated>2021-11-01T21:11:55Z</updated>

		<summary type="html">&lt;p&gt;Link to https://linkcount.toolforge.org/ which is more detailed and mobile-friendly&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- _fetch looks at the &amp;quot;demo&amp;quot; argument.&lt;br /&gt;
local _fetch = require('Module:Transclusion_count').fetch&lt;br /&gt;
local yesno = require('Module:Yesno')&lt;br /&gt;
&lt;br /&gt;
function p.num(frame, count)&lt;br /&gt;
	if count == nil then&lt;br /&gt;
		if yesno(frame.args['fetch']) == false then&lt;br /&gt;
			if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end&lt;br /&gt;
		else&lt;br /&gt;
			count = _fetch(frame)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Build output string&lt;br /&gt;
	local return_value = &amp;quot;&amp;quot;&lt;br /&gt;
	if count == nil then&lt;br /&gt;
		if frame.args[1] == &amp;quot;risk&amp;quot; then&lt;br /&gt;
			return_value = &amp;quot;a very large number of&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			return_value = &amp;quot;many&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- Use 2 significant figures for smaller numbers and 3 for larger ones&lt;br /&gt;
		local sigfig = 2&lt;br /&gt;
		if count &amp;gt;= 100000 then&lt;br /&gt;
			sigfig = 3&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- Prepare to round to appropriate number of sigfigs&lt;br /&gt;
		local f = math.floor(math.log10(count)) - sigfig + 1&lt;br /&gt;
		&lt;br /&gt;
		-- Round and insert &amp;quot;approximately&amp;quot; or &amp;quot;+&amp;quot; when appropriate&lt;br /&gt;
		if (frame.args[2] == &amp;quot;yes&amp;quot;) or (mw.ustring.sub(frame.args[1],-1) == &amp;quot;+&amp;quot;) then&lt;br /&gt;
			-- Round down&lt;br /&gt;
			return_value = string.format(&amp;quot;%s+&amp;quot;, mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) ) * (10^(f))) )&lt;br /&gt;
		else&lt;br /&gt;
			-- Round to nearest&lt;br /&gt;
			return_value = string.format(&amp;quot;approximately&amp;amp;#x20;%s&amp;quot;, mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) + 0.5) * (10^(f))) )&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Insert percentage of pages if that is likely to be &amp;gt;= 1% and when |no-percent= not set to yes&lt;br /&gt;
		if count and count &amp;gt; 250000 and not yesno (frame:getParent().args['no-percent']) then&lt;br /&gt;
			local percent = math.floor( ( (count/frame:callParserFunction('NUMBEROFPAGES', 'R') ) * 100) + 0.5)&lt;br /&gt;
			if percent &amp;gt;= 1 then&lt;br /&gt;
				return_value = string.format(&amp;quot;%s&amp;amp;#x20;pages, or roughly %s%% of all&amp;quot;, return_value, percent)&lt;br /&gt;
			end&lt;br /&gt;
		end	&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return return_value&lt;br /&gt;
end&lt;br /&gt;
-- Actions if there is a large (greater than or equal to 100,000) transclusion count&lt;br /&gt;
function p.risk(frame)&lt;br /&gt;
	local return_value = &amp;quot;&amp;quot;&lt;br /&gt;
	if frame.args[1] == &amp;quot;risk&amp;quot; then&lt;br /&gt;
		return_value = &amp;quot;risk&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		local count = _fetch(frame)&lt;br /&gt;
		if count and count &amp;gt;= 100000 then return_value = &amp;quot;risk&amp;quot; end&lt;br /&gt;
	end&lt;br /&gt;
	return return_value&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.text(frame, count)&lt;br /&gt;
	-- Only show the information about how this template gets updated if someone&lt;br /&gt;
	-- is actually editing the page and maybe trying to update the count.&lt;br /&gt;
	local bot_text = (frame:preprocess(&amp;quot;{{REVISIONID}}&amp;quot;) == &amp;quot;&amp;quot;) and &amp;quot;\n\n----\n'''Preview message''': Transclusion count updated automatically ([[Template:High-use/doc#Technical details|see documentation]]).&amp;quot; or ''&lt;br /&gt;
	&lt;br /&gt;
	if count == nil then&lt;br /&gt;
		if yesno(frame.args['fetch']) == false then&lt;br /&gt;
			if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end&lt;br /&gt;
		else&lt;br /&gt;
			count = _fetch(frame)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local title = mw.title.getCurrentTitle()&lt;br /&gt;
	if title.subpageText == &amp;quot;doc&amp;quot; or title.subpageText == &amp;quot;sandbox&amp;quot; then&lt;br /&gt;
		title = title.basePageTitle&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local systemMessages = frame.args['system']&lt;br /&gt;
	if frame.args['system'] == '' then&lt;br /&gt;
		systemMessages = nil&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- This retrieves the project URL automatically to simplify localiation.&lt;br /&gt;
	local templateCount = ('on [https://linkcount.toolforge.org/index.php?project=%s&amp;amp;page=%s %s pages]'):format(&lt;br /&gt;
		mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'),&lt;br /&gt;
		mw.uri.encode(title.fullText), p.num(frame, count))&lt;br /&gt;
	local used_on_text = &amp;quot;'''This &amp;quot; .. (mw.title.getCurrentTitle().namespace == 828 and &amp;quot;Lua module&amp;quot; or &amp;quot;template&amp;quot;) .. ' is used ';&lt;br /&gt;
	if systemMessages then&lt;br /&gt;
		used_on_text = used_on_text .. systemMessages ..&lt;br /&gt;
			((count and count &amp;gt; 2000) and (&amp;quot;,''' and &amp;quot; .. templateCount) or (&amp;quot;'''&amp;quot;))&lt;br /&gt;
	else&lt;br /&gt;
		used_on_text = used_on_text .. templateCount .. &amp;quot;'''&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	local sandbox_text =  (&amp;quot;%s's [[%s/sandbox|/sandbox]] or [[%s/testcases|/testcases]] subpages, or in your own [[%s]]. &amp;quot;):format(&lt;br /&gt;
		(mw.title.getCurrentTitle().namespace == 828 and &amp;quot;module&amp;quot; or &amp;quot;template&amp;quot;),&lt;br /&gt;
		title.fullText, title.fullText,&lt;br /&gt;
		mw.title.getCurrentTitle().namespace == 828 and &amp;quot;Module:Sandbox|module sandbox&amp;quot; or &amp;quot;Wikipedia:User pages#SUB|user subpage&amp;quot;&lt;br /&gt;
	)&lt;br /&gt;
	&lt;br /&gt;
	local infoArg = frame.args[&amp;quot;info&amp;quot;] ~= &amp;quot;&amp;quot; and frame.args[&amp;quot;info&amp;quot;]&lt;br /&gt;
	if (systemMessages or frame.args[1] == &amp;quot;risk&amp;quot; or (count and count &amp;gt;= 100000) ) then&lt;br /&gt;
		local info = systemMessages and '.&amp;lt;br/&amp;gt;Changes to it can cause immediate changes to the Wikipedia user interface.' or '.'&lt;br /&gt;
		if infoArg then&lt;br /&gt;
			info = info .. &amp;quot;&amp;lt;br /&amp;gt;&amp;quot; .. infoArg&lt;br /&gt;
		end&lt;br /&gt;
		sandbox_text = info .. '&amp;lt;br /&amp;gt; To avoid major disruption' ..&lt;br /&gt;
			(count and count &amp;gt;= 100000 and ' and server load' or '') ..&lt;br /&gt;
			', any changes should be tested in the ' .. sandbox_text ..&lt;br /&gt;
			'The tested changes can be added to this page in a single edit. '&lt;br /&gt;
	else&lt;br /&gt;
		sandbox_text = (infoArg and ('.&amp;lt;br /&amp;gt;' .. infoArg .. ' C') or ' and c') ..&lt;br /&gt;
			'hanges may be widely noticed. Test changes in the ' .. sandbox_text&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
	local discussion_text = systemMessages and 'Please discuss changes ' or 'Consider discussing changes '&lt;br /&gt;
	if frame.args[&amp;quot;2&amp;quot;] and frame.args[&amp;quot;2&amp;quot;] ~= &amp;quot;&amp;quot; and frame.args[&amp;quot;2&amp;quot;] ~= &amp;quot;yes&amp;quot; then&lt;br /&gt;
		discussion_text = string.format(&amp;quot;%sat [[%s]]&amp;quot;, discussion_text, frame.args[&amp;quot;2&amp;quot;])&lt;br /&gt;
	else&lt;br /&gt;
		discussion_text = string.format(&amp;quot;%son the [[%s|talk page]]&amp;quot;, discussion_text, title.talkPageTitle.fullText )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return used_on_text .. sandbox_text .. discussion_text .. &amp;quot; before implementing them.&amp;quot; .. bot_text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local count = nil&lt;br /&gt;
	if yesno(frame.args['fetch']) == false then&lt;br /&gt;
		if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end&lt;br /&gt;
	else&lt;br /&gt;
		count = _fetch(frame)&lt;br /&gt;
	end&lt;br /&gt;
	local image = &amp;quot;[[File:Ambox warning yellow.svg|40px|alt=Warning|link=]]&amp;quot;&lt;br /&gt;
	local type_param = &amp;quot;style&amp;quot;&lt;br /&gt;
	local epilogue = ''&lt;br /&gt;
	if frame.args['system'] and frame.args['system'] ~= '' then&lt;br /&gt;
		image = &amp;quot;[[File:Ambox important.svg|40px|alt=Warning|link=]]&amp;quot;&lt;br /&gt;
		type_param = &amp;quot;content&amp;quot;&lt;br /&gt;
		local nocat = frame:getParent().args['nocat'] or frame.args['nocat']&lt;br /&gt;
		local categorise = (nocat == '' or not yesno(nocat))&lt;br /&gt;
		if categorise then&lt;br /&gt;
			epilogue = frame:preprocess('{{Sandbox other||{{#switch:{{#invoke:Effective protection level|{{#switch:{{NAMESPACE}}|File=upload|#default=edit}}|{{FULLPAGENAME}}}}|sysop|templateeditor|interfaceadmin=|#default=[[Category:Pages used in system messages needing protection]]}}}}')&lt;br /&gt;
		end&lt;br /&gt;
	elseif (frame.args[1] == &amp;quot;risk&amp;quot; or (count and count &amp;gt;= 100000)) then&lt;br /&gt;
		image = &amp;quot;[[File:Ambox warning orange.svg|40px|alt=Warning|link=]]&amp;quot;&lt;br /&gt;
		type_param = &amp;quot;content&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if frame.args[&amp;quot;form&amp;quot;] == &amp;quot;editnotice&amp;quot; then&lt;br /&gt;
		return frame:expandTemplate{&lt;br /&gt;
				title = 'editnotice',&lt;br /&gt;
				args = {&lt;br /&gt;
						[&amp;quot;image&amp;quot;] = image,&lt;br /&gt;
						[&amp;quot;text&amp;quot;] = p.text(frame, count),&lt;br /&gt;
						[&amp;quot;expiry&amp;quot;] = (frame.args[&amp;quot;expiry&amp;quot;] or &amp;quot;&amp;quot;)&lt;br /&gt;
				}&lt;br /&gt;
		} .. epilogue&lt;br /&gt;
	else&lt;br /&gt;
		return require('Module:Message box').main('ombox', {&lt;br /&gt;
			type = type_param,&lt;br /&gt;
			image = image,&lt;br /&gt;
			text = p.text(frame, count),&lt;br /&gt;
			expiry = (frame.args[&amp;quot;expiry&amp;quot;] or &amp;quot;&amp;quot;)&lt;br /&gt;
		}) .. epilogue&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>ru&gt;GKFX</name></author>
	</entry>
</feed>