Difference between revisions of "User:AfterLifeLochie/Sandbox/TemplateSandbox"
From ComputerCraft Wiki
(More template testing.) |
(Block template prototype updates (wrapped self with a float, image box).) |
||
Line 67: | Line 67: | ||
= Block Template = | = Block Template = | ||
+ | <div class="floaties" style="float:right; width:320px;"> | ||
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> | <table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> | ||
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_workbench.png|24px]] {{{name}}}</td></tr> | <tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_workbench.png|24px]] {{{name}}}</td></tr> | ||
− | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; width: | + | |
+ | {{#if:{{{image|}}} | ||
+ | |<td colspan="2" style="padding: .4em; padding-bottom: .8em;"><center>[[File:{{{image|}}}|128x128px]]</center></td> | ||
+ | |<td colspan="2" style="padding: .4em; padding-bottom: .8em;"><center>[[File:Iso_Unknown.png|128x128px]]</center></td>}} | ||
+ | |||
+ | <tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; width: 110px; font-weight: bold;">Item ID</td> | ||
<td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{{id}}}</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{{id}}}</td></tr> | ||
− | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em | + | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; font-weight: bold;">Damage Value</td> |
<td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{{damage-value}}}</td></tr> | <td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{{damage-value}}}</td></tr> | ||
+ | <tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; font-weight: bold;">Peripheral?</td> | ||
+ | <td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{{is-peripheral}}}</td></tr> | ||
</table> | </table> | ||
+ | </div> | ||
= Keypress Template = | = Keypress Template = |
Revision as of 15:56, 7 December 2012
Contents
Function Template
Function {{{name}}} | |
No description provided. | |
Syntax | {{{name}}}() |
Returns | nil |
Part of | ComputerCraft |
API | [[{{{api}}} (API)|{{{api}}}]] |
Example Template
Example | |
No description provided. | |
Code |
{{{code}}} |
Event Template
Event {{{name}}} | |
No description provided. | |
Returned Object 1 | Nothing |
Delete Template
This page has been marked for deletion. | |
No reason provided. |
Block Template
Keypress Template
{{{key}}}