Difference between revisions of "User:Chocohead/Template:Grid/Canning Machine"
Jump to navigation
Jump to search
m (More testing) |
m (Removed extra tests and old code - the tanks are done!) |
||
Line 8: | Line 8: | ||
{{#if:{{{input-tank|}}}|{{#ifexist: File:Tank {{{input-tank|}}}.png|<div style="left:77px; top:{{#expr:92-(0.0094*{{{input-fill|0}}})}}px; position:absolute; width:24px; height:94px; clip:rect({{#expr:0+(0.0094*{{{input-fill|0}}})}}px,24px,{{#expr:94+(0.0094*{{{input-fill|0}}})}}px,0px);">[[Image:Tank {{{input-tank}}}.png|24px|link=|alt=]]</div>|<div style="left:77px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}}|<div style="left:77px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}} | {{#if:{{{input-tank|}}}|{{#ifexist: File:Tank {{{input-tank|}}}.png|<div style="left:77px; top:{{#expr:92-(0.0094*{{{input-fill|0}}})}}px; position:absolute; width:24px; height:94px; clip:rect({{#expr:0+(0.0094*{{{input-fill|0}}})}}px,24px,{{#expr:94+(0.0094*{{{input-fill|0}}})}}px,0px);">[[Image:Tank {{{input-tank}}}.png|24px|link=|alt=]]</div>|<div style="left:77px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}}|<div style="left:77px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}} | ||
{{#if:{{{output-tank|}}}|{{#ifexist: File:Tank {{{output-tank|}}}.png|<div style="left:233px; top:{{#expr:92-(0.0094*{{{output-fill|0}}})}}px; position:absolute; width:24px; height:94px; clip:rect({{#expr:0+(0.0094*{{{output-fill|0}}})}}px,24px,{{#expr:94+(0.0094*{{{output-fill|0}}})}}px,0px);">[[Image:Tank {{{output-tank}}}.png|24px|link=|alt=]]</div>|<div style="left:233px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}}|<div style="left:233px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}} | {{#if:{{{output-tank|}}}|{{#ifexist: File:Tank {{{output-tank|}}}.png|<div style="left:233px; top:{{#expr:92-(0.0094*{{{output-fill|0}}})}}px; position:absolute; width:24px; height:94px; clip:rect({{#expr:0+(0.0094*{{{output-fill|0}}})}}px,24px,{{#expr:94+(0.0094*{{{output-fill|0}}})}}px,0px);">[[Image:Tank {{{output-tank}}}.png|24px|link=|alt=]]</div>|<div style="left:233px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}}|<div style="left:233px; top:92px; position:absolute; width:24px; height:94px;">[[Image:Tank Empty.png|24px|link=|alt=]]</div>}} | ||
Line 29: | Line 25: | ||
|output-tank=Water | |output-tank=Water | ||
|output-fill=7500 | |output-fill=7500 | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 18:02, 23 September 2014
My testing to update the canning machine template, since the Template:Grid/Machine just doesn't cut it.
User:Chocohead/Template:Grid/Canning Machine/doc


