Difference between revisions of "User:MathManiac0/Templates"
From ComputerCraft Wiki
m (Int linking fix.) |
m (Remove weird Peripherals wikilink (hurr?)) |
||
| Line 10: | Line 10: | ||
|args= [[int (type)|int]] number | |args= [[int (type)|int]] number | ||
|returns=[[int (type)|int]] number | |returns=[[int (type)|int]] number | ||
| − | |api= | + | |api= |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Returns the given number | |desc=Returns the given number | ||
Revision as of 06:21, 3 June 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.
| Returns the given number | |
| Syntax | foo.Bar(int number) |
| Returns | int number |
| Part of | ComputerCraft |
| API | none |
Examples
| Prints the number wrapped by foo.Bar() | |
| Code |
print(foo.Bar(2)) |
| Output | 2 |