http://wiki.datarealms.com/index.php?title=Template:LuaFunction&feed=atom&action=history
Template:LuaFunction - Revision history
2024-03-28T17:24:08Z
Revision history for this page on the wiki
MediaWiki 1.16.5
http://wiki.datarealms.com/index.php?title=Template:LuaFunction&diff=318&oldid=prev
Daman: <code lua n> now requires a linebreak after it.
2010-06-04T13:57:51Z
<p><code lua n> now requires a linebreak after it.</p>
<p><b>New page</b></p><div><table style="border: solid 3px black; width: 50%; font-size: 90%; text-align: left; align: center; padding: 4px; clear:right;" cellspacing="0" cellpadding="4"><br />
<tr><th style="font-size: 1.5em; padding: 0;" colspan="2">Function</th></tr><br />
<tr style="background: #EFEFEF;"><th style="width: 10%; border-top: solid 1px black; border-right: solid 1px black;">Syntax</th><td style="border-top: solid 1px black;">{{{function_name}}}( {{{arguments|}}} )</td></tr><br />
<tr><th style="border-top: solid 1px black; height: 1em; padding: 0px 0px 0px 4px;" colspan="2">Description:</th></tr><br />
<tr><td style="height: 1em; padding: 0px 6px 0px 6px; border-bottom: solid 1px black" colspan="2">{{{description|No description provided}}}</td></tr><br />
<tr style="background: #EFEFEF;"><th style="width: 10%; border-right: solid 1px black;">Returns</th><td>{{{returns|[[nil]]}}}</td></tr><br />
</table><br />
<br><br><br><br />
<table style="width: 100%; font-size:95%; text-align: left; align: center;" cellspacing="4"><br />
<tr><th style="font-size: 188%; margin: 0; padding-top: .5em; padding-bottom: .17em; border-bottom: 1px solid #aaa;">Example</th><br />
<tr><th style="width: 8em; vertical-align: top;">Description</th><td>{{{codedesc|Placeholder!}}}</td></tr><br />
<tr><th style="width: 8em; vertical-align: top;">Code</th><td>{{{code|<code lua n><br />
for k,v in pairs(PagesWithoutExamples) do <br />
v.MakeExample(NoErrors);<br />
end<br />
</code>}}}</td></tr><br />
<tr><th style="width: 8em; vertical-align: top;">Output</th><td>{{{output|Placeholder!}}}</td></tr><br />
</table><br />
<br />
<includeonly><br />
[[Category: Lua]]<br />
</includeonly><br />
<noinclude><br />
== Example Usage ==<br />
<br />
<pre><br />
{{LuaFunction<br />
|function_name = Name of Function<br />
|arguments = [[type]] arg , [[type]] arg[2]<br />
|returns = [[type]] <br />
|description = Enter a description here<br />
|codedesc = Example code description/explanation.<br />
|code = Enter lua code here, enclose in <code lua n></code><br />
|output = What does the example return?<br />
|}}<br />
</pre><br />
</noinclude></div>
Daman