Template:AlchemyBubble/row: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Grzib
No edit summary
Line 1: Line 1:
<includeonly><tr style="{{#if: {{{orange|}}}|background-color: #ff993370;|  
<includeonly>
          {{#if: {{{green|}}}|background-color: #34cb3470;|  
{{#if: {{{head|}}}|<tr style="{{#switch: {{{head}}}
          {{#if: {{{purple|}}}|background-color: #e066ff70;|  
  |orange=background-color: #ff9933;
          {{#if: {{{yellow|}}}|background-color: #e6e60070;|  }} }} }} }}">
  |green=background-color: #34cb34;
   <th style="{{#if: {{{end|}}}|border-radius:0 0 0 0.6em;|}}">[[File:{{{icon}}}.png|
  |purple=background-color: #e066ff;
          {{#if: {{{orange|}}}|64px|
  |yellow=background-color: #e6e600;}}">
          {{#if: {{{green|}}}|64px|
  <th style="border-radius:0.6em 0 0 0; padding:15px 0 15px 0;">Icon</th>
          {{#if: {{{purple|}}}|64px|
  <th>Name</th>
          {{#if: {{{yellow|}}}|64px|48px}} }} }} }}]]</th>
  <th style="width:100%;">Description</th>
  <th style="border-radius:0 0.6em 0 0;">Materials</th>
</tr>
|<tr style="{{#switch: {{{big}}}
  |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>
   <th class="name">{{{name}}}</th>
   <td>{{{description}}}</td>
   <td>{{{description}}}</td>
   <td style="{{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{materials}}}</td>
   <td style="{{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{materials}}}</td>
</tr></includeonly><noinclude>
</tr>
<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.
</includeonly>
 
<noinclude>
<pre>
How to use


Example:
Example:
{{AlchemyBubble/row
 
|orange=y    <!-- This results in an orange row for big bubble
{{AlchemyBubble
|icon=example
|icon=OrangeBubble1      <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|name=example
|name=example name
|description=example
|description=example description
|end=y        <!-- This rounds the corners of the last row
|materials=example materials          <--- might be a template later --->
}}
}}
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]]
[[Category:Table templates]]
</noinclude>
</noinclude>

Revision as of 20:29, 13 December 2020


How to use

Example:

{{AlchemyBubble
|icon=OrangeBubble1       <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|name=example name
|description=example description
|materials=example materials          <--- might be a template later --->
}}

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