Difference between revisions of "Template:API table"
From ComputerCraft Wiki
(shrink return value column) |
|||
| Line 8: | Line 8: | ||
{{{2}}} | {{{2}}} | ||
</table> | </table> | ||
| + | <noinclude>{{Template:API table/doc}}</noinclude> | ||
Revision as of 03:01, 25 August 2013
| [[File:{{{image}}}|24px]] {{{1}}} (API) | ||
|---|---|---|
| Function | Return values | Description |
Example API table
This code:
{{API table|Term|image=Grid disk.png|2=
{{API table/row|[[term.write]]({{type|string}} text)|{{type|nil}}|Writes ''text'' to the screen.|odd}}
{{API table/row|[[term.clear]]()|{{type|nil}}|Clears the entire screen}}
}}
produces this table:
|
| ||
|---|---|---|
| Function | Return values | Description |
| term.write(string text) | nil | Writes text to the screen. |
| term.clear() | nil | Clears the entire screen |