Difference between revisions of "User:AfterLifeLochie/Sandbox/TemplateSandbox"

From ComputerCraft Wiki
Jump to: navigation, search
m (Added a clear:both to prevent the template sandbox from having a fit.)
m (Reworking block template (new conditionals))
Line 62: Line 62:
 
= Delete Template =
 
= Delete Template =
 
<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: #FFA366; line-height:28px;">[[File:Grid_Ink_Sac.png|24px]]&nbsp;&nbsp;This page has been marked for deletion.</td></tr>
+
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #FFA366; line-height:28px;">[[File:Grid_Ink_Sac.png|24px]]&nbsp;&nbsp;This page has been marked for [http://computercraft.info/wiki/index.php?title={{urlencode:{{FULLPAGENAME}}}}&action=delete&wpReason={{urlencode:{{{1|No reason provided.}}}}} deletion].</td></tr>
<tr><td style="border-color: black; padding: .4em; padding-left: .4em;" colspan="2">{{{reason|No reason provided.}}}</td></tr>
+
<tr><td style="border-color: black; padding: .4em; padding-left: .4em;" colspan="2">{{{1|No reason provided.}}}</td></tr>
 
</table>
 
</table>
  
Line 69: Line 69:
 
<div class="floaties" style="float:right; width:320px;">
 
<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]]&nbsp;&nbsp;{{{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]]&nbsp;&nbsp;
 +
{{#if:{{{name|}}}|{{{name}}}|{{FULLPAGENAME}}}}</td></tr>
  
 
{{#if:{{{image|}}}
 
{{#if:{{{image|}}}
Line 79: Line 80:
 
<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>
 
<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>
+
<tr style="background-color: #E8E8E8;"><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>
+
<td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .4em;">{{#if:{{{is-peripheral|}}}|{{{is-peripheral}}}{{#if:{{{peripheral-api|}}}| - {{peripheral-api}}}}|No}}</td></tr>
 
</table>
 
</table>
 
</div>
 
</div>

Revision as of 14:27, 20 January 2013

Function Template

Grid Redstone.png  Function {{{name}}}
No description provided.
Syntax {{{name}}}()
Returns nil
Part of ComputerCraft
API [[{{{api}}} (API)|{{{api}}}]]


Example Template

Grid paper.png  Example
No description provided.
Code
{{{code}}}


Event Template


Grid Modem.png  Event {{{name}}}
No description provided.
Returned Object 1 Nothing


Delete Template

Grid Ink Sac.png  This page has been marked for deletion.
No reason provided.

Block Template

Grid workbench.png   User:AfterLifeLochie/Sandbox/TemplateSandbox
Iso Unknown.png
Item ID {{{id}}}
Damage Value {{{damage-value}}}
Peripheral? No


 


Keypress Template

{{{key}}}