Template:AlchemyBubble/row: Difference between revisions

From IdleOn MMO Wiki
No edit summary
Tag: Reverted
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{head|}}}
<tr {{#if: {{{big|}}}|class="big"|}}>
|<tr>
   <td class="icon">[[File:{{{icon}}}.png|{{#if: {{{big|}}}|64px|48px}}|link=]]</td>
  <th>Icon</th>
   <td class="name" id="{{{name}}}">{{{name}}}</td>
  <th>Name</th> 
  <th>Materials</th>
  <th>Description</th>
</tr>
|<tr {{#if: {{{big|}}}|class="big"|}}>
   <th class="icon">[[File:{{{icon}}}.png|{{#if: {{{big|}}}|64px|48px}}|link=]]</th>
   <th class="name" id="{{{name}}}">{{{name}}}</th>
   <td>
   <td>
  <ul style="list-style-type:none; margin: 0 5px 0 0;">
    <ul style="list-style-type:none; margin: 0 5px 0 0;">
  <li>{{#if: {{{mat1|}}}|{{CraftReq|{{{mat1}}}}}|}}</li>
      <li>{{#if: {{{mat1|}}}|{{CraftReq|{{{mat1}}}}}{{Usedin/datarow|icon={{{icon}}}|item={{{mat1}}}|amount=Lots|type=Alchemy Bubble{{Tooltip|{{{effect}}}}}|source={{PAGENAME}}#{{{name}}}{{!}}{{{name}}}}}|}}</li>
  <li>{{#if: {{{icon1|}}}|{{Icons|{{{icon1}}}|text={{{icon1}}}}}|}}</li>
      <li>{{#if: {{{icon1|}}}|{{Icons|{{{icon1}}}|text={{{icon1}}}}}|}}</li>
  <li>{{#if: {{{mat2|}}}|{{CraftReq|{{{mat2}}}}}|}}</li>
      <li>{{#if: {{{Spice1|}}}|{{Spice|{{{Spice1}}}}}|}}</li>
  <li>{{#if: {{{icon2|}}}|{{Icons|{{{icon2}}}|text={{{icon2}}}}}|}}</li>
      <li>{{#if: {{{liq1|}}}|{{Liquid|{{{liq1}}}}}|}}</li>
  <li>{{#if: {{{mat3|}}}|{{CraftReq|{{{mat3}}}}}|}}</li>
      <li>{{#if: {{{liq2|}}}|{{Liquid|{{{liq2}}}}}|}}</li>
  <li>{{#if: {{{icon3|}}}|{{Icons|{{{icon3}}}|text={{{icon3}}}}}|}}</li>
    </ul>
  <li>{{#if: {{{mat4|}}}|{{CraftReq|{{{mat4}}}}}|}}</li>
   </td>
  <li>{{#if: {{{icon4|}}}|{{Icons|{{{icon4}}}|text={{{icon4}}}}}|}}</li>
   <td>{{{effect}}}</td>
  <li>{{#if: {{{liq1|}}}|{{Liquid|{{{liq1}}}}}|}}</li>
  <li>{{#if: {{{liq2|}}}|{{Liquid|{{{liq2}}}}}|}}</li>
  <li>{{#if: {{{liq3|}}}|{{Liquid|{{{liq3}}}}}|}}</li>
   <li>{{#if: {{{liq4|}}}|{{Liquid|{{{liq4}}}}}|}}</li></ul></td>
   <td>{{{effect}}}</td><!--
-->{{#ifeq:{{PAGENAME}}|Alchemy||<!--
-->{{#if:{{{mat1|}}}|{{Usedin/datarow|item={{{mat1}}}|amount=Lots|type=Alchemy Bubble{{Tooltip|{{{3|}}}}}|source={{PAGENAME}}{{!}}{{{name}}}}}|}}<!--
-->{{#if:{{{mat2|}}}|{{Usedin/datarow|item={{{mat2}}}|amount=Lots|type=Alchemy Bubble|source={{PAGENAME}}{{!}}{{{name}}}}}|}}<!--
-->{{#if:{{{mat3|}}}|{{Usedin/datarow|item={{{mat3}}}|amount=Lots|type=Alchemy Bubble|source={{PAGENAME}}{{!}}{{{name}}}}}|}}<!--
-->{{#if:{{{mat4|}}}|{{Usedin/datarow|item={{{mat4}}}|amount=Lots|type=Alchemy Bubble|source={{PAGENAME}}{{!}}{{{name}}}}}|}}}}
   </tr>
   </tr>
}}
</includeonly><noinclude>
</includeonly><noinclude>
<pre>
<pre>

Latest revision as of 13:11, 19 August 2024

How to use

Example:

{{AlchemyBubble/row
|icon=OrangeBubble1       <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|name=example name
|effect=example description     <--- the bubble description --->
|liq1-4=1-4         <--- 1 for Water, 2 for Nitrogen, etc. --->
|mat1-4=example material
}}

Other parameters:

|big=orange             <--- or green / purple / yellow - insert for big (active) bubbles --->
|head=orange            <--- or green / purple / yellow - insert on the first row, replaces the row with header --->
|end=yes                <--- insert on the final row, rounds bottom corners of the table --->