Difference between revisions of "User:MathManiac0/Templates"

From ComputerCraft Wiki
Jump to: navigation, search
(Added Template Page; included Function template.)
 
(Might as well edit this page as well...)
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
{{Function
 
{{Function
 
|name=foo.Bar
 
|name=foo.Bar
|args= [[int|(int)]] number
+
|args= [[number (type)|number]] number
|returns=[[int]] number
+
|returns=[[number (type)|number]] number
|api=[[peripherals]]
+
|api=
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Returns the given number
 
|desc=Returns the given number

Latest revision as of 14:26, 18 July 2013

Look in the source code to see how the tables are made.

These pieces of data isn't real; they are instead examples how the templates can be made.


Grid Redstone.png  Function foo.Bar
Returns the given number
Syntax foo.Bar(number number)
Returns number number
Part of ComputerCraft
API none

Examples

Grid paper.png  Example
Prints the number wrapped by foo.Bar()
Code
print(foo.Bar(2))
Output 2