<?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%3ALuaCall</id>
	<title>وحدة:LuaCall - تاريخ المراجعة</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%3ALuaCall"/>
	<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:LuaCall&amp;action=history"/>
	<updated>2026-06-05T15:39:34Z</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:LuaCall&amp;diff=1003&amp;oldid=prev</id>
		<title>عبد العزيز: أنشأ الصفحة ب&#039;local p={}  function p.main(frame)     local parent=frame.getParent(frame) or {}     local reserved_value={}     local reserved_function,reserved_contents     for k,v in...&#039;</title>
		<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:LuaCall&amp;diff=1003&amp;oldid=prev"/>
		<updated>2016-08-30T22:03:18Z</updated>

		<summary type="html">&lt;p&gt;أنشأ الصفحة ب&amp;#039;local p={}  function p.main(frame)     local parent=frame.getParent(frame) or {}     local reserved_value={}     local reserved_function,reserved_contents     for k,v in...&amp;#039;&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;
function p.main(frame)&lt;br /&gt;
    local parent=frame.getParent(frame) or {}&lt;br /&gt;
    local reserved_value={}&lt;br /&gt;
    local reserved_function,reserved_contents&lt;br /&gt;
    for k,v in pairs(parent.args or {}) do&lt;br /&gt;
        if tonumber(v)~=NaN then v=tonumber(v) end&lt;br /&gt;
        _G[k]=v -- transfer every parameter directly to the global variable table&lt;br /&gt;
        -- debuglog=debuglog..k..&amp;quot;=&amp;quot;..v..&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;nowiki&amp;gt;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    for k,v in pairs(frame.args or {}) do&lt;br /&gt;
        if tonumber(v)~=NaN then v=tonumber(v) end       &lt;br /&gt;
        _G[k]=v -- transfer every parameter directly to the global variable table&lt;br /&gt;
    end&lt;br /&gt;
     --- Alas Scribunto does NOT implement coroutines, according to&lt;br /&gt;
     --- http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#string.format&lt;br /&gt;
     --- this will not stop us from trying to implement one single lousy function call&lt;br /&gt;
    if _G[1] then&lt;br /&gt;
        reserved_function,reserved_contents=mw.ustring.match(_G[1],&amp;quot;^%s*(%a[^%s%(]*)%(([^%)]*)%)%s*$&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
    if reserved_contents then&lt;br /&gt;
        local reserved_counter=0&lt;br /&gt;
        repeat&lt;br /&gt;
            reserved_counter=reserved_counter+1&lt;br /&gt;
            reserved_value[reserved_counter]=_G[mw.ustring.match(reserved_contents,&amp;quot;([^%,]+)&amp;quot;)]&lt;br /&gt;
            reserved_contents=mw.ustring.match(reserved_contents,&amp;quot;[^%,]+,(.*)$&amp;quot;)&lt;br /&gt;
        until not reserved_contents&lt;br /&gt;
    end&lt;br /&gt;
    local reserved_arraypart=_G&lt;br /&gt;
    while mw.ustring.match(reserved_function,&amp;quot;%.&amp;quot;) do&lt;br /&gt;
        reserved_functionpart,reserved_function=mw.ustring.match(reserved_function,&amp;quot;^(%a[^%.]*)%.(.*)$&amp;quot;)&lt;br /&gt;
        reserved_arraypart=reserved_arraypart[reserved_functionpart]&lt;br /&gt;
    end&lt;br /&gt;
    local reserved_call=reserved_arraypart[reserved_function]&lt;br /&gt;
    if type(reserved_call)~=&amp;quot;function&amp;quot; then&lt;br /&gt;
        return tostring(reserved_call)&lt;br /&gt;
    elseif reserved_debug or not reserved_function then return mw.text.nowiki(debuglog)&lt;br /&gt;
    else reserved_output={reserved_call(unpack(reserved_value))}&lt;br /&gt;
        return reserved_output[reserved_return or 1]&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>عبد العزيز</name></author>
	</entry>
</feed>