Difference between revisions of "User:MathManiac0/Templates"
From ComputerCraft Wiki
MathManiac0 (Talk | contribs) (Added Template Page; included Function template.) |
m (Int linking fix.) |
||
Line 8: | Line 8: | ||
{{Function | {{Function | ||
|name=foo.Bar | |name=foo.Bar | ||
− | |args= [[int | + | |args= [[int (type)|int]] number |
− | |returns=[[int]] number | + | |returns=[[int (type)|int]] number |
|api=[[peripherals]] | |api=[[peripherals]] | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 18:34, 30 November 2012
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.
Function foo.Bar | |
Returns the given number | |
Syntax | foo.Bar(int number) |
Returns | int number |
Part of | ComputerCraft |
API | [[peripherals (API)|peripherals]] |
Examples
Example | |
Prints the number wrapped by foo.Bar() | |
Code |
print(foo.Bar(2)) |
Output | 2 |