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

From Industrial-Craft-Wiki
Jump to navigation Jump to search
m (Added wooden support)
m (Oops, I can type)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:{{#if:{{{float|}}}|{{{float}}}|left}}; left:0px; top:0px; width:352px; height:167px; position:relative;">
<div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:352px; height:167px; position:relative;">
<div style="left:0px; top:0px; width:352px; height:167px;">[[Image:Turning Table_GUI.png|352px|link=|alt=]]</div>
<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>
<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;">
{{#if:{{{Output|}}}|<div style="left:20px; top:24px; width:32px; height:32px; position:absolute;">
{{#switch:{{{Output}}}|
{{#switch:{{{Output}}}|
|Handle = {{Gc|[Iron Turning Blank\Handle]Iron Turning Blank}}
|Handle = {{Gc|[Iron Turning Blank\Handle]Iron Turning Handle~Turning Table#Handle}}
|Drill = {{Gc|[Iron Turning Blank\Drill]Iron Turning Blank}}
|Drill = {{Gc|[Iron Turning Blank\Drill]Iron Turning Drill~Turning Table#Drill}}
|Wooden = {{Gc|Wooden Turning Blank}}
|Axle = {{Gc|[Iron Turning Blank\Axle]Iron Turning Axle~Turning Table#Axle}}
|Wooden
|Wood = {{Gc|Wooden Turning Blank}}
|#default = {{Gc|Iron Turning Blank}}
|#default = {{Gc|Iron Turning Blank}}
}}
}}
Line 18: Line 20:
|Iron = {{Gc|Tiny Pile of Iron Dust}}
|Iron = {{Gc|Tiny Pile of Iron Dust}}
}}
}}
</div><div style="left:{{#expr:102-{{{n1}}}}}px; top:71px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n1}}}px,18px,{{#expr:{{{n1}}}-22}}px);"><!--
</div><div style="left:{{#expr:102-{{{n1}}}}}px; top:{{{top}}}px; 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>
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:{{#expr:150-{{{n2}}}}}px; top:71px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n2}}}px,18px,{{#expr:{{{n2}}}-22}}px);"><!--
<div style="left:{{#expr:150-{{{n2}}}}}px; top:{{{top}}}px; 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>
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:{{#expr:198-{{{n3}}}}}px; top:71px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n3}}}px,18px,{{#expr:{{{n3}}}-22}}px);"><!--
<div style="left:{{#expr:198-{{{n3}}}}}px; top:{{{top}}}px; 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>
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:{{#expr:246-{{{n4}}}}}px; top:71px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n4}}}px,18px,{{#expr:{{{n4}}}-22}}px);"><!--
<div style="left:{{#expr:246-{{{n4}}}}}px; top:{{{top}}}px; 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>
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
<div style="left:{{#expr:294-{{{n5}}}}}px; top:71px; width:22px; height:14px; position:absolute; clip:rect(0px,{{{n5}}}px,18px,{{#expr:{{{n5}}}-22}}px);"><!--
<div style="left:{{#expr:294-{{{n5}}}}}px; top:{{{top}}}px; 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>
-->[[File:Turning Table GUI Numbers.png|110px|link=|alt=]]</div>
{{#ifeq:{{{Type}}}|Wooden|<div style="left:100px; top:{{{top}}}px; width:206px; height:14px; position:absolute;">[[File:Turning Table GUI Override.png|link=|alt=]]</div>|}}
<div style="left:80px; top:90px; position:absolute;">
<div style="left:80px; top:90px; position:absolute;">
<div style="width:48px; height:{{{b1}}}px; position:absolute; clip:rect({{{b1t}}}px,48px,{{{b1}}}px,0px);"><!--top, right, bottom, left
<div style="width:48px; height:{{{b1}}}px; position:absolute; clip:rect({{{b1t}}}px,48px,{{{b1}}}px,0px);"><!--top, right, bottom, left
Line 40: Line 43:
-->[[File:Turning {{{Type}}} Bar.png|240px|link=|alt=]]</div>
-->[[File:Turning {{{Type}}} Bar.png|240px|link=|alt=]]</div>
</div>}}
</div>}}
</div>{{#if:{{{nobreak|}}}||{{-}}}}<noinclude>{{Documentation}}</noinclude>
</div></div>{{#if:{{{nobreak|}}}||{{-}}}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 01:18, 3 September 2015


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)