Difference between revisions of "Template:Grid/Turning Table"

From Industrial-Craft-Wiki
Jump to navigation Jump to search
m (Oops)
m (Added note about where the actual template is)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{Return|}}}|<div style="float:{{#if:{{{float|}}}|{{{float}}}|left}}; left:0px; top:0px; width:352px; height:167px; position:relative;">
{{#invoke:Grid|turning}}<noinclude>The actual returning template is located at [[Template:Grid/Turning Table/Return]]!{{Documentation}}</noinclude>
<div style="left:0px; top:0px; width:352px; height:167px;">[[Image:Turning Table_GUI.png|352px|link=|alt=]]</div>
<div style="position:absolute; left:106px; top:9px; font-family:Minecraftia; font-size: 16.5px;">[[Turning Table]]</div>
{{#if:{{{Output|}}}|<div style="left:20px; top:24px; width:32px; height:32px; position:absolute;">
{{#switch:{{{Output}}}|
|Handle
|handle = {{Gc|[Iron Turning Blank\Handle]Iron Turning Blank}}
|Drill
|drill = {{Gc|[Iron Turning Blank\Drill]Iron Turning Blank}}
|#default = {{Gc|Iron Turning Blank}}
}}
</div>}}
<div style="left:22px; top:62px; width:32px; height:32px; position:absolute;"><!-- should really be 20, 60 ;)-->
{{Gc|Lathing Tool}}
</div>
{{#if:{{{Type|}}}|<div style="left:20px; top:114px; width:32px; height:32px; position:absolute;">
{{#switch:{{{Type}}}|
|Wood = {{Gc|Stick~Non-IC Items}}
|Iron = {{Gc|Tiny Pile of Iron Dust}}
}}
</div><div style="left:80px; top:70px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n1}}}px,18px,{{#expr:{{{n1}}}-22}}px);"><!--
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:106px; top:70px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n2}}}px,18px,{{#expr:{{{n2}}}-22}}px);"><!--
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:132px; top:70px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n3}}}px,18px,{{#expr:{{{n3}}}-22}}px);"><!--
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:158px; top:70px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n4}}}px,18px,{{#expr:{{{n4}}}-22}}px);"><!--
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:184px; top:70px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n5}}}px,18px,{{#expr:{{{n5}}}-22}}px);"><!--
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:80px; top:90px; position:absolute;">
<div style="width:48px; height:{{{b1}}}px; position:absolute; clip:rect({{{b1-t}}}px,48px,{{{b1}}}px,0px);"><!--top, right, bottom, left
-->[[File:Turning {{{Type}}} Bar.png|240px|link=|alt=]]</div>
<div style="width:48px; height:{{{b2}}}px; position:absolute; clip:rect({{{b2-t}}}px,96px,{{{b2}}}px,48px);"><!--
-->[[File:Turning {{{Type}}} Bar.png|240px|link=|alt=]]</div>
<div style="width:48px; height:{{{b3}}}px; position:absolute; clip:rect({{{b3-t}}}px,144px,{{{b3}}}px,96px);"><!--
-->[[File:Turning {{{Type}}} Bar.png|240px|link=|alt=]]</div>
<div style="width:48px; height:{{{b4}}}px; position:absolute; clip:rect({{{b4-t}}}px,192px,{{{b4}}}px,144px);"><!--
-->[[File:Turning {{{Type}}} Bar.png|240px|link=|alt=]]</div>
<div style="width:48px; height:{{{b5}}}px; position:absolute; clip:rect({{{b5-t}}}px,240px,{{{b5}}}px,192px);"><!--
-->[[File:Turning {{{Type}}} Bar.png|240px|link=|alt=]]</div>
</div>}}
</div>
|{{#invoke:Grid|turning}}}}

Latest revision as of 22:22, 13 March 2015


The actual returning template is located at Template:Grid/Turning Table/Return!

Template-info.png Documentation
Lua logo.png This template uses Module:Grid, a script written in Lua.
Please see wikipedia:wp:Lua and mw:Extension:Scribunto to learn more.

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

Parameters[edit]

  • Output: Set the output item, currently only Drill and Handle are supported, anything else will just generate a blank Iron Turning Blank.
  • Layout: Set the layout of the crafting grid, separating the numbers with a comma, 5 numbers are required as there are 5 parts that can be lathed.
  • Float, float: (Optional) Set the float of the crafting grid
  • nobreak: (Optional) Add to make the crafting grid not line break at the end

Example[edit]

{{Grid/Turning Table
|Output = Drill
|Layout = 5,4,3,2,1
|nobreak = 1
}}

{{Grid/Turning Table
|Output = Handle
|Layout = 4,3,2,2,2
}}

See Also[edit]

The above documentation is transcluded from Template:Grid/Turning Table/doc. (edit | history)