Difference between revisions of "Template:Function"
From ComputerCraft Wiki
m |
|||
Line 9: | Line 9: | ||
<td style="border-color: black; padding: .2em; padding-left: .4em;">[[{{{addon|ComputerCraft}}}]]</td></tr> | <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> | <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;">{{#if: {{{api}}} | [[{{{api}}} (API)|{{{api}}}]] | none}}</td></tr> | + | <td style="border-color: black; padding: .2em; padding-left: .4em;">{{#if: {{{api}}} | [[{{{api}}} (API)|{{{api}}}]] | none }}</td></tr> |
<tr style="background-color: #E8E8E8;"><td style="border-right: solid black 1px; padding: .2em; width: 10%; font-weight: bold;">Description</td> | <tr style="background-color: #E8E8E8;"><td style="border-right: solid black 1px; padding: .2em; width: 10%; font-weight: bold;">Description</td> | ||
<td style="border-color: black; padding: .2em; padding-left: .4em;">{{{desc|No description provided.}}}</td></tr> | <td style="border-color: black; padding: .2em; padding-left: .4em;">{{{desc|No description provided.}}}</td></tr> |
Revision as of 13:11, 8 July 2012
Wiki code
{{Function |name=redstone.setOutput |args=[[string]] side, [[boolean]] value |api=redstone |returns=[[nil]] |addon=ComputerCraft |desc=Sets a redstone output |examples=Examples go here |notes= * Note 1 * Note 2 }}
Note that args, returns, addon, examples and notes are optional.
Result
Function redstone.setOutput | |
Sets a redstone output | |
Syntax | redstone.setOutput(string side, boolean value) |
Returns | nil |
Part of | ComputerCraft |
API | redstone |
Examples
Examples go hereAdditional Notes
- Note 1
- Note 2