Template:Grid/Crafting: Difference between revisions

From Vintage Story Wiki
(basics)
 
m (fix width)
(43 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| cellpadding="0" cellspacing="0" style="background: #C6C6C6; border: outset 2px #999; padding: 6px;" class="grid-Crafting_Table"
<includeonly><div style="float:{{#if:{{{float|}}}|{{{float}}}|left}};"><div style="left:0px; top:0px; width:174px; height:241px; position:relative;">
|width="36"|
<div style="left:0px; top:0px; width:174px; height:132px;">[[Image:Crafting_GUI.png|174px|link=|alt=]]</div>
|width="36"|
{{#if:{{{A1|}}}|<div style="left:14px; top:9px; width:40px; height:40px; position:absolute;">
|width="36"|
[[Image:{{#if:{{{A1-image|}}}|{{{A1-image}}}|Grid_{{{A1}}}.png}}|40px|link={{#if:{{{A1-link|}}}|{{{A1-link}}}|{{{A1}}}}}|alt={{{A1}}}]]
|width="40"|
</div>}}
|width="54"|
{{#if:{{{A2|}}}|<div style="left:14px; top:60px; width:40px; height:40px; position:absolute;">
|-
[[Image:{{#if:{{{A2-image|}}}|{{{A2-image}}}|Grid_{{{A2}}}.png}}|40px|link={{#if:{{{A2-link|}}}|{{{A2-link}}}|{{{A2}}}}}|alt={{{A2}}}]]
| {{Grid|{{{A1|}}}|link={{{A1link|}}}|title={{{A1title|}}}}}
</div>}}
| {{Grid|{{{B1|}}}|link={{{B1link|}}}|title={{{B1title|}}}}}
{{#if:{{{A3|}}}|<div style="left:14px; top:110px; width:40px; height:40px; position:absolute;">
| {{ #if: {{{Blocked|}}}
[[Image:{{#if:{{{A3-image|}}}|{{{A3-image}}}|Grid_{{{A3}}}.png}}|40px|link={{#if:{{{A3-link|}}}|{{{A3-link}}}|{{{A3}}}}}|alt={{{A3}}}]]
    | [[File:SlotBlocked.png|link=]]
</div>}}
    | {{Grid|{{{C1|}}}|link={{{C1link|}}}|title={{{C1title|}}}}}}}
{{#if:{{{B1|}}}|<div style="left:65px; top:9px; width:40px; height:40px; position:absolute;">
| rowspan="2" class="arrow" | [[File:Grid layout Arrow (small).png|link=]]
[[Image:{{#if:{{{B1-image|}}}|{{{B1-image}}}|Grid_{{{B1}}}.png}}|40px|link={{#if:{{{B1-link|}}}|{{{B1-link}}}|{{{B1}}}}}|alt={{{B1}}}]]
| rowspan="3" | {{Grid|{{{Output|}}}|link={{{Olink|}}}|title={{{Otitle|}}}|class=output}}
</div>}}
|-
{{#if:{{{B2|}}}|<div style="left:65px; top:60px; width:40px; height:40px; position:absolute;">
| {{Grid|{{{A2|}}}|link={{{A2link|}}}|title={{{A2title|}}}}}
[[Image:{{#if:{{{B2-image|}}}|{{{B2-image}}}|Grid_{{{B2}}}.png}}|40px|link={{#if:{{{B2-link|}}}|{{{B2-link}}}|{{{B2}}}}}|alt={{{B2}}}]]
| {{Grid|{{{B2|}}}|link={{{B2link|}}}|title={{{B2title|}}}}}
</div>}}
| {{ #if: {{{Blocked|}}}
{{#if:{{{B3|}}}|<div style="left:65px; top:110px; width:40px; height:40px; position:absolute;">
    | [[File:SlotBlocked.png|link=]]
[[Image:{{#if:{{{B3-image|}}}|{{{B3-image}}}|Grid_{{{B3}}}.png}}|40px|link={{#if:{{{B3-link|}}}|{{{B3-link}}}|{{{B3}}}}}|alt={{{B3}}}]]
    | {{Grid|{{{C2|}}}|link={{{C2link|}}}|title={{{C2title|}}}}}}}
</div>}}
|-
{{#if:{{{C1|}}}|<div style="left:118px; top:9px; width:40px; height:40px; position:absolute;">
| {{ #if: {{{Blocked|}}}
[[Image:{{#if:{{{C1-image|}}}|{{{C1-image}}}|Grid_{{{C1}}}.png}}|40px|link={{#if:{{{C1-link|}}}|{{{C1-link}}}|{{{C1}}}}}|alt={{{C1}}}]]
    | [[File:SlotBlocked.png|link=]]
</div>}}
    | {{Grid|{{{A3|}}}|link={{{A3link|}}}|title={{{A3title|}}}}}}}
{{#if:{{{C2|}}}|<div style="left:118px; top:60px; width:40px; height:40px; position:absolute;">
| {{ #if: {{{Blocked|}}}
[[Image:{{#if:{{{C2-image|}}}|{{{C2-image}}}|Grid_{{{C2}}}.png}}|40px|link={{#if:{{{C2-link|}}}|{{{C2-link}}}|{{{C2}}}}}|alt={{{C2}}}]]
    | [[File:SlotBlocked.png|link=]]
</div>}}
    | {{Grid|{{{B3|}}}|link={{{B3link|}}}|title={{{B3title|}}}}}}}
{{#if:{{{C3|}}}|<div style="left:118px; top:110px; width:40px; height:40px; position:absolute;">
| {{ #if: {{{Blocked|}}}
[[Image:{{#if:{{{C3-image|}}}|{{{C3-image}}}|Grid_{{{C3}}}.png}}|40px|link={{#if:{{{C3-link|}}}|{{{C3-link}}}|{{{C3}}}}}|alt={{{C3}}}]]
    | [[File:SlotBlocked.png|link=]]
</div>}}
    | {{Grid|{{{C3|}}}|link={{{C3link|}}}|title={{{C3title|}}}}}}}
{{#if:{{{Output|}}}|<div style="left:65px; top:180px; width:40px; height:40px; position:absolute;">
| class="shapeless" | {{#if: {{{shapeless|}}} | <span title="This recipe is shapeless; the inputs may be placed in any arrangement in the crafting grid.">[[File:Grid layout Shapeless.png|link=]]</span> }}
[[Image:{{#if:{{{Output-image|}}}|{{{Output-image}}}|Grid_{{{Output|}}}.png}}|40px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
|}
</div>}}
{{#if:{{{OA|}}}|
<div style="left:78px; top:210px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{OA|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:90px; top:210px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{OA|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{A1N|}}}|
<div style="left:40px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{A1N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:40px; top:38px; width:16px; height:16px;; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{A1N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{A2N|}}}|
<div style="left:40px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{A2N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:40px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{A2N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{A3N|}}}|
<div style="left:40px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{A3N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:40px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{A3N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{B1N|}}}|
<div style="left:91px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{B1N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:91px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{B1N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{B2N|}}}|
<div style="left:91px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{B2N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:91px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{B2N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{B3N|}}}|
<div style="left:91px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{B3N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:91px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{B3N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{C1N|}}}|
<div style="left:142px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{C1N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:142px; top:38px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{C1N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{C2N|}}}|
<div style="left:142px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{C2N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:142px; top:89px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{C2N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
        {{#if:{{{C3N|}}}|
<div style="left:142px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (floor({{{C3N|}}}/10) - 1)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
<div style="left:142px; top:139px; width:16px; height:16px; position:absolute; overflow:hidden;">
<div style="left:{{#expr:-16 * (({{{C3N|}}} - 1) mod 10)}}px; top:-11px; width:160px; height:16px; position:absolute;">
[[Image:GridNumbersCSS.png|160px|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|alt={{{Output}}}]]
</div>
</div>
}}
</div></div>{{#if:{{{NoBreak|}}}||{{-}}}}</includeonly>
<noinclude><pre>{{Grid/Crafting
|A1=c1r1 |A1N=num
|A2=c1r2 |A2N=num
|A3=c1r3 |A3N=num
|B1=c2r1 |B1N=num
|B2=c2r2 |B2N=num
|B3=c2r3 |B3N=num
|C1=c3r1 |C1N=num
|C2=c4r2 |C2N=num
|C3=c3r3 |C3N=num
|Output=out |OA=num
|NoBreak=y
}}</pre></noinclude>

Revision as of 19:59, 25 March 2020

{{Grid/Crafting
|A1=c1r1 |A1N=num
|A2=c1r2 |A2N=num
|A3=c1r3 |A3N=num
|B1=c2r1 |B1N=num
|B2=c2r2 |B2N=num
|B3=c2r3 |B3N=num
|C1=c3r1 |C1N=num
|C2=c4r2 |C2N=num
|C3=c3r3 |C3N=num
|Output=out |OA=num
|NoBreak=y
}}