Template:ForgeSlot: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
No edit summary
mNo edit summary
 
(65 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div class ="forgeslot" style = "width:400px;">
<noinclude><!--
<table style = "width:100%; background:#e6e6e6; border-radius: 10px;border:1px solid black;">
### Cargo Declare ###
    <td colspan="2" style = "width:100%;">
-->{{#cargo_declare:_table=AnvilCraft
        <table style = "width:400px;background:#916699;border-radius:10px 10px 0px 0px;">
  |Item=String
            <tr style = "width:100%;">
  |EXPGiven=Integer
                <th>Crafting Recipe</th>
  |AnvilTab=String
                <th style = "text-align:left;">{{{levelreq}}}</th>
  |CraftNum=Integer
            </tr>
  |LevelReq=Integer
        </table>
  |Resource1=String
    </td>
  |Quantity1=Integer
    {{#if:{{{resource1|}}}|<tr>
  |Resource2=String
        <td style = "width:80%;">{{CraftReq|item={{{resource1}}}}} </td>
  |Quantity2=Integer
        <td style = "width:20%;text-align:center;">x{{{quantity1}}}</td>
  |Resource3=String
    </tr>}}
  |Quantity3=Integer
    {{#if:{{{resource2|}}}|<tr>
  |Resource4=String
        <td style = "width:80%;">{{CraftReq|item={{{resource2}}}}} </td>
  |Quantity4=Integer
        <td style = "width:20%;text-align:center;>x{{{quantity2}}}</td>
  |RecipeFrom=Wikitext
    </tr>}}
}}</noinclude><!--
    {{#if:{{{resource3|}}}|<tr>
 
        <td style = "width:80%;">{{CraftReq|item={{{resource3}}}}} </td>
### Cargo Store ###
        <td style = "width:20%;text-align:center;>x{{{quantity3}}}</td>
--><includeonly><!--
    </tr>}}
-->{{#if:{{{nocargo|}}}||{{#ifeq:{{{name|}}}|Not Yet||{{#cargo_store:_table=AnvilCraft
    {{#if:{{{resource4|}}}|<tr>
  |Item={{{name|Missing Item}}}
        <td style = "width:80%;">{{CraftReq|item={{{resource4}}}}} </td>
  |EXPGiven={{{expgiven|0}}}
        <td style = "width:20%;text-align:center;>x{{{quantity4}}}</td>
  |AnvilTab={{{anvtab|Missing Tab}}}
    </tr>}}
  |CraftNum={{{craftnum|9999}}}
    {{#if:{{{recipefrom|}}}|<tr>
  |LevelReq={{{levelreq|9999}}}
      <td colspan="2" style = "width:100%;">
  |Resource1={{{resource1|Missing Resource}}}
        <table>
  |Quantity1={{{quantity1|0}}}
            <tr style = "width:100%;">
  |Resource2={{{resource2|}}}
                <td style = "width:80%;>Recipe From</td>
  |Quantity2={{{quantity2|}}}
                <td style = "text-align:left;">{{{recipefrom}}}</td>
  |Resource3={{{resource3|}}}
            </tr>
  |Quantity3={{{quantity3|}}}
        </table>
  |Resource4={{{resource4|}}}
    </tr>}}
  |Quantity4={{{quantity4|}}}
</table>
  |RecipeFrom={{{recipefrom|Unobtainable}}}
</div>
}}}}}}<!--
 
-->{{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>
<pre>
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)
}}
</pre>
[[category:infobox templates]]
</noinclude>
 
[[Category:Crafted]]
[[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)
}}