Template:ForgeSlot: Difference between revisions

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