<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ar">
	<id>https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3AFlaglist%2Fsize</id>
	<title>وحدة:Flaglist/size - تاريخ المراجعة</title>
	<link rel="self" type="application/atom+xml" href="https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3AFlaglist%2Fsize"/>
	<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Flaglist/size&amp;action=history"/>
	<updated>2026-06-05T16:26:02Z</updated>
	<subtitle>تاريخ التعديل لهذه الصفحة في الويكي</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Flaglist/size&amp;diff=206&amp;oldid=prev</id>
		<title>عبد العزيز: أنشأ الصفحة ب&#039;-- Calculates the width of the span box for قالب:Flaglist -- based on the specified image size  local p = {}  function p.luawidth(size) --For use within Lua  loc...&#039;</title>
		<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Flaglist/size&amp;diff=206&amp;oldid=prev"/>
		<updated>2015-08-08T20:00:31Z</updated>

		<summary type="html">&lt;p&gt;أنشأ الصفحة ب&amp;#039;-- Calculates the width of the span box for &lt;a href=&quot;/%D9%82%D8%A7%D9%84%D8%A8:Flaglist&quot; title=&quot;قالب:Flaglist&quot;&gt;قالب:Flaglist&lt;/a&gt; -- based on the specified image size  local p = {}  function p.luawidth(size) --For use within Lua  loc...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحة جديدة&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Calculates the width of the span box for [[قالب:Flaglist]]&lt;br /&gt;
-- based on the specified image size&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.luawidth(size)&lt;br /&gt;
--For use within Lua&lt;br /&gt;
&lt;br /&gt;
local w&lt;br /&gt;
local h&lt;br /&gt;
&lt;br /&gt;
if string.match(size,&amp;quot;^%d+x%d+px$&amp;quot;) ~= nil then -- width and height (eg. 20x10px)&lt;br /&gt;
  -- use specified width&lt;br /&gt;
  w = string.gsub(size,&amp;quot;(%d+)x%d+px&amp;quot;,&amp;quot;%1&amp;quot;)&lt;br /&gt;
elseif string.match(size,&amp;quot;^%d+px$&amp;quot;) ~= nil then -- width only (eg. 20px)&lt;br /&gt;
  -- use specified width&lt;br /&gt;
  w = string.gsub(size,&amp;quot;(%d+)px&amp;quot;,&amp;quot;%1&amp;quot;)&lt;br /&gt;
elseif string.match(size,&amp;quot;^x%d+px$&amp;quot;) ~= nil then -- height only (eg. x10px)&lt;br /&gt;
  -- assume a width based on the height&lt;br /&gt;
  h = string.gsub(size,&amp;quot;x(%d+)px&amp;quot;,&amp;quot;%1&amp;quot;)&lt;br /&gt;
  w = h * 2.2&lt;br /&gt;
  w = math.floor(w+0.5) -- round to integer&lt;br /&gt;
else -- empty or invalid input&lt;br /&gt;
  w = 23 -- default width for flagicons&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
w = w + 7 -- extra whitespace between icon and link&lt;br /&gt;
return w&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.width(frame)&lt;br /&gt;
--For external use&lt;br /&gt;
&lt;br /&gt;
return p.luawidth(frame[&amp;quot;args&amp;quot;][1])&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>عبد العزيز</name></author>
	</entry>
</feed>