Template:AlchemyBubble/row: Difference between revisions

From IdleOn MMO Wiki
imported>Grzib
mNo edit summary
mNo edit summary
 
(73 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<tr style="{{#if: {{{orange|}}}|background-color: #ff9933;|  
<tr {{#if: {{{big|}}}|class="big"|}}>
          {{#if: {{{green|}}}|background-color: #2eb82e;|  
  <td class="icon">[[File:{{{icon}}}.png|{{#if: {{{big|}}}|64px|48px}}|link=]]</td>
          {{#if: {{{purple|}}}|background-color: #b800e6;|
  <td class="name" id="{{{name}}}">{{{name}}}</td>
          {{#if: {{{yellow|}}}|background-color: #e6e600;| }} }} }} }}">
  <td>
  <th style="{{#if: {{{end|}}}|border-radius:0 0 0 0.6em;|}}">[[File:{{{icon}}}.png|{{#if: {{{orange|}}}|64px|
    <ul style="list-style-type:none; margin: 0 5px 0 0;">
          {{#if: {{{green|}}}|64px|  
      <li>{{#if: {{{mat1|}}}|{{CraftReq|{{{mat1}}}}}{{Usedin/datarow|icon={{{icon}}}|item={{{mat1}}}|amount=Lots|type=Alchemy Bubble{{Tooltip|{{{effect}}}}}|source={{PAGENAME}}#{{{name}}}{{!}}{{{name}}}}}|}}</li>
          {{#if: {{{purple|}}}|64px|
      <li>{{#if: {{{icon1|}}}|{{Icons|{{{icon1}}}|text={{{icon1}}}}}|}}</li>
          {{#if: {{{yellow|}}}|64px|48px}} }} }} }}]]</th>
      <li>{{#if: {{{Spice1|}}}|{{Spice|{{{Spice1}}}}}|}}</li>
  <th class="name">{{{name}}}</th>
      <li>{{#if: {{{liq1|}}}|{{Liquid|{{{liq1}}}}}|}}</li>
  <td style="{{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{description}}}</td>
      <li>{{#if: {{{liq2|}}}|{{Liquid|{{{liq2}}}}}|}}</li>
</tr>
    </ul>
</includeonly>
  </td>
  <td>{{{effect}}}</td>
  </tr>
</includeonly><noinclude>
<pre>
How to use


<noinclude>
Example:
<pre>Use |color=y (where color is one of cauldron colors: orange, green, purple, yellow) to determine row color for big bubbles.
Use |end=y if the row is the last of the table.


Example:
{{AlchemyBubble/row
{{AlchemyBubble/row
|orange=y    <!-- This results in an orange row for big bubble
|icon=OrangeBubble1      <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|icon=example
|name=example name
|name=example
|effect=example description     <--- the bubble description --->
|description=example
|liq1-4=1-4        <--- 1 for Water, 2 for Nitrogen, etc. --->
|end=y        <!-- This rounds the corners of the last row
|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 --->
</pre>
</pre>
[[Category:Table templates]]
</noinclude>
</noinclude>

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