Difference between revisions of "Template:API table/doc"
From ComputerCraft Wiki
(Created page with "== Example API table == This code: <pre> <nowiki> {{API table|Term|image=Grid disk.png|2= {{API table/row|term.write({{type|string}} text)|{{type|nil}}|Writes ''text'' ...") |
Magiczocker (Talk | contribs) m |
||
| Line 24: | Line 24: | ||
}} | }} | ||
| + | <noinclude>[[Category:Documentation pages]]</noinclude> | ||
Latest revision as of 07:49, 4 August 2020
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 |