Cube Life: Island Survival Wiki
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
   
 
==Parameters==
 
==Parameters==
Cells are numbered from the top left corner, starting at <code>a1</code>. Each cell can also have an optional link parameter that will make the cell link to the specified page.
+
Cells are numbered from the top left corner, starting at <code>A1</code>. Each cell can also have an optional link parameter that will make the cell link to the specified page.
   
 
{| class=wikitable style="border:0;text-align:center;"
 
{| class=wikitable style="border:0;text-align:center;"
 
|-
 
|-
| <code>a1</code><br><code>a1 link</code>
+
| <code>A1</code><br><code>A1 link</code>
| <code>a2</code><br><code>a2 link</code>
+
| <code>A2</code><br><code>A2 link</code>
| <code>a3</code><br><code>a3 link</code>
+
| <code>A3</code><br><code>A3 link</code>
 
| style="border:0;" rowspan=3 |
 
| style="border:0;" rowspan=3 |
 
|-
 
|-
| <code>b1</code><br><code>b1 link</code>
+
| <code>B1</code><br><code>B1 link</code>
| <code>b2</code><br><code>b2 link</code>
+
| <code>B2</code><br><code>B2 link</code>
| <code>b3</code><br><code>b3 link</code>
+
| <code>B3</code><br><code>B3 link</code>
 
| <code>result</code><br><code>result link</code>
 
| <code>result</code><br><code>result link</code>
 
|-
 
|-
| <code>c1</code><br><code>c1 link</code>
+
| <code>C1</code><br><code>C1 link</code>
| <code>c2</code><br><code>c2 link</code>
+
| <code>C2</code><br><code>C2 link</code>
| <code>c3</code><br><code>c3 link</code>
+
| <code>C3</code><br><code>C3 link</code>
 
|}
 
|}
   
There is also an optional <code>width</code> parameter that allows you to change the width of the crafting table. This can be measured in any valid [https://www.w3schools.com/cssref/css_units.asp CSS unit], such as px or %. The grid defaults to 500px wide.
+
There is also an optional <code>width</code> parameter that allows you to change the width of the crafting table. Please DO NOT include any units such as px. The grid defaults to 500px wide.
   
 
== Example ==
 
== Example ==
 
<pre>
 
<pre>
{{Crafting table | width = 400px
+
{{Crafting table | width = 400
   
| a1 = Rope.png | a1 link = Rope
+
| A1 = Rope.png | A1 link = Rope
| a2 = Rope.png | a2 link = Rope
+
| A2 = Rope.png | A2 link = Rope
| a3 = Rope.png | a3 link = Rope
+
| A3 = Rope.png | A3 link = Rope
   
| b1 = Clay - icon.png | b1 link = Clay block
+
| B1 = Clay - icon.png | B1 link = Clay block
| b2 =
+
| B2 =
| b3 = Clay - icon.png | b3 link = Clay block
+
| B3 = Clay - icon.png | B3 link = Clay block
   
| c1 = Clay - icon.png | c1 link = Clay block
+
| C1 = Clay - icon.png | C1 link = Clay block
| c2 = Clay - icon.png | c2 link = Clay block
+
| C2 = Clay - icon.png | C2 link = Clay block
| c3 = clay - icon.png | c3 link = Clay block
+
| C3 = clay - icon.png | C3 link = Clay block
   
 
| result = Acacia Bucket Icon.png | result link = Acacia bucket
 
| result = Acacia Bucket Icon.png | result link = Acacia bucket
Line 45: Line 45:
   
 
=== Result ===
 
=== Result ===
{{Crafting table | width = 400px
+
{{Crafting table | width = 400
   
| a1 = Rope.png | a1 link = Rope
+
| A1 = Rope.png | A1 link = Rope
| a2 = Rope.png | a2 link = Rope
+
| A2 = Rope.png | A2 link = Rope
| a3 = Rope.png | a3 link = Rope
+
| A3 = Rope.png | A3 link = Rope
   
| b1 = Clay - icon.png | b1 link = Clay block
+
| B1 = Clay - icon.png | B1 link = Clay block
| b2 =
+
| B2 =
| b3 = Clay - icon.png | b3 link = Clay block
+
| B3 = Clay - icon.png | B3 link = Clay block
   
| c1 = Clay - icon.png | c1 link = Clay block
+
| C1 = Clay - icon.png | C1 link = Clay block
| c2 = Clay - icon.png | c2 link = Clay block
+
| C2 = Clay - icon.png | C2 link = Clay block
| c3 = clay - icon.png | c3 link = Clay block
+
| C3 = clay - icon.png | C3 link = Clay block
   
 
| result = Acacia Bucket Icon.png | result link = Acacia bucket
 
| result = Acacia Bucket Icon.png | result link = Acacia bucket
Line 66: Line 66:
 
{{Crafting table | width =
 
{{Crafting table | width =
   
| a1 = | a1 link =
+
| A1 = | A1 link =
| a2 = | a2 link =
+
| A2 = | A2 link =
| a3 = | a3 link =
+
| A3 = | A3 link =
   
| b1 = | b1 link =
+
| B1 = | B1 link =
| b2 = | b2 link =
+
| B2 = | B2 link =
| b3 = | b3 link =
+
| B3 = | B3 link =
   
| c1 = | c1 link =
+
| C1 = | C1 link =
| c2 = | c2 link =
+
| C2 = | C2 link =
| c3 = | c3 link =
+
| C3 = | C3 link =
   
 
| result = | result link =
 
| result = | result link =
Line 85: Line 85:
 
{{Crafting table | width =
 
{{Crafting table | width =
   
| a1 = | a1 link =
+
| A1 = | A1 link =
| a2 = | a2 link =
+
| A2 = | A2 link =
| a3 = | a3 link =
+
| A3 = | A3 link =
   
| b1 = | b1 link =
+
| B1 = | B1 link =
| b2 = | b2 link =
+
| B2 = | B2 link =
| b3 = | b3 link =
+
| B3 = | B3 link =
   
| c1 = | c1 link =
+
| C1 = | C1 link =
| c2 = | c2 link =
+
| C2 = | C2 link =
| c3 = | c3 link =
+
| C3 = | C3 link =
   
 
| result = | result link =
 
| result = | result link =

Latest revision as of 02:38, 7 February 2019

Template-info.png Documentation

This template creates a crafting table with 9 cells and a result item.

Parameters

Cells are numbered from the top left corner, starting at A1. Each cell can also have an optional link parameter that will make the cell link to the specified page.

A1
A1 link
A2
A2 link
A3
A3 link
B1
B1 link
B2
B2 link
B3
B3 link
result
result link
C1
C1 link
C2
C2 link
C3
C3 link

There is also an optional width parameter that allows you to change the width of the crafting table. Please DO NOT include any units such as px. The grid defaults to 500px wide.

Example

{{Crafting table | width = 400

| A1 = Rope.png | A1 link = Rope
| A2 = Rope.png | A2 link = Rope
| A3 = Rope.png | A3 link = Rope

| B1 = Clay - icon.png | B1 link = Clay block
| B2 = 
| B3 = Clay - icon.png | B3 link = Clay block

| C1 = Clay - icon.png | C1 link = Clay block
| C2 = Clay - icon.png | C2 link = Clay block
| C3 = clay - icon.png | C3 link = Clay block

| result = Acacia Bucket Icon.png | result link = Acacia bucket
}}

Result

Blank Table

{{Crafting table | width = 

| A1 = | A1 link = 
| A2 = | A2 link = 
| A3 = | A3 link = 

| B1 = | B1 link = 
| B2 = | B2 link = 
| B3 = | B3 link = 

| C1 = | C1 link = 
| C2 = | C2 link = 
| C3 = | C3 link = 

| result = | result link =
}}

Result

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.