Vorlage:Grid/Machine: Unterschied zwischen den Versionen
(Die Seite wurde neu angelegt: „<includeonly><div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:256px; height:132px; position:relative;"> <div sty…“) |
|||
Zeile 3: | Zeile 3: | ||
<div style="left:0px; top:0px; width:233px; height:132px; position:absolute;">[[Image:MachineGUI_{{{Type|Iron Furnace}}}.png|233px|link=|alt=]]</div> | <div style="left:0px; top:0px; width:233px; height:132px; position:absolute;">[[Image:MachineGUI_{{{Type|Iron Furnace}}}.png|233px|link=|alt=]]</div> | ||
− | {{#if:{{{Top|}}}|<div style="left:14px; top: | + | {{#if:{{{Top|}}}|<div style="left:14px; top:5px; width:32px; height:32px; position:absolute;"> |
[[Image:{{#if:{{{Top-image|}}}|{{{Top-image}}}|Grid_{{{Top}}}.png}}|32px|link={{#if:{{{Top-link|}}}|{{{Top-link}}}|{{{Top}}}}}|alt={{{Top}}}]] | [[Image:{{#if:{{{Top-image|}}}|{{{Top-image}}}|Grid_{{{Top}}}.png}}|32px|link={{#if:{{{Top-link|}}}|{{{Top-link}}}|{{{Top}}}}}|alt={{{Top}}}]] | ||
</div>}} | </div>}} |
Version vom 1. Oktober 2013, 18:38 Uhr
This template is used to create a grid that looks similar to each given Machine's GUI screen.
Inhaltsverzeichnis
Notes
Set the type of machine with the parameter 'Type', by default Type=Iron Furnace. Currently, the following machine types can be used with this template: Iron Furnace, Canning Machine, Compressor, Electro Furnace, Extractor, Furnace, Macerator, Recycler.
Items in the grid are set by parameters Top, Bottom and Output. Each item can have a custom image by setting the "-image" parameter. For Example: Top-image would set a custom image for item in the top slot. If this parameter is omitted, the template will attempt to use Grid item.png. For Example: If Top was "Copper Dust", then the default image would be "Grid Copper Dust.png"
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).
Each item can have a custom link by setting the "-link" parameter. For Example: Bottom-link would set a custom link for the item in the bottom slot. If this parameter is omitted, the template will attempt to use [ [ item ] ].
For Example: If Output was "Refined Iron", then the image would try to link to [ [Refined Iron] ]
Usage
{{Grid/Machine |Type=Iron Furnace |Top=Iron Ingot |Bottom=Coal (Item) |Output=Refined Iron }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Iron Ingot.png}}|32px|link={{#if:|{{{Top-link}}}|Iron Ingot}}|alt=Iron Ingot]]
{{#if:|
}}
{{#if:Coal (Item)|[[Image:{{#if:|{{{Bottom-image}}}|Grid_Coal (Item).png}}|32px|link={{#if:|{{{Bottom-link}}}|Coal (Item)}}|alt=Coal (Item)]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Refined Iron.png}}|32px|link={{#if:|{{{Output-link}}}|Refined Iron}}|alt=Refined Iron]]
{{#if:|
}}
{{#if:||
}}
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
If you are using items from outside the Industrial Craft mod, you can use the "-link" parameters to link to an alternate page either within the wiki or to another webpage.
{{Grid/Machine |Type=Macerator |Top=Cobblestone|Top-link=Cobblestone |Output=Sand|Output-link=Sand }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Cobblestone|Cobblestone|Cobblestone}}|alt=Cobblestone]]
{{#if:|
}}
{{#if:|[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Sand.png}}|32px|link={{#if:Sand|Sand|Sand}}|alt=Sand]]
{{#if:|
}}
{{#if:||
}}
Examples
Canning Machine
{{Grid/Machine |Type=Canning Machine |Top=Bread|Top-link=Bread |Bottom=Tin Can |Output=Canned Food }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Bread.png}}|32px|link={{#if:Bread|Bread|Bread}}|alt=Bread]]
{{#if:|
}}
{{#if:Tin Can|[[Image:{{#if:|{{{Bottom-image}}}|Grid_Tin Can.png}}|32px|link={{#if:|{{{Bottom-link}}}|Tin Can}}|alt=Tin Can]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Canned Food.png}}|32px|link={{#if:|{{{Output-link}}}|Canned Food}}|alt=Canned Food]]
{{#if:|
}}
{{#if:||
}}
Compressor
{{Grid/Machine |Type=Compressor |Top=Mixed Metal Ingot |Output=Advanced Alloy }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Mixed Metal Ingot.png}}|32px|link={{#if:|{{{Top-link}}}|Mixed Metal Ingot}}|alt=Mixed Metal Ingot]]
{{#if:|
}}
{{#if:|[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Advanced Alloy.png}}|32px|link={{#if:|{{{Output-link}}}|Advanced Alloy}}|alt=Advanced Alloy]]
{{#if:|
}}
{{#if:||
}}
Electro Furnace
{{Grid/Machine |Type=Electro Furnace |Top=Cobblestone|Top-link=Cobblestone |Output=Stone||Top-link=Stone }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Stone|Stone|Cobblestone}}|alt=Cobblestone]]
{{#if:|
}}
{{#if:|[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Stone.png}}|32px|link={{#if:|{{{Output-link}}}|Stone}}|alt=Stone]]
{{#if:|
}}
{{#if:||
}}
Extractor
{{Grid/Machine |Type=Extractor |Top=Sticky Resin |OA=3 |Output=Rubber }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Sticky Resin.png}}|32px|link={{#if:|{{{Top-link}}}|Sticky Resin}}|alt=Sticky Resin]]
{{#if:|
}}
{{#if:|[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Rubber.png}}|32px|link={{#if:|{{{Output-link}}}|Rubber}}|alt=Rubber]]
{{#if:3|
}}
{{#if:||
}}
Furnace
{{Grid/Machine |Type=Furnace |Top=Cobblestone|Top-link=Cobblestone |Bottom=Coal (Item)|Bottom-link=Coal_(Item) |Output=Stone||Top-link=Stone }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Stone|Stone|Cobblestone}}|alt=Cobblestone]]
{{#if:|
}}
{{#if:Coal (Item)|[[Image:{{#if:|{{{Bottom-image}}}|Grid_Coal (Item).png}}|32px|link={{#if:/Coal_(Item)|/Coal_(Item)|Coal (Item)}}|alt=Coal (Item)]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Stone.png}}|32px|link={{#if:|{{{Output-link}}}|Stone}}|alt=Stone]]
{{#if:|
}}
{{#if:||
}}
Macerator
{{Grid/Machine |Type=Macerator |Top=Gravel|Top-link=Gravel |Output=Flint|Output-link=Flint }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Gravel.png}}|32px|link={{#if:Gravel|Gravel|Gravel}}|alt=Gravel]]
{{#if:|
}}
{{#if:|[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Flint.png}}|32px|link={{#if:Flint|Flint|Flint}}|alt=Flint]]
{{#if:|
}}
{{#if:||
}}
Recycler
{{Grid/Machine |Type=Recycler |Top=Cobblestone|Top-link=Cobblestone |Output=Scrap }}
- produces
[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Cobblestone|Cobblestone|Cobblestone}}|alt=Cobblestone]]
{{#if:|
}}
{{#if:|[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]
[[Image:{{#if:|{{{Output-image}}}|Grid_Scrap.png}}|32px|link={{#if:|{{{Output-link}}}|Scrap}}|alt=Scrap]]
{{#if:|
}}
{{#if:||
}}