Template:ForgeSlot: Difference between revisions

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