<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://wikitest.nl/index.php?action=history&amp;feed=atom&amp;title=Module%3AZandbak%2FMsj%2FLuaCall</id>
	<title>Module:Zandbak/Msj/LuaCall - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://wikitest.nl/index.php?action=history&amp;feed=atom&amp;title=Module%3AZandbak%2FMsj%2FLuaCall"/>
	<link rel="alternate" type="text/html" href="https://wikitest.nl/index.php?title=Module:Zandbak/Msj/LuaCall&amp;action=history"/>
	<updated>2026-04-12T11:44:10Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wikitest.nl/index.php?title=Module:Zandbak/Msj/LuaCall&amp;diff=77998&amp;oldid=prev</id>
		<title>Colani: 1 versie geïmporteerd</title>
		<link rel="alternate" type="text/html" href="https://wikitest.nl/index.php?title=Module:Zandbak/Msj/LuaCall&amp;diff=77998&amp;oldid=prev"/>
		<updated>2024-03-26T11:11:41Z</updated>

		<summary type="html">&lt;p&gt;1 versie geïmporteerd&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&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 frame.preprocess(frame,&amp;quot;&amp;lt;nowiki&amp;gt;&amp;quot;..debuglog..&amp;quot;&amp;lt;/nowiki&amp;gt;&amp;quot;)&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>Colani</name></author>
	</entry>
</feed>