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

From ComputerCraft Wiki
Jump to: navigation, search
(More template testing.)
 
m (Template tweak)
 
(4 intermediate revisions by the same user not shown)
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>
  
 
= 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]]&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;
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; width: 175px; font-weight: bold;">Item ID</td>
+
{{#if:{{{name|}}}|{{{name}}}|{{FULLPAGENAME}}}}</td></tr>
 +
 
 +
{{#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; width: 175px; 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: #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;">{{#if:{{{is-peripheral|}}}|{{{is-peripheral}}}{{#if:{{{peripheral-api|}}}| - {{peripheral-api}}}}|No}}</td></tr>
 
</table>
 
</table>
 +
</div>
 +
 +
<noinclude>
 +
<!--  REMOVE ME WHEN INSTALLING AS TEMPLATE! -->
 +
<div style="clear:both;">&nbsp;</div>
 +
</noinclude>
  
 
= Keypress Template =
 
= Keypress Template =
Line 79: Line 94:
 
<span style="color: black; border: 1px solid #666; border-top-color: #CECBC7; border-left-color: #CECBC7; background: #F0ECE8; padding: 0.1em 0.4em; white-space: nowrap;">{{{key}}}</span>
 
<span style="color: black; border: 1px solid #666; border-top-color: #CECBC7; border-left-color: #CECBC7; background: #F0ECE8; padding: 0.1em 0.4em; white-space: nowrap;">{{{key}}}</span>
 
</span>
 
</span>
 +
 +
 +
 +
= Items & Blocks Template =
 +
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 +
<tr><td style="background-color:#9EBAFF; font-weight: bold; font-size: large; line-height:28px;">[[File:Grid_Redstone.png|25px]]ComputerCraft Blocks and Items</td></tr>
 +
<tr><td style="border-color: black; padding: .2em; padding-left: .4em; width:300px; background-color:#DBE5FF; font-weight:bold; font-size: 14px;">[[File:Grid_paper.png|18px]]&nbsp;&nbsp;[[:Category:Blocks|Blocks]]</td></tr>
 +
<tr><td style="border-color: black; padding: .4em; padding-left: .4em;">
 +
<table style="width:100%;"><tr>
 +
<td style="width:25%">[[File:Iso_Computer.png|16px]]&nbsp;&nbsp;[[Computer]]</td>
 +
<td style="width:25%">[[File:Iso_Advanced_Computer.png|16px]]&nbsp;&nbsp;[[Advanced Computer]]</td>
 +
<td style="width:25%">[[File:Iso_DiskDrive.png|16px]]&nbsp;&nbsp;[[Disk Drive]]</td>
 +
<td style="width:25%">[[File:Iso_Monitor.png|16px]]&nbsp;&nbsp;[[Monitor]]</td>
 +
</tr><tr>
 +
<td style="width:25%">[[File:Iso_Advanced_Monitor.png|16px]]&nbsp;&nbsp;[[Advanced Monitor]]</td>
 +
<td style="width:25%">[[File:Iso_Printer.png|16px]]&nbsp;&nbsp;[[Printer]]</td>
 +
<td style="width:25%">[[File:Iso_Unknown.png|16px]]&nbsp;&nbsp;[[Turtle]]</td>
 +
<td style="width:25%">[[File:Grid_Modem.png|16px]]&nbsp;&nbsp;[[Wireless Modem]]</td>
 +
</tr><tr>
 +
<td style="width:25%">[[File:Grid_Wired_Modem.png|16px]]&nbsp;&nbsp;[[Wired Modem]]</td>
 +
<td style="width:25%">[[File:Iso_Unknown.png|16px]]&nbsp;&nbsp;[[Wired Modem|Networking Cable]]</td>
 +
</tr></table>
 +
    </td>
 +
</tr>
 +
<tr><td style="border-color: black; padding: .2em; padding-left: .4em; width:300px; background-color:#DBE5FF; font-weight:bold; font-size: 14px;">[[File:Grid_paper.png|18px]]&nbsp;&nbsp;[[:Category:Items|Items]]</td></tr>
 +
<tr><td style="border-color: black; padding: .4em; padding-left: .4em;">
 +
<table style="width:100%;"><tr>
 +
<td style="width:25%">[[File:Grid_disk.png|16px]]&nbsp;&nbsp;[[Floppy Disk]]</td>
 +
<td style="width:25%">[[File:Grid_printed_page.png|16px]]&nbsp;&nbsp;[[Printer|Printed Page]]</td>
 +
<td style="width:25%">[[File:Grid_printed_pages.png|16px]]&nbsp;&nbsp;[[Printer|Printed Pages]]</td>
 +
<td style="width:25%">[[File:Grid_printed_book_.png|16px]]&nbsp;&nbsp;[[Printer|Printed Book]]</td>
 +
</tr></table>
 +
    </td>
 +
</tr>
 +
</table>

Latest revision as of 05:51, 20 May 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}}}


Items & Blocks Template

Grid Redstone.pngComputerCraft Blocks and Items
Grid paper.png  Blocks
Iso Computer.png  Computer Iso Advanced Computer.png  Advanced Computer Iso DiskDrive.png  Disk Drive Iso Monitor.png  Monitor
Iso Advanced Monitor.png  Advanced Monitor Iso Printer.png  Printer Iso Unknown.png  Turtle Grid Modem.png  Wireless Modem
Grid Wired Modem.png  Wired Modem Iso Unknown.png  Networking Cable
Grid paper.png  Items
Grid disk.png  Floppy Disk Grid printed page.png  Printed Page Grid printed pages.png  Printed Pages Grid printed book .png  Printed Book