<?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%2Fsameboat</id>
	<title>Module:Sandbox/sameboat - 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%2Fsameboat"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/sameboat&amp;action=history"/>
	<updated>2026-04-21T23:10:41Z</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/sameboat&amp;diff=146581&amp;oldid=prev</id>
		<title>imported&gt;Dragons flight: Commented example code</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/sameboat&amp;diff=146581&amp;oldid=prev"/>
		<updated>2013-03-19T03:38:19Z</updated>

		<summary type="html">&lt;p&gt;Commented example code&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;my_object = {};     --All lua modules on wiki must define a global variable &lt;br /&gt;
                    --that will hold their externally accessible functions.&lt;br /&gt;
                    --Such global variables can have whatever name you want&lt;br /&gt;
                    --and may also return various data as well as functions.&lt;br /&gt;
&lt;br /&gt;
my_object.hello = function( frame )     --Add a function to &amp;quot;my_object&amp;quot;.  &lt;br /&gt;
                                        --Such functions are callable via #invoke.&lt;br /&gt;
                                        --&amp;quot;frame&amp;quot; contains data that Wikipedia&lt;br /&gt;
                                        --will send this function when it runs. &lt;br /&gt;
                                        &lt;br /&gt;
    return &amp;quot;Hello World!&amp;quot;    --Do nothing but return &amp;quot;Hello World!&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
end  -- end of function &amp;quot;hello&amp;quot;&lt;br /&gt;
&lt;br /&gt;
return my_object   --All modules end by returning the global variable to Wikipedia.&lt;br /&gt;
&lt;br /&gt;
-- Now we can use this module by calling {{#invoke: Sandbox/sameboat | hello }}.&lt;br /&gt;
-- Note that the first part of the invoke is the name of the Module&amp;#039;s wikipage,&lt;br /&gt;
-- and the second part is the name of one of the functions attached to the &lt;br /&gt;
-- global variable that you returned.&lt;br /&gt;
&lt;br /&gt;
-- The &amp;quot;print&amp;quot; function is not allowed in Wikipedia.  All output is accomplished&lt;br /&gt;
-- via strings &amp;quot;returned&amp;quot; to Wikipedia.&lt;/div&gt;</summary>
		<author><name>imported&gt;Dragons flight</name></author>
	</entry>
</feed>