Template:ForgeSlot: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by one other user 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 18: Line 20:
### 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}}}
}}}}<!--
}}}}}}<!--


--><table class="forgeslot">
-->{{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>
    <tr>
        <th class="anviltab">{{#if:{{{anvtab|}}}|[[File:{{{anvtab}}}.png|24px|link=]]}} {{{anvtab|Tab ?}}}</th>
        <th>Lv Req: {{{levelreq|}}}</th>
        <th>Exp: {{Numdisplay|{{{expgiven|}}}}}</th>
        <th>'''No.{{{craftnum|?}}}'''</th>
    </tr>
    {{#if:{{{resource1|}}}|<tr>
        <td colspan="3">{{CraftReq|{{{resource1}}}}} </td>
        <td>x{{{quantity1}}}</td>
    </tr>}}
    {{#if:{{{resource2|}}}|<tr>
        <td colspan="3">{{CraftReq|{{{resource2}}}}} </td>
        <td>x{{{quantity2}}}</td>
    </tr>}}
    {{#if:{{{resource3|}}}|<tr>
        <td colspan="3">{{CraftReq|{{{resource3}}}}} </td>
        <td>x{{{quantity3}}}</td>
    </tr>}}
    {{#if:{{{resource4|}}}|<tr>
        <td colspan="3">{{CraftReq|{{{resource4}}}}} </td>
        <td>x{{{quantity4}}}</td>
    </tr>}}
    {{#if:{{{recipefrom|}}}|<tr>
      <td colspan="4">Recipe from {{{recipefrom|Unobtainable}}}</td>
    </tr>}}
</table></includeonly><noinclude>
<pre>
<pre>
Usage:
Usage:

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)
}}