Difference between revisions of "Template:Function"

From ComputerCraft Wiki
Jump to: navigation, search
m (oh it was just mediawiki's cache or something, undid last edit)
(I'm an idiot, I forgot to parameterize "returns")
Line 5: Line 5:
 
<td style="border-color: black; padding: .2em; padding-left: .4em;">{{{name}}}({{{args}}})</td></tr>
 
<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>
 
<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>
+
<td style="border-color: black; padding: .2em; padding-left: .4em;">{{{returns|[[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>
 
<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>
 
<td style="border-color: black; padding: .2em; padding-left: .4em;">[[{{{addon|ComputerCraft}}}]]</td></tr>
Line 20: Line 20:
 
  |args=[[string]] side, [[boolean]] value
 
  |args=[[string]] side, [[boolean]] value
 
  |api=redstone
 
  |api=redstone
 +
|returns=[[nil]] (optional)
 +
|addon=ComputerCraft (optional)
 
  }}</nowiki>
 
  }}</nowiki>
  

Revision as of 02:27, 26 February 2012


Example

Wiki code:

{{Function
 |name=redstone.setOutput
 |args=[[string]] side, [[boolean]] value
 |api=redstone
 |returns=[[nil]] (optional)
 |addon=ComputerCraft (optional)
 }}

Result:

Grid Redstone.png  Function redstone.setOutput
No description provided.
Syntax redstone.setOutput(string side, boolean value)
Returns nil
Part of ComputerCraft
API redstone