Template:API table/doc

From ComputerCraft Wiki
Revision as of 03:00, 25 August 2013 by Immibis (Talk | contribs) (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'' ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:

Grid disk.png  Term (API)
Function Return values Description
term.write(string text) nil Writes text to the screen.
term.clear() nil Clears the entire screen