Template:Grid/Crafting Table/doc: Difference between revisions

m (1 revision)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
{{lua|Grid}}
This template is used to create a grid that looks similar to the [[Crafting Table|Crafting Table's]] GUI screen.  
This template is used to create a grid that looks similar to the [[Crafting Table|Crafting Table's]] GUI screen.  


See [[Template:Grid]] for basic grid usage, this documentation page will cover additional or different functions.
See [[Template:Grid]] for basic grid usage, this documentation page will cover additional or different functions.
Most of the time, such as when creating the list of crafting recipes on an item's article, {{tl|Crafting}} can be used instead.
__TOC__
__TOC__
== Usage ==
== Usage ==
<pre style="max-width: 250px">{{Grid/Crafting Table
<pre style="max-width: 300px">{{Grid/Crafting Table
|A1=  |B1=                |C1=  
|A1=  |B1=                |C1=  
|A2=  |B2= Oak Wood Planks |C2=  
|A2=  |B2= Oak Wood Planks |C2=  
Line 24: Line 27:
=== Shapeless ===
=== Shapeless ===
If a recipe is shapeless, add shapeless=1 to the template, which will display an icon which when hovered over explains what a shapeless recipe is.
If a recipe is shapeless, add shapeless=1 to the template, which will display an icon which when hovered over explains what a shapeless recipe is.
<pre style="max-width: 236px">{{Grid/Crafting Table
<pre style="max-width: 300px">
{{Grid/Crafting Table
|shapeless= 1
|shapeless= 1
|A1=  |B1= Blaze Powder  |C1=  
|A1=  |B1= Blaze Powder  |C1=  
Line 46: Line 50:
To make the grid animate, you make a list of blocks and objects you want to show, separated by semi-colons.
To make the grid animate, you make a list of blocks and objects you want to show, separated by semi-colons.


<pre style="max-width: 616px">{{Grid/Crafting Table
<pre style="max-width: 650px">{{Grid/Crafting Table
|A1= ; Lapis Lazuli |B1=                  ; Lapis Lazuli |C1= ; Lapis Lazuli
|A1= ; Lapis Lazuli |B1=                  ; Lapis Lazuli |C1= ; Lapis Lazuli
|A2= ; Lapis Lazuli |B2= Lapis Lazuli Block; Lapis Lazuli |C2= ; Lapis Lazuli
|A2= ; Lapis Lazuli |B2= Lapis Lazuli Block; Lapis Lazuli |C2= ; Lapis Lazuli
Line 61: Line 65:
}}
}}


<pre style="max-width: 602px">{{Grid/Crafting Table
<pre style="max-width: 650px">{{Grid/Crafting Table
|A1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|A1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|B1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|B1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
Line 88: Line 92:
}}
}}


=== Mods ===
{{loadPage|Template:Grid/Available images|Available images}}
Mod images and normal images can be combined just like in a single grid.
 
When uploading mod images, they must have the mod page name in parenthesis at the end. For example Fancystone (FancyPack).
 
The Mod parameter can be used to set a default used for all parameters, this is best used when all items in the crafting table are modded items, or if the mod name is long and using the vanilla (v) parameter for the vanilla items in the table would be quicker.
<pre style="max-width: 848px">{{Grid/Crafting Table
|A1= Redstone Dust                      |B1= IndustrialCraft:Cable |C1= Glowstone Dust
|A2= IndustrialCraft:Electronic Circuit |B2= Lapis Lazuli Block    |C2= IndustrialCraft:Electronic Circuit
|A3= Glowstone Dust                    |B3= IndustrialCraft:Cable |C3= Redstone Dust
|Output= IndustrialCraft:Advanced Circuit,2
}}</pre>
;or
<pre style="max-width: 656px">{{Grid/Crafting Table
|Mod= IndustrialCraft
|A1= v:Redstone Dust        |B1= Cable                |C1= vanilla:Glowstone Dust
|A2= Electronic Circuit    |B2= V:Lapis Lazuli Block  |C2= Electronic Circuit
|A3= Vanilla:Glowstone Dust |B3= Cable                |C3= v:Redstone Dust
|Output= Advanced Circuit,2
}}</pre>
 
;produces:
{{Grid/Crafting Table
|A1= Redstone Dust                      |B1= IndustrialCraft:Cable |C1= Glowstone Dust
|A2= IndustrialCraft:Electronic Circuit |B2= Lapis Lazuli Block    |C2= IndustrialCraft:Electronic Circuit
|A3= Glowstone Dust                    |B3= IndustrialCraft:Cable |C3= Redstone Dust
|Output= IndustrialCraft:Advanced Circuit,2
}}
Note the links of the vanilla Minecraft items, compared to the IndustrialCraft items.
 
Animation is fully supported between mod and vanilla items.
 
{{Grid/Available images}}


== See also ==
== See also ==
{{Grid/See also}}
{{Grid/See also}}


{{doc/end}}
<includeonly>
<includeonly>
[[Category:Image templates|C]]
[[Category:Grid templates]]
[[Category:Image templates]]
</includeonly>
</includeonly>

Latest revision as of 11:36, 3 August 2015

This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information
This template uses Module:Grid, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

This template is used to create a grid that looks similar to the Crafting Table's GUI screen.

See Template:Grid for basic grid usage, this documentation page will cover additional or different functions.

Most of the time, such as when creating the list of crafting recipes on an item's article, {{Crafting}} can be used instead.

Usage

{{Grid/Crafting Table
|A1=  |B1=                 |C1= 
|A2=  |B2= Oak Wood Planks |C2= 
|A3=  |B3= Oak Wood Planks |C3= 
|Output= Stick,4
}}
produces



Grid layout Arrow (small).png Stick4

Oak Wood Planks

Oak Wood Planks

Use the available images listed below.

Shapeless

If a recipe is shapeless, add shapeless=1 to the template, which will display an icon which when hovered over explains what a shapeless recipe is.

{{Grid/Crafting Table
|shapeless= 1
|A1=  |B1= Blaze Powder  |C1= 
|A2=  |B2= Coal,Charcoal |C2= 
|A3=  |B3= Gunpowder     |C3= 
|Output= Fire Charge,3
}}
produces

Blaze Powder
Grid layout Arrow (small).png Fire Charge3

Coal

Gunpowder
Grid layout Shapeless.png

The shapeless parameter does not support animation, so shapeless and non-shapeless recipes cannot be combined.

Animated

To make the grid animate, you make a list of blocks and objects you want to show, separated by semi-colons.

{{Grid/Crafting Table
|A1= ; Lapis Lazuli |B1=                   ; Lapis Lazuli |C1= ; Lapis Lazuli
|A2= ; Lapis Lazuli |B2= Lapis Lazuli Block; Lapis Lazuli |C2= ; Lapis Lazuli
|A3= ; Lapis Lazuli |B3=                   ; Lapis Lazuli |C3= ; Lapis Lazuli
|Output= Lapis Lazuli,9; Lapis Lazuli Block
}}
produces

Lapis Lazuli

Lapis Lazuli

Lapis Lazuli
Grid layout Arrow (small).png Lapis Lazuli9Lapis Lazuli Block

Lapis Lazuli
Lapis Lazuli BlockLapis Lazuli
Lapis Lazuli

Lapis Lazuli

Lapis Lazuli

Lapis Lazuli
{{Grid/Crafting Table
|A1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|B1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|C1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
 |A2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
 |B2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
 |C2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
  |A3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
  |B3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
  |C3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli
|Output= Block of Iron; Block of Gold; Block of Diamond; Lapis Lazuli Block
}}
produces
Iron IngotGold IngotDiamondLapis Lazuli Iron IngotGold IngotDiamondLapis Lazuli Iron IngotGold IngotDiamondLapis Lazuli Grid layout Arrow (small).png Block of IronBlock of GoldBlock of DiamondLapis Lazuli Block
Iron IngotGold IngotDiamondLapis Lazuli Iron IngotGold IngotDiamondLapis Lazuli Iron IngotGold IngotDiamondLapis Lazuli
Iron IngotGold IngotDiamondLapis Lazuli Iron IngotGold IngotDiamondLapis Lazuli Iron IngotGold IngotDiamondLapis Lazuli

Available images

See also


Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis