Template:ForgeSlot/itemdisplay: Difference between revisions

From IdleOn MMO Wiki
(Use 'Numdisplay' to format the number of required materials e.g. 2000000 becomes 2 M, 150000 becomes 150 k)
m (Remove 'x' from before the amount of material needed)
Line 8: Line 8:
     {{#if:{{{resource1|}}}|<tr>
     {{#if:{{{resource1|}}}|<tr>
         <td colspan="3">{{CraftReq|{{{resource1}}}}} </td>
         <td colspan="3">{{CraftReq|{{{resource1}}}}} </td>
         <td>x{{Numdisplay|{{{quantity1}}}}}</td>
         <td>{{Numdisplay|{{{quantity1}}}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{resource2|}}}|<tr>
     {{#if:{{{resource2|}}}|<tr>
         <td colspan="3">{{CraftReq|{{{resource2}}}}} </td>
         <td colspan="3">{{CraftReq|{{{resource2}}}}} </td>
         <td>x{{Numdisplay|{{{quantity2}}}}}</td>
         <td>{{Numdisplay|{{{quantity2}}}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{resource3|}}}|<tr>
     {{#if:{{{resource3|}}}|<tr>
         <td colspan="3">{{CraftReq|{{{resource3}}}}} </td>
         <td colspan="3">{{CraftReq|{{{resource3}}}}} </td>
         <td>x{{Numdisplay|{{{quantity3}}}}}</td>
         <td>{{Numdisplay|{{{quantity3}}}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{resource4|}}}|<tr>
     {{#if:{{{resource4|}}}|<tr>
         <td colspan="3">{{CraftReq|{{{resource4}}}}} </td>
         <td colspan="3">{{CraftReq|{{{resource4}}}}} </td>
         <td>x{{Numdisplay|{{{quantity4}}}}}</td>
         <td>{{Numdisplay|{{{quantity4}}}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{recipefrom|}}}|<tr>
     {{#if:{{{recipefrom|}}}|<tr>

Revision as of 10:51, 9 August 2023