Template:AlchemyBubble/row: Difference between revisions

From IdleOn MMO Wiki
imported>Grzib
No edit summary
mNo edit summary
 
(49 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{head|}}}
<tr {{#if: {{{big|}}}|class="big"|}}>
|<tr style="{{#switch: {{{head}}}
   <td class="icon">[[File:{{{icon}}}.png|{{#if: {{{big|}}}|64px|48px}}|link=]]</td>
  |orange=background-color: #ff9933;
   <td class="name" id="{{{name}}}">{{{name}}}</td>
  |green=background-color: #34cb34;
   <td>
  |purple=background-color: #e066ff;
    <ul style="list-style-type:none; margin: 0 5px 0 0;">
  |yellow=background-color: #e6e600;}}">
      <li>{{#if: {{{mat1|}}}|{{CraftReq|{{{mat1}}}}}{{Usedin/datarow|icon={{{icon}}}|item={{{mat1}}}|amount=Lots|type=Alchemy Bubble{{Tooltip|{{{effect}}}}}|source={{PAGENAME}}#{{{name}}}{{!}}{{{name}}}}}|}}</li>
  <th style="border-radius:0.6em 0 0 0; padding:15px 0 15px 0;">Icon</th>
      <li>{{#if: {{{icon1|}}}|{{Icons|{{{icon1}}}|text={{{icon1}}}}}|}}</li>
  <th>Name</th> 
      <li>{{#if: {{{Spice1|}}}|{{Spice|{{{Spice1}}}}}|}}</li>
  <th>Materials</th>
      <li>{{#if: {{{liq1|}}}|{{Liquid|{{{liq1}}}}}|}}</li>
  <th style="width:30%;">Effect</th>
      <li>{{#if: {{{liq2|}}}|{{Liquid|{{{liq2}}}}}|}}</li>
  <th style="width:70%; border-radius:0 0.6em 0 0;">Description</th>
    </ul>
</tr>
   </td>
|<tr style="{{#switch: {{{big}}}
   <td>{{{effect}}}</td>
  |orange=background-color: #ff993370;
  |green=background-color: #34cb3470;
  |purple=background-color: #e066ff70;
  |yellow=background-color: #e6e60070;}}">
   <th style="{{#if: {{{end|}}}|border-radius:0 0 0 0.6em;|}}">[[File:{{{icon}}}.png|{{#if: {{{big|}}}|64px|48px}}]]</th>
   <th class="name">{{{name}}}</th>
   <td style="font-size:15px; line-height:0%; white-space:nowrap; padding:0 5px 0 0;">
  <ul style="list-style-type:none; line-height:0;>
  <li>{{#if: {{{mat1|}}}|{{CraftReq|{{{mat1}}}}}|}}</li>
  <li>{{#if: {{{mat2|}}}|{{CraftReq|{{{mat2}}}}}|}}</li>
  <li>{{#if: {{{mat3|}}}|{{CraftReq|{{{mat3}}}}}|}}</li>
  <li>{{#if: {{{mat4|}}}|{{CraftReq|{{{mat4}}}}}|}}</li>
  <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 style="padding:0 5px 0 0;"> {{{effect}}} </td>
   <td style="padding:0 5px 0 0; {{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{desc}}}</td>
   </tr>
   </tr>
}}
</includeonly><noinclude>
</includeonly>
 
<noinclude>
<pre>
<pre>
How to use
How to use
Line 44: Line 23:
|icon=OrangeBubble1      <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|icon=OrangeBubble1      <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|name=example name
|name=example name
|effect=example effect        <--- the part of description that mentions the bonus --->
|effect=example description    <--- the bubble description --->
|desc=example description    <--- the rest of description (flavor text, etc.) --->
|liq1-4=1-4        <--- 1 for Water, 2 for Nitrogen, etc. --->
|liq1-4=1-4        <--- 1 for Water, 2 for Nitrogen, etc. --->
|mat1-4=example material
|mat1-4=example material

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