Difference between revisions of "Template:Grid/Ore Washing Plant"
Jump to navigation
Jump to search
m (Moved title over a pixel and remove testing templates) |
m (Added multi-output support for the middle and right output slots too) |
||
(One intermediate revision by the same user not shown) | |||
Line 34: | Line 34: | ||
</div>}} | </div>}} | ||
<!-- ^ Right Output Slot --> | <!-- ^ Right Output Slot --> | ||
{{#if:{{{OA1|}}}| | |||
<div style="left:184px; top:143px; width:16px; height:16px; position:absolute; overflow:hidden;"> | |||
<div style="left:{{#expr:-16 * (floor({{{OA1|}}}/10) - 1)}}px; top:-8px; width:160px; height:16px; position:absolute;"> | |||
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output1-link|}}}|{{{Output1-link}}}|{{{Output1}}}}}|alt={{{Output1}}}]] | |||
</div> | |||
</div> | |||
<div style="left:196px; top:143px; width:16px; height:16px; position:absolute; overflow:hidden;"> | |||
<div style="left:{{#expr:-16 * (({{{OA1|}}} - 1) mod 10)}}px; top:-8px; width:160px; height:16px; position:absolute;"> | |||
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output1-link|}}}|{{{Output1-link}}}|{{{Output1}}}}}|alt={{{Output1}}}]] | |||
</div> | |||
</div> | |||
}} | |||
<!-- ^ Left Output Slot Multi-Item Number --> | |||
{{#if:{{{OA2|}}}| | |||
<div style="left:220px; top:143px; width:16px; height:16px; position:absolute; overflow:hidden;"> | |||
<div style="left:{{#expr:-16 * (floor({{{OA2|}}}/10) - 1)}}px; top:-8px; width:160px; height:16px; position:absolute;"> | |||
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output2-link|}}}|{{{Output2-link}}}|{{{Output2}}}}}|alt={{{Output2}}}]] | |||
</div> | |||
</div> | |||
<div style="left:232px; top:143px; width:16px; height:16px; position:absolute; overflow:hidden;"> | |||
<div style="left:{{#expr:-16 * (({{{OA2|}}} - 1) mod 10)}}px; top:-8px; width:160px; height:16px; position:absolute;"> | |||
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output2-link|}}}|{{{Output2-link}}}|{{{Output2}}}}}|alt={{{Output2}}}]] | |||
</div> | |||
</div> | |||
}} | |||
<!-- ^ Middle Output Multi-Item Number --> | |||
{{#if:{{{OA3|}}}| | |||
<div style="left:256px; top:143px; width:16px; height:16px; position:absolute; overflow:hidden;"> | |||
<div style="left:{{#expr:-16 * (floor({{{OA3|}}}/10) - 1)}}px; top:-8px; width:160px; height:16px; position:absolute;"> | |||
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output3-link|}}}|{{{Output3-link}}}|{{{Output3}}}}}|alt={{{Output3}}}]] | |||
</div> | |||
</div> | |||
<div style="left:268px; top:143px; width:16px; height:16px; position:absolute; overflow:hidden;"> | |||
<div style="left:{{#expr:-16 * (({{{OA3|}}} - 1) mod 10)}}px; top:-8px; width:160px; height:16px; position:absolute;"> | |||
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output3-link|}}}|{{{Output3-link}}}|{{{Output3}}}}}|alt={{{Output3}}}]] | |||
</div> | |||
</div> | |||
}} | |||
<!-- ^ Right Output Slot Multi-Item Number --> | |||
{{#if:{{{Battery|}}}|<div style="left:16px; top:119px; width:32px; height:32px; position:absolute;"> | {{#if:{{{Battery|}}}|<div style="left:16px; top:119px; width:32px; height:32px; position:absolute;"> | ||
[[Image:{{#if:{{{Battery-image|}}}|{{{Battery-image}}}|Grid_{{{Battery|}}}.png}}|32px|link={{#if:{{{Battery-link|}}}|{{{Battery-link}}}|{{{Battery}}}}}|alt={{{Battery}}}]] | [[Image:{{#if:{{{Battery-image|}}}|{{{Battery-image}}}|Grid_{{{Battery|}}}.png}}|32px|link={{#if:{{{Battery-link|}}}|{{{Battery-link}}}|{{{Battery}}}}}|alt={{{Battery}}}]] |
Latest revision as of 21:06, 11 October 2014
This template is used to create a machine GUI that looks similar to the Ore Washing Plant's GUI screen.
Usage[edit]
{{Grid/Ore Washing Plant |Top=Water Bucket |Bottom=Bucket |Water=1000 |Battery=RE Battery |Input=Crushed Iron Ore |Output1=Purified Crushed Iron Ore |Output2=Tiny Pile of Iron Dust |OA2=2 |Output3=Stone Dust }}
makes:
Additional Usage Information[edit]
Just like all other crafting templates, -link can be added to change where an item links to (such as Iron going to Non-IC Items) and |OA1-3= can be added after the output to increase the products.
Note[edit]
When uploading images for this, or any other template, (if they are missing) then the following standard is used:
Grid_item name.png -- A 32x32 image of the item as it appears in a player's inventory.
See also[edit]
{{Grid/Machine}}
The above documentation is transcluded from Template:Grid/Ore Washing Plant/doc. (edit | history)