<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="uz">
	<id>https://ziyosfera.uz/index.php?action=history&amp;feed=atom&amp;title=Modul%3AWarning</id>
	<title>Modul:Warning - Oʻzgarishlar tarixi</title>
	<link rel="self" type="application/atom+xml" href="https://ziyosfera.uz/index.php?action=history&amp;feed=atom&amp;title=Modul%3AWarning"/>
	<link rel="alternate" type="text/html" href="https://ziyosfera.uz/index.php?title=Modul:Warning&amp;action=history"/>
	<updated>2026-11-19T07:59:15Z</updated>
	<subtitle>Ziyosferadagi mazkur sahifaning oʻzgarishlar tarixi</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://ziyosfera.uz/index.php?title=Modul:Warning&amp;diff=110838&amp;oldid=prev</id>
		<title>Programmer: Oʻzbekcha Vikipediyadan import qilindi.</title>
		<link rel="alternate" type="text/html" href="https://ziyosfera.uz/index.php?title=Modul:Warning&amp;diff=110838&amp;oldid=prev"/>
		<updated>2026-08-06T12:12:44Z</updated>

		<summary type="html">&lt;p&gt;Oʻzbekcha Vikipediyadan import qilindi.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Yangi sahifa&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local libraryUtil = require(&amp;#039;libraryUtil&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local wrapper = &amp;quot;%s&amp;quot; -- wikitext formatting&lt;br /&gt;
local msg_loc = &amp;quot;Lua warning in %s at line %d: %s.&amp;quot;&lt;br /&gt;
local msg = &amp;quot;Lua warning: %s.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
return function (message, level)&lt;br /&gt;
	libraryUtil.checkType(&amp;#039;warn&amp;#039;, 2, level, &amp;#039;number&amp;#039;, true)&lt;br /&gt;
	level = level or 1&lt;br /&gt;
	if level &amp;gt; 0 then&lt;br /&gt;
		local _, location = pcall(error, &amp;#039;&amp;#039;, level+2)&lt;br /&gt;
		if location ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			location = mw.text.split(location:sub(1,-3), &amp;#039;:%f[%d]&amp;#039;)&lt;br /&gt;
			message = msg_loc:format(location[1], location[2], message)&lt;br /&gt;
		else&lt;br /&gt;
			message = msg:format(message)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		message = msg:format(message)&lt;br /&gt;
	end&lt;br /&gt;
	mw.addWarning(wrapper:format(message))&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Programmer</name></author>
	</entry>
</feed>