Template:ForgeSlot: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(24 intermediate revisions by 4 users not shown)
Line 2: Line 2:
### Cargo Declare ###
### Cargo Declare ###
-->{{#cargo_declare:_table=AnvilCraft
-->{{#cargo_declare:_table=AnvilCraft
  |Item=String
  |EXPGiven=Integer
   |AnvilTab=String
   |AnvilTab=String
   |CraftNum=Integer
   |CraftNum=Integer
Line 17: Line 19:


### Cargo Store ###
### Cargo Store ###
--><includeonly>
--><includeonly><!--
{{#cargo_store:_table=AnvilCraft
-->{{#if:{{{nocargo|}}}||{{#ifeq:{{{name|}}}|Not Yet||{{#cargo_store:_table=AnvilCraft
  |Item={{{name|Missing Item}}}
  |EXPGiven={{{expgiven|0}}}
   |AnvilTab={{{anvtab|Missing Tab}}}
   |AnvilTab={{{anvtab|Missing Tab}}}
   |CraftNum={{{craftnum|9999}}}
   |CraftNum={{{craftnum|9999}}}
Line 31: Line 35:
   |Quantity4={{{quantity4|}}}
   |Quantity4={{{quantity4|}}}
   |RecipeFrom={{{recipefrom|Unobtainable}}}
   |RecipeFrom={{{recipefrom|Unobtainable}}}
}}<!--
}}}}}}<!--


--><div class ="forgeslot" style = "width:400px;">
-->{{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 style = "width:100%; background:#e6e6e6; border-radius: 10px;border:1px solid black;">
    <td colspan="2" style = "width:100%;">
        <table style = "width:400px;background:#916699;border-radius:10px 10px 0px 0px;">
            <tr style = "width:100%;">
                <th style = "text-align:left;">{{#if:{{{anvtab|}}}|[[File:{{{anvtab}}}.png|25px]]}} {{{anvtab|Tab?}}} Crafting Recipe</th>
                <th style = "text-align:center;">Req:{{{levelreq}}}[[File:Smithing.png|25px]]
                <td style = "text-align:center;">'''Nr.{{{craftnum|?}}}'''</td></th>
            </tr>
        </table>
    </td>
    {{#if:{{{resource1|}}}|<tr>
        <td style = "width:80%;">{{CraftReq|{{{resource1}}}}} </td>
        <td style = "width:20%;text-align:center;">x{{{quantity1}}}</td>
    </tr>}}
    {{#if:{{{resource2|}}}|<tr>
        <td style = "width:80%;">{{CraftReq|{{{resource2}}}}} </td>
        <td style = "width:20%;text-align:center;>x{{{quantity2}}}</td>
    </tr>}}
    {{#if:{{{resource3|}}}|<tr>
        <td style = "width:80%;">{{CraftReq|{{{resource3}}}}} </td>
        <td style = "width:20%;text-align:center;>x{{{quantity3}}}</td>
    </tr>}}
    {{#if:{{{resource4|}}}|<tr>
        <td style = "width:80%;">{{CraftReq|{{{resource4}}}}} </td>
        <td style = "width:20%;text-align:center;>x{{{quantity4}}}</td>
    </tr>}}
    {{#if:{{{recipefrom|}}}|<tr>
      <td colspan="2" style = "width:100%;">
        <table style = "width:100%;">
            <tr style = "width:100%;">
                <td style = "width:80%;>Recipe From</td>
                <td style = "text-align:center;">{{{recipefrom|Unobtainable}}}</td>
            </tr>
        </table>
    </tr>}}
      </table>
    </tr>
</table>
</div>
</includeonly>
<noinclude>
<pre>
<pre>
Usage:
Usage:
Line 92: 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)
}}