Template:ForgeSlot: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Wekhter
mNo edit summary
Line 33: Line 33:
}}}}<!--
}}}}<!--


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

Revision as of 00:42, 26 June 2021

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)
}}