<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Fhakanist</id>
	<title>Module:Sandbox/hakanist - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Fhakanist"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/hakanist&amp;action=history"/>
	<updated>2026-05-27T13:21:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/hakanist&amp;diff=146512&amp;oldid=prev</id>
		<title>imported&gt;HakanIST: ←Created page with &#039;-- Training at Wikimania 2019 -- this is a comment  p = {}    -- I think this is a Lua &quot;table&quot;  -- we could have seveal functions, each of which is an entry in t...&#039;</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/hakanist&amp;diff=146512&amp;oldid=prev"/>
		<updated>2019-08-15T14:09:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=WP:AES&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:AES (page does not exist)&quot;&gt;←&lt;/a&gt;Created page with &amp;#039;-- Training at Wikimania 2019 -- this is a comment  p = {}    -- I think this is a Lua &amp;quot;table&amp;quot;  -- we could have seveal functions, each of which is an entry in t...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Training at Wikimania 2019&lt;br /&gt;
-- this is a comment&lt;br /&gt;
&lt;br /&gt;
p = {}    -- I think this is a Lua &amp;quot;table&amp;quot;&lt;br /&gt;
&lt;br /&gt;
-- we could have seveal functions, each of which is an entry in the table p&lt;br /&gt;
-- below, the syntax &amp;quot;function p.CleverName(frame)&amp;quot;&amp;quot; means the same as &amp;quot;p.Hi=function(frame)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
function p.CleverName(frame)&lt;br /&gt;
	return &amp;quot;Hello world.&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- the &amp;quot;frame&amp;quot; object containts an object called args.  frame.args is a table&lt;br /&gt;
-- frames.arg.name is a string explicitly created at the other may be the user&amp;#039;s name&lt;br /&gt;
p.Hi = function(frame)&lt;br /&gt;
	strName = frame.args.name or &amp;quot;Jimbo&amp;quot; -- uses &amp;quot;Jimbo&amp;quot; if name was nil; that is, wasn&amp;#039;t specified&lt;br /&gt;
	return &amp;quot;Hello from Lua to my friend &amp;quot; .. strName .. &amp;quot;.&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.temperature(frame)&lt;br /&gt;
	cel = tonumber(frame.args.celsius or 0)&lt;br /&gt;
	fah = cel * 9 / 5 + 32&lt;br /&gt;
--	if cel &amp;gt; 10 then&lt;br /&gt;
--	    msg = &amp;quot;The temperature&amp;#039;s over 10&amp;quot;&lt;br /&gt;
--   else&lt;br /&gt;
--        msg = &amp;quot;The temperature&amp;#039;s not over 10&amp;quot;&lt;br /&gt;
--    end&lt;br /&gt;
	return fah -- .. msg&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- an example with a loop &lt;br /&gt;
p.times = function(frame)&lt;br /&gt;
	local num = tonumber (frame.args.num) or 2&lt;br /&gt;
	local out = &amp;quot;Times table&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
	for i = 1, 10 do&lt;br /&gt;
		out = out .. i* num .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return out&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;HakanIST</name></author>
	</entry>
</feed>