Difference between revisions of "Template:Function"
From ComputerCraft Wiki
m (Corrected mapping from "Boolean" to "Boolean (type)") |
(Made table more readable (spacing, layout).) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | <table style="width: 70%; border: solid 2px black; margin: 2px | + | <table style="width: 70%; border: solid 2px black; margin: 2px; 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: . | + | <tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid black 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_Redstone.png|24px]] Function {{{name}}}</td></tr> |
− | <td style="border-color: black; padding: . | + | |
− | <tr style="background-color: #FFFFFF;"><td style="border-right: solid black 1px; padding: . | + | <tr style="background-color: #FFFFFF;"><td colspan="2" style="padding: .4em; padding-bottom: .8em;">{{{desc|No description provided.}}}</td></tr> |
− | <td style="border-color: black; padding: . | + | |
− | <tr style="background-color: #E8E8E8;"><td style="border-right: solid black 1px; padding: . | + | <tr style="background-color: #E8E8E8;"><td style="border-top: solid black 1px; border-right: solid black 1px; padding: .4em; width: 10%; font-weight: bold;">Syntax</td> |
− | <td style="border-color: black; padding: . | + | <td style="border-top: solid black 1px; border-color: black; padding: .4em; padding-left: .8em;">{{{name}}}({{{args|}}})</td></tr> |
− | <tr style="background-color: #FFFFFF;"><td style="border-right: solid black 1px; padding: . | + | |
− | <td style="border-color: black; padding: . | + | <tr style="background-color: #FFFFFF;"><td style="border-right: solid black 1px; padding: .4em; width: 10%; font-weight: bold;">Returns</td> |
− | + | <td style="border-color: black; padding: .4em; padding-left: .8em;">{{{returns|[[nil]]}}}</td></tr> | |
− | + | ||
+ | <tr style="background-color: #E8E8E8;"><td style="border-right: solid black 1px; padding: .4em; width: 10%; font-weight: bold;">Part of</td> | ||
+ | <td style="border-color: black; padding: .4em; padding-left: .8em;">[[{{{addon|ComputerCraft}}}]]</td></tr> | ||
+ | |||
+ | <tr style="background-color: #FFFFFF;"><td style="border-right: solid black 1px; padding: .4em; width: 10%; font-weight: bold;">API</td> | ||
+ | <td style="border-color: black; padding: .4em; padding-left: .8em;">{{#if: {{{api}}} | [[{{{api}}} (API)|{{{api}}}]] | none }}</td></tr> | ||
+ | |||
</table> | </table> | ||
Revision as of 20:53, 30 November 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 (use [[Template:Example]]) |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 here (use Template:Example)Additional Notes
- Note 1
- Note 2