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

From Industrial-Craft-Wiki
Jump to navigation Jump to search
m (1 revision)
 
(Updated documentation to reflect changes in the template.)
Line 2: Line 2:
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.  
__TOC__
__TOC__
== Usage ==
== Notes ==
<pre style="width: 180px">{{Grid/Crafting Table
Items in the grid are set by parameters A1 to C3 in the following formation:
|A1=  |B1=              |C1=
 
|A2=  |B2= Wooden Plank |C2=
<pre style="width: 110px">
|A3=  |B3= Wooden Plank |C3=
  A1,B1,C1
|Output= Stick |OA= 4
  A2,B2,C2
}}</pre>
  A3,B3,C3
</pre>
 
Each item can have a custom image by setting the "-image" parameter
 
For Example: A2-image would set a custom image for item A2
 
If this parameter is omitted, the template will attempt to use Grid ''item''.png
 
For Example: If C2 was "Generator", then the default image would be "Grid Generator.png"
 
 
 
Each item can have a custom link by setting the "-link" parameter


;produces:
For Example: A2-link would set a custom link for item A2
{{Grid/Crafting Table
|A1=  |B1=              |C1=
|A2=  |B2= Wooden Plank |C2=
|A3=  |B3= Wooden Plank |C3=
|Output= Stick |OA= 4
}}


The OA field accepts 2-99. Using any number lower or leaving it blank will show nothing, using 100 to 109 will only show the last two digits (although this can be utilized to output 01 instead of just 1, for example), using anything higher will only show the last digit.<!-- These are all bugs, it should only go to 64 -->
If this parameter is omitted, the template will attempt to use [ [ ''item'' ] ]


Use the [[#Available images|available images]] listed below.
For Example: If C2 was "Generator", then the image would try to link to [ [Generator] ]


=== Animated ===
To make the grid animate, you make a list of blocks and objects you want to show, separated by commas.


<pre style="width: 555px">{{Grid/Crafting Table
== Usage ==
|A1= ,Lapis Lazuli (Dye)|B1=                     ,Lapis Lazuli (Dye)|C1= ,Lapis Lazuli (Dye)
<pre style="width: 280px">{{Grid/Crafting Table
|A2= ,Lapis Lazuli (Dye)|B2= Lapis Lazuli (Block),Lapis Lazuli (Dye)|C2= ,Lapis Lazuli (Dye)
|A1=Rubber  |B1=Copper |C1=Rubber
|A3= ,Lapis Lazuli (Dye)|B3=                     ,Lapis Lazuli (Dye)|C3= ,Lapis Lazuli (Dye)
|A2=Rubber  |B2=Copper |C2=Rubber
|Output= Lapis Lazuli (Dye),Lapis Lazuli (Block) |OA=9,1
|A3=Rubber  |B3=Copper |C3=Rubber
|Output=Cable |OA=8
}}</pre>
}}</pre>


;produces:
;produces:
{{Grid/Crafting Table
{{Grid/Crafting Table
|A1= ,Lapis Lazuli (Dye)|B1=                     ,Lapis Lazuli (Dye)|C1= ,Lapis Lazuli (Dye)
|A1=Rubber  |B1=Copper |C1=Rubber
|A2= ,Lapis Lazuli (Dye)|B2= Lapis Lazuli (Block),Lapis Lazuli (Dye)|C2= ,Lapis Lazuli (Dye)
|A2=Rubber  |B2=Copper |C2=Rubber
|A3= ,Lapis Lazuli (Dye)|B3=                     ,Lapis Lazuli (Dye)|C3= ,Lapis Lazuli (Dye)
|A3=Rubber  |B3=Copper |C3=Rubber
|Output= Lapis Lazuli (Dye),Lapis Lazuli (Block) |OA=9,1
|Output=Cable |OA=8
}}
}}


<pre style="width: 425px">{{Grid/Crafting Table
The OA field accepts 1-99. Leaving it blank will show nothing, using 100 to 109 will only show the last two digits (although this can be utilized to output 01 instead of just 1, for example), using anything higher will only show the last digit.<!-- These are all bugs, it should only go to 64 -->  
|A1= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|B1= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|C1= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|A2= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|B2= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|C2= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
  |A3= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
  |B3= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
  |C3= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|Output= Iron (Block),Gold (Block),Diamond (Block),Lapis Lazuli (Block)
}}</pre>


;produces:
{{Grid/Crafting Table
|A1= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|B1= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|C1= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|A2= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|B2= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|C2= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
  |A3= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
  |B3= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
  |C3= Iron (Ingot),Gold (Ingot),Diamond (Gem),Lapis Lazuli (Dye)
|Output= Iron (Block),Gold (Block),Diamond (Block),Lapis Lazuli (Block)
}}


=== Mods ===
=== Base Minecraft items and other mods ===
If you are using mod images, you can specify the wiki page to your mod with the Mod parameter. All parameters (A1, B1, C1, Output, etc.) that are modded items have an M in front of them, and any normal Minecraft items stay the same, this allows you to use normal Minecraft items and link to their correct pages.
If you are using items from outside the '''Industrail Craft''' mod, you can use the "-link" parameters to link to an alternate page (typically [[Non-IC Items]]).


When uploading mod images, they must have the mod page name in brackets at the end. For example Fancystone (FancyPack).
<pre style="width: 250px">{{Grid/Crafting Table
<pre style="width: 315px">{{Grid/Crafting Table
|B2=Iron|B2-link=Non-IC Items
|Mod= FancyPack
|B2=Iron|B2-link=Non-IC Items
|MA1= Fancystone |MB1= Fancystone  |MC1= Fancystone
|B3=Refined Iron
|MA2= Fancystone |B2= Water Bucket |MC2= Fancystone
|Output=Mining Pipes |OA=2
|MA3= Fancystone |MB3= Fancystone  |MC3= Fancystone
|Output=Moss Stone |OA=32
}}</pre>
}}</pre>


;produces:
;produces:
{{Grid/Crafting Table
{{Grid/Crafting Table
|Mod= FancyPack
|B1=Iron|B1-link=Non-IC Items
|MA1= Fancystone |MB1= Fancystone  |MC1= Fancystone
|B2=Iron|B2-link=Non-IC Items
|MA2= Fancystone |B2= Water Bucket |MC2= Fancystone
|B3=Refined Iron
|MA3= Fancystone |MB3= Fancystone  |MC3= Fancystone
|Output=Mining Pipes |OA=2
|Output=Moss Stone |OA=32
}}
}}
Note the links of the Fancystone and the Water Bucket.


<pre style="width: 320px">{{Grid/Crafting Table
|Mod= FancyPack
|A1= Iron (Ingot) |B1= Iron (Ingot) |C1=Iron (Ingot)
|A2= Iron (Ingot) |B2=              |C2=Iron (Ingot)
|A3= Iron (Ingot) |B3= Iron (Ingot) |C3=Iron (Ingot)
|MOutput= Metal Cage |OA=2
}}</pre>


;produces:
When uploading mod images, the following standard is used:
{{Grid/Crafting Table
 
|Mod= FancyPack
'''item name'''.png      -- A 16x16 two dimensional image of the item.
|A1= Iron (Ingot) |B1= Iron (Ingot) |C1=Iron (Ingot)
|A2= Iron (Ingot) |B2=              |C2=Iron (Ingot)
|A3= Iron (Ingot) |B3= Iron (Ingot) |C3=Iron (Ingot)
|MOutput= Metal Cage |OA=2
}}


'''Note:''' Animation is not currently supported for mod images.
Grid_'''item name'''.png -- A 32x32 image of the item as it appears in a player's inventory.


{{Grid/Available images}}
'''item name'''_ig.png  -- A larger image of the item placed in the game world (for blocks).


== See also ==
== See also ==
{{tl|Grid/Furnace}}
{{tl|Grid/Furnace}}
{{doc/end}}
{{doc/end}}

Revision as of 20:49, 7 May 2011

Template-info.png Documentation

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

Notes[edit]

Items in the grid are set by parameters A1 to C3 in the following formation:

  A1,B1,C1
  A2,B2,C2
  A3,B3,C3

Each item can have a custom image by setting the "-image" parameter

For Example: A2-image would set a custom image for item A2

If this parameter is omitted, the template will attempt to use Grid item.png

For Example: If C2 was "Generator", then the default image would be "Grid Generator.png"


Each item can have a custom link by setting the "-link" parameter

For Example: A2-link would set a custom link for item A2

If this parameter is omitted, the template will attempt to use [ [ item ] ]

For Example: If C2 was "Generator", then the image would try to link to [ [Generator] ]


Usage[edit]

{{Grid/Crafting Table
|A1=Rubber  |B1=Copper |C1=Rubber
|A2=Rubber  |B2=Copper |C2=Rubber
|A3=Rubber  |B3=Copper |C3=Rubber
|Output=Cable |OA=8
}}
produces
Grid Rubber.png
Grid Rubber.png
Grid Rubber.png
Grid Copper.png
Grid Copper.png
Grid Copper.png
Grid Rubber.png
Grid Rubber.png
Grid Rubber.png
Grid Cable.png

Cable

Cable


The OA field accepts 1-99. Leaving it blank will show nothing, using 100 to 109 will only show the last two digits (although this can be utilized to output 01 instead of just 1, for example), using anything higher will only show the last digit.


Base Minecraft items and other mods[edit]

If you are using items from outside the Industrail Craft mod, you can use the "-link" parameters to link to an alternate page (typically Non-IC Items).

{{Grid/Crafting Table
|B2=Iron|B2-link=Non-IC Items
|B2=Iron|B2-link=Non-IC Items
|B3=Refined Iron
|Output=Mining Pipes |OA=2
}}
produces


When uploading mod images, the following standard is used:

item name.png -- A 16x16 two dimensional image of the item.

Grid_item name.png -- A 32x32 image of the item as it appears in a player's inventory.

item name_ig.png -- A larger image of the item placed in the game world (for blocks).

See also[edit]

{{Grid/Furnace}}

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