Template:ForgeSlot: Difference between revisions

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