Difference between revisions of "User:Immibis/Sandbox/Function Template"
From ComputerCraft Wiki
< User:Immibis | Sandbox
(Corrected mapping from "Boolean" to "Boolean (type)") |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | + | <table style="width: 70%; border: solid 2px black; margin: 2px; padding: .3em; border-spacing: 0px;"> | |
+ | <tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid black 1px;">Function {{{name}}}</td></tr> | ||
+ | <tr style="background-color: #E8E8E8;"><td style="border-right: solid black 1px; padding: .2em; width: 10%; font-weight: bold;">Syntax</td> | ||
+ | <td style="border-color: black; padding: .2em; padding-left: .4em;">{{{name}}}({{{args}}})</td></tr> | ||
+ | <tr style="background-color: #FFFFFF;"><td style="border-right: solid black 1px; padding: .2em; width: 10%; font-weight: bold;">Returns</td> | ||
+ | <td style="border-color: black; padding: .2em; padding-left: .4em;">[[nil]]</td></tr> | ||
+ | <tr style="background-color: #E8E8E8;"><td style="border-right: solid black 1px; padding: .2em; width: 10%; font-weight: bold;">Part of</td> | ||
+ | <td style="border-color: black; padding: .2em; padding-left: .4em;">[[{{{addon|ComputerCraft}}}]]</td></tr> | ||
+ | <tr style="background-color: #FFFFFF;"><td style="border-right: solid black 1px; padding: .2em; width: 10%; font-weight: bold;">API</td> | ||
+ | <td style="border-color: black; padding: .2em; padding-left: .4em;">[[{{{api}}}|{{{api}}} (API)]]</td></tr> | ||
+ | </table> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
+ | == Example == | ||
{{User:Immibis/Sandbox/Function Template | {{User:Immibis/Sandbox/Function Template | ||
− | | | + | |name=redstone.setOutput |
+ | |args=[[string]] side, [[boolean_(type)|boolean]] value | ||
+ | |api=redstone | ||
}} | }} | ||
+ | <nowiki>{{User:Immibis/Sandbox/Function Template | ||
+ | |name=redstone.setOutput | ||
+ | |args=[[string]] side, [[boolean]] value | ||
+ | |api=redstone | ||
+ | }}</nowiki> | ||
+ | </noinclude> |
Latest revision as of 13:49, 30 November 2012
Example
Function redstone.setOutput | |
Syntax | redstone.setOutput(string side, boolean value) |
Returns | nil |
Part of | ComputerCraft |
API | redstone (API) |
{{User:Immibis/Sandbox/Function Template |name=redstone.setOutput |args=[[string]] side, [[boolean]] value |api=redstone }}