Difference between revisions of "Template:API table"
From ComputerCraft Wiki
(WIP) |
Magiczocker (Talk | contribs) m |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> | + | <includeonly><table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> |
− | <tr><th colspan=" | + | <tr><th colspan="3" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px; text-align: left"> |
− | [[File:{{{image}}}|24px]] | + | [[File:{{{image}}}|24px]] {{{1}}} (API)</th></tr> |
− | {{{1}}}(API)</th></tr> | + | <tr> |
+ | <td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Function</td> | ||
+ | <td style="width: 150px; background: #E0E0E0; padding: .4em; font-weight:bold;">Return values</td> | ||
+ | <td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td></tr> | ||
{{{2}}} | {{{2}}} | ||
− | </table> | + | </table></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 10:08, 2 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:
Term (API) | ||
---|---|---|
Function | Return values | Description |
term.write(string text) | nil | Writes text to the screen. |
term.clear() | nil | Clears the entire screen |