Template:ForgeSlot: Difference between revisions

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