Template:AlchemyBubble/row: Difference between revisions

From IdleOn MMO Wiki
imported>Grzib
mNo edit summary
imported>Grzib
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{head|}}}|<tr style="{{#switch: {{{head}}}
{{#if: {{{head|}}}
|<tr style="{{#switch: {{{head}}}
   |orange=background-color: #ff9933;
   |orange=background-color: #ff9933;
   |green=background-color: #34cb34;
   |green=background-color: #34cb34;
Line 17: Line 18:
   <th style="{{#if: {{{end|}}}|border-radius:0 0 0 0.6em;|}}">[[File:{{{icon}}}.png|{{#if: {{{big|}}}|64px|48px}}]]</th>
   <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 style="font-size:15px; white-space:nowrap; ">
   <td style="{{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{materials}}}</td>
  <ul style="list-style-type:none; line-height:0; margin-left: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></ul></td>
   <td style="{{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{desc}}}</td>
  </tr>
  </tr>
}}
}}
Line 32: Line 38:
|icon=OrangeBubble1      <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|icon=OrangeBubble1      <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|name=example name
|name=example name
|description=example description
|mat1=example material 1
|materials=example materials          <--- might be a template later --->
|mat2=example material 2 
|mat3=example material 3 
|mat4=example material 4 
|desc=example description      <--- might be a template later --->
}}
}}



Revision as of 11:49, 14 December 2020


How to use

Example:

{{AlchemyBubble/row
|icon=OrangeBubble1       <--- or GreenBubble7 / PurpleBubble4 / YellowBubble10... --->
|name=example name
|mat1=example material 1
|mat2=example material 2  
|mat3=example material 3  
|mat4=example material 4  
|desc=example description      <--- 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 --->