Template:ForgeSlot: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
mNo edit summary
mNo edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 2: Line 2:
### Cargo Declare ###
### Cargo Declare ###
-->{{#cargo_declare:_table=AnvilCraft
-->{{#cargo_declare:_table=AnvilCraft
  |Item=String
  |EXPGiven=Integer
   |AnvilTab=String
   |AnvilTab=String
   |CraftNum=Integer
   |CraftNum=Integer
Line 17: Line 19:


### Cargo Store ###
### Cargo Store ###
--><includeonly>
--><includeonly><!--
{{#if:{{{cargo}}}|{{#cargo_store:_table=AnvilCraft
-->{{#if:{{{nocargo|}}}||{{#ifeq:{{{name|}}}|Not Yet||{{#cargo_store:_table=AnvilCraft
  |Item={{{name|Missing Item}}}
  |EXPGiven={{{expgiven|0}}}
   |AnvilTab={{{anvtab|Missing Tab}}}
   |AnvilTab={{{anvtab|Missing Tab}}}
   |CraftNum={{{craftnum|9999}}}
   |CraftNum={{{craftnum|9999}}}
Line 31: Line 35:
   |Quantity4={{{quantity4|}}}
   |Quantity4={{{quantity4|}}}
   |RecipeFrom={{{recipefrom|Unobtainable}}}
   |RecipeFrom={{{recipefrom|Unobtainable}}}
}}}}<!--
}}}}}}<!--


--><div class="forgeslot" style="max-width:400px;">
-->{{ForgeSlot/row|craftnum={{{craftnum|}}}|Name={{{name|}}}|expgiven={{{expgiven|}}}|levelreq={{{levelreq|}}}|resource1={{{resource1|}}}|resource2={{{resource2|}}}|resource3={{{resource3|}}}|resource4={{{resource4|}}}|quantity1={{{quantity1|}}}|quantity2={{{quantity2|}}}|quantity3={{{quantity3|}}}|quantity4={{{quantity4|}}}|recipefrom={{{recipefrom|}}}}}</includeonly><noinclude>
<table style="width:100%; background:#e6e6e6; border-radius:.7em;border:1px solid black;">
    <tr style="background:#916699;">
        <th style="text-align:left; border-top-left-radius:.5em;">{{#if:{{{anvtab|}}}|[[File:{{{anvtab}}}.png|25px|link=]]}} {{{anvtab|Tab?}}} Crafting Recipe</th>
        <th style="text-align:center;">Req:{{{levelreq}}}[[File:Smithing.png|25px|link=]]
        <th style="text-align:center; border-top-right-radius:.5em;">'''No.{{{craftnum|?}}}'''</td></th>
    </tr>
    {{#if:{{{resource1|}}}|<tr>
        <td colspan="2">{{CraftReq|{{{resource1}}}}} </td>
        <td style="text-align:center;">x{{{quantity1}}}</td>
    </tr>}}
    {{#if:{{{resource2|}}}|<tr>
        <td colspan="2">{{CraftReq|{{{resource2}}}}} </td>
        <td style="text-align:center;>x{{{quantity2}}}</td>
    </tr>}}
    {{#if:{{{resource3|}}}|<tr>
        <td colspan="2">{{CraftReq|{{{resource3}}}}} </td>
        <td style="text-align:center;>x{{{quantity3}}}</td>
    </tr>}}
    {{#if:{{{resource4|}}}|<tr>
        <td colspan="2">{{CraftReq|{{{resource4}}}}} </td>
        <td style="text-align:center;>x{{{quantity4}}}</td>
    </tr>}}
    {{#if:{{{recipefrom|}}}|<tr>
      <td colspan="3" style="text-align:right; border-radius:0 0 .5em .5em; padding-right:.3em">Recipe from {{{recipefrom|Unobtainable}}}</td>
    </tr>}}
</table>
</div>
</includeonly>
<noinclude>
<pre>
<pre>
Usage:
Usage:
Line 80: Line 55:
}}
}}
</pre>
</pre>
[[category:infobox templates]]
</noinclude>
</noinclude>


[[Category:Crafted]]
[[Category:Crafted]]
[[Category:Smithing]]
[[Category:Smithing]]

Latest revision as of 00:27, 15 October 2024

This template defines the table "AnvilCraft". View table.

Usage:
{{ForgeSlot
|anvtab=example (like Anvil Tab I)
|craftnum=example (the order in the crafting ui)
|levelreq=example
|resource1=example
|quantity1=example
|resource2=example
|quantity2=example
|resource3=example
|quantity3=example
|resource4=example
|quantity4=example
|recipefrom=example (where the recipe comes from)
}}