Template:Grid/Crafting Table: Difference between revisions
Mastergalen (talk | contribs) m (1 revision) |
Mastergalen (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{| | <includeonly><div class="craftgrid" style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:132px; position:relative;"> <div style="left:0px; top:0px; width:256px; height:132px;">[[Image:Crafting_GUI.png|256px|link=|alt=]]</div><!-- -->{{#if:{{{A1|}}}|<div style="left:14px; top:9px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{A1-image|}}}|{{{A1-image}}}|Grid_{{{A1}}}.png}}|32px|link={{#if:{{{A1-link|}}}|{{{A1-link}}}|{{{A1}}}}}|alt={{{A1}}}]] </div>}}<!-- -->{{#if:{{{A2|}}}|<div style="left:14px; top:45px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{A2-image|}}}|{{{A2-image}}}|Grid_{{{A2}}}.png}}|32px|link={{#if:{{{A2-link|}}}|{{{A2-link}}}|{{{A2}}}}}|alt={{{A2}}}]] </div>}}<!-- -->{{#if:{{{A3|}}}|<div style="left:14px; top:81px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{A3-image|}}}|{{{A3-image}}}|Grid_{{{A3}}}.png}}|32px|link={{#if:{{{A3-link|}}}|{{{A3-link}}}|{{{A3}}}}}|alt={{{A3}}}]] </div>}}<!-- -->{{#if:{{{B1|}}}|<div style="left:50px; top:9px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{B1-image|}}}|{{{B1-image}}}|Grid_{{{B1}}}.png}}|32px|link={{#if:{{{B1-link|}}}|{{{B1-link}}}|{{{B1}}}}}|alt={{{B1}}}]] </div>}}<!-- -->{{#if:{{{B2|}}}|<div style="left:50px; top:45px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{B2-image|}}}|{{{B2-image}}}|Grid_{{{B2}}}.png}}|32px|link={{#if:{{{B2-link|}}}|{{{B2-link}}}|{{{B2}}}}}|alt={{{B2}}}]] </div>}}<!-- -->{{#if:{{{B3|}}}|<div style="left:50px; top:81px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{B3-image|}}}|{{{B3-image}}}|Grid_{{{B3}}}.png}}|32px|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|alt={{{B3}}}]] </div>}}<!-- -->{{#if:{{{C1|}}}|<div style="left:86px; top:9px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{C1-image|}}}|{{{C1-image}}}|Grid_{{{C1}}}.png}}|32px|link={{#if:{{{C1-link|}}}|{{{C1-link}}}|{{{C1}}}}}|alt={{{C1}}}]] </div>}}<!-- -->{{#if:{{{C2|}}}|<div style="left:86px; top:45px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{C2-image|}}}|{{{C2-image}}}|Grid_{{{C2}}}.png}}|32px|link={{#if:{{{C2-link|}}}|{{{C2-link}}}|{{{C2}}}}}|alt={{{C2}}}]] </div>}}<!-- -->{{#if:{{{C3|}}}|<div style="left:86px; top:81px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{C3-image|}}}|{{{C3-image}}}|Grid_{{{C3}}}.png}}|32px|link={{#if:{{{C3-link|}}}|{{{C3-link}}}|{{{C3}}}}}|alt={{{C3}}}]] </div>}}<!-- -->{{#if:{{{Output|}}}|<div style="left:202px; top:45px; width:32px; height:32px; position:absolute;"> [[Image:{{#if:{{{Output-image|}}}|{{{Output-image}}}|Grid_{{{Output|}}}.png}}|32px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]] </div>}}<!-- -->{{#if:{{{OA|}}}| <div style="left:210px; top:65px; width:64px; height:24px; position:absolute; overflow:hidden;"> {{Grid/Crafting Square Numbers|{{{OA|}}} }} </div> }}</div></div>{{#if:{{{nobreak|}}}||<br style="clear: left" />}}</includeonly><noinclude> {{documentation}} [[Category:Image templates|C]][[Category:Templates|C]]</noinclude> | ||
| | |||
| | |||
| {{ | |||
| | |||
| | |||
| {{ | |||
| {{ | |||
| {{ | |||
| {{ | |||
|}</includeonly><noinclude> | |||
{{ | |||
[[Category:Image templates|C]] | |||
</noinclude> |
Revision as of 19:11, 22 November 2012
This template is used to create a grid that looks similar to the Crafting Table's GUI screen.
Contents
Notes
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]].
Copying the template is easier than typing it out every time, just fill in the blanks or leave them empty:
{{Grid/Crafting Table |A1= |B1= |C1= |A2= |B2= |C2= |A3= |B3= |C3= |Output= |OA= }}
Usage
{{Grid/Crafting Table |A1=Rubber |B1=Copper |C1=Rubber |A2=Rubber |B2=Copper |C2=Rubber |A3=Rubber |B3=Copper |C3=Rubber |Output=Cable |OA=6 }}
- produces
The OA field accepts 1-99.
Uploading
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
{{Grid/Furnace}} {{Grid/Machine}}
The above documentation is transcluded from Template:Grid/Crafting Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |