Difference between revisions of "Template:Function"

From ComputerCraft Wiki
Jump to: navigation, search
(Testing picture size)
m (Reverted edits by 67.189.72.22 (talk) to last revision by AfterLifeLochie)
Line 2: Line 2:
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
  
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_Redstone.png]]&nbsp;&nbsp;Function {{{name}}}</td></tr>
+
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_Redstone.png|24px]]&nbsp;&nbsp;Function {{{name}}}</td></tr>
  
 
<tr style="background-color: #FFFFFF;"><td colspan="2" style="padding: .4em; padding-bottom: .8em;">{{{desc|No description provided.}}}</td></tr>
 
<tr style="background-color: #FFFFFF;"><td colspan="2" style="padding: .4em; padding-bottom: .8em;">{{{desc|No description provided.}}}</td></tr>

Revision as of 09:15, 3 December 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

Grid Redstone.png  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