Difference between revisions of "Template:Function"
From ComputerCraft Wiki
(I'm an idiot, I forgot to parameterize "returns") |
(add examples and notes sections) |
||
| Line 11: | Line 11: | ||
<td style="border-color: black; padding: .2em; padding-left: .4em;">[[{{{api}}}|{{{api}}} (API)]]</td></tr> | <td style="border-color: black; padding: .2em; padding-left: .4em;">[[{{{api}}}|{{{api}}} (API)]]</td></tr> | ||
</table> | </table> | ||
| + | {{#if: {{{examples|}}} | | ||
| + | == Examples == | ||
| + | examples | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
| − | == | + | __NOTOC__ |
| − | + | == Wiki code == | |
| − | + | ||
<nowiki>{{Function | <nowiki>{{Function | ||
|name=redstone.setOutput | |name=redstone.setOutput | ||
|args=[[string]] side, [[boolean]] value | |args=[[string]] side, [[boolean]] value | ||
|api=redstone | |api=redstone | ||
| − | |returns=[[nil]] | + | |returns=[[nil]] |
| − | |addon=ComputerCraft | + | |addon=ComputerCraft |
| + | |examples=Examples go here | ||
| + | |notes= | ||
| + | * Note 1 | ||
| + | * Note 2 | ||
}}</nowiki> | }}</nowiki> | ||
| − | Result | + | Note that ''returns'', ''addon'', ''examples'' and ''notes'' are optional. |
| + | |||
| + | == Result == | ||
{{Function | {{Function | ||
|name=redstone.setOutput | |name=redstone.setOutput | ||
|args=[[string]] side, [[boolean]] value | |args=[[string]] side, [[boolean]] value | ||
|api=redstone | |api=redstone | ||
| + | |returns=[[nil]] | ||
| + | |addon=ComputerCraft | ||
| + | |examples=Examples go here | ||
| + | |notes= | ||
| + | * Note 1 | ||
| + | * Note 2 | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
Revision as of 02:34, 26 February 2012
Wiki code
{{Function
|name=redstone.setOutput
|args=[[string]] side, [[boolean]] value
|api=redstone
|returns=[[nil]]
|addon=ComputerCraft
|examples=Examples go here
|notes=
* Note 1
* Note 2
}}
Note that returns, addon, examples and notes are optional.
Result
| No description provided. | |
| Syntax | redstone.setOutput(string side, boolean value) |
| Returns | nil |
| Part of | ComputerCraft |
| API | redstone |
Examples
Examples go hereAdditional Notes
- Note 1
- Note 2