Cube Life: Island Survival Wiki
Line 1: Line 1:
 
{{doc/start}}
 
{{doc/start}}
  +
This template creates a furnace grid.
Cells are numbered from the top left corner, starting at A1.
 
   
  +
==Parameters==
{| style="text-align: center; width: 200px;"
 
  +
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;"
 
|-
 
|-
  +
| <code>A1</code><br><code>A1 link</code>
| style="border: 1px solid #505050;"| A1
 
  +
| <code>A2</code><br><code>A2 link</code>
| style="border: 1px solid #505050;"| A2
 
  +
|-
|-style="border-spacing: 5px;"
 
| colspan="2" style="border: 1px solid #505050;"| B1
+
| colspan=2 style="border:0;" |
  +
|-
  +
| colspan=2 | <code>B1</code><br><code>B1 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 152px wide.
  +
 
== Example ==
 
== Example ==
 
<pre>
 
<pre>
{{Furnace
+
{{Furnace | width = 300px
  +
| A1 = cashew corner stairs - icon.png
 
  +
| A1 = Rope.png | A1 link = Rope
| A2 = Mango Bucket Icon.png
 
  +
| A2 = Clay - icon.png | A2 link = Clay block
| B1 = Coal.png
 
  +
 
| B1 = Coal.png | B1 link = Coal
 
}}
 
}}
 
</pre>
 
</pre>
   
== Result ==
+
=== Result ===
{{Furnace
+
{{Furnace | width = 200px
  +
| A1 = cashew corner stairs - icon.png
 
  +
| A1 = Rope.png | A1 link = Rope
| A2 = Mango Bucket Icon.png
 
  +
| A2 = Clay - icon.png | A2 link = Clay block
| B1 = Coal.png
 
  +
 
| B1 = Coal.png | B1 link = Coal
  +
}}
  +
  +
== Blank Table ==
  +
<pre>
  +
{{Furnace | width =
  +
  +
| A1 = | A1 link =
  +
| A2 = | A2 link =
  +
  +
| B1 = | B1 link =
  +
}}
  +
</pre>
  +
  +
=== Result ===
  +
{{Furnace | width =
  +
  +
| A1 = | A1 link =
  +
| A2 = | A2 link =
  +
  +
| B1 = | B1 link =
 
}}
 
}}
{{clear}}
 
 
{{doc/end}}
 
{{doc/end}}

Revision as of 23:31, 8 January 2019

Template-info.png Documentation

This template creates a furnace grid.

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
B1
B1 link

There is also an optional width parameter that allows you to change the width of the crafting table. This can be measured in any valid CSS unit, such as px or %. The grid defaults to 152px wide.

Example

{{Furnace | width = 300px

| A1 = Rope.png | A1 link = Rope
| A2 = Clay - icon.png | A2 link = Clay block

| B1 = Coal.png | B1 link = Coal
}}

Result

<div class="crafting-grid" style="width:Expression error: Unexpected < operator.px;height:Expression error: Unexpected < operator.px;">

Rope.png Clay - icon.png
Coal.png

Blank Table

{{Furnace | width = 

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

| B1 = | B1 link = 
}}

Result

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