<?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%2FYupik</id>
	<title>Module:Sandbox/Yupik - 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%2FYupik"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Yupik&amp;action=history"/>
	<updated>2026-04-21T20:41:32Z</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/Yupik&amp;diff=146467&amp;oldid=prev</id>
		<title>imported&gt;Yupik at 15:32, 14 August 2019</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Yupik&amp;diff=146467&amp;oldid=prev"/>
		<updated>2019-08-14T15:32:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--comment&lt;br /&gt;
--task2&lt;br /&gt;
&lt;br /&gt;
p={} --this is an empty table; all of our modules will probably start with this&lt;br /&gt;
--in a sense, p is table that holds all the names of the functions&lt;br /&gt;
--p is the conventional variable for this&lt;br /&gt;
&lt;br /&gt;
function p.Namma(frame) --function is a datatype in Lua; when we&amp;#039;re calling things from outside the module, use frame&lt;br /&gt;
    return &amp;quot;Dearvva máilbmi!&amp;quot;&lt;br /&gt;
end --end marks the end of a block in Lua&lt;br /&gt;
&lt;br /&gt;
p.Hi = function(frame) -- this is the same as function p.Hi(frame). Some people prefer one way over the other&lt;br /&gt;
    strName = frame.args.name or &amp;quot;Jimbo&amp;quot;&lt;br /&gt;
    --str* is just a hint that a string is expected. args is the list of parameters you passed to that function&lt;br /&gt;
    --boolean ops =&amp;gt; lowercase&lt;br /&gt;
    --if first part is not true, read second part&lt;br /&gt;
    return &amp;quot;Dearvva Luas mu ustibiidda! &amp;quot; .. strName .. &amp;quot;.&amp;lt;br&amp;gt;&amp;quot; --don&amp;#039;t forget to use the same name for the var here; double dot is the concat operator&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--task3&lt;br /&gt;
function p.temp(frame)&lt;br /&gt;
    cel = tonumber(frame.args.celsius) or 0 --this is a string; if tonumber can&amp;#039;t convert str into number, it returns nil, not the orig value, so it will fail.&lt;br /&gt;
    fah = cel*9/5+32 --here it&amp;#039;s not&lt;br /&gt;
          --this will autocache it into a floating point&lt;br /&gt;
    if cel &amp;gt; 10 then --this is a test&lt;br /&gt;
         msg = &amp;quot; ja dat lea liekkas!&amp;quot; --note: space&lt;br /&gt;
    else &lt;br /&gt;
         msg = &amp;quot; ja dat ii gal leat liekkas!&amp;quot;&lt;br /&gt;
    end --this is the end of the test&lt;br /&gt;
    return &amp;quot;Temperatuvra fahrenheitis lea &amp;quot; .. fah .. msg .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--task 4&lt;br /&gt;
p.times = function(frame)&lt;br /&gt;
    local num = tonumber(frame.args.num) or 2&lt;br /&gt;
    local out = num .. &amp;quot; times table&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
    for i = 1, 10 do&lt;br /&gt;
        out = out .. num .. &amp;quot; x &amp;quot; .. i .. &amp;quot;: &amp;quot; .. 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;
return p&lt;br /&gt;
--table is Lua&amp;#039;s only complex data type; everything is made out of them in Lua&lt;br /&gt;
--indices in Lua can be any datatype&lt;/div&gt;</summary>
		<author><name>imported&gt;Yupik</name></author>
	</entry>
</feed>