Template:Test: Difference between revisions

From IdleOn MMO Wiki
imported>Grzib
mNo edit summary
imported>Grzib
mNo edit summary
Line 1: Line 1:
<includeonly>
{{#if: {{{head|}}}
{{#if: {{{big|}}}
|<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 18: Line 17:
   <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>{{{desc}}}</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;|}}">
  {{#if:{{{mat1|}}}
  |{{CraftReq|{{{mat1}}}}}|}}
  {{#if:{{{mat1|}}}
  |{{CraftReq|{{{mat1}}}}}|}}
  {{#if:{{{mat1|}}}
  |{{CraftReq|{{{mat1}}}}}|}}</td>
  </tr>
  </tr>
}}
}}
|}}
</includeonly>
<noinclude>
<pre>
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 --->
</pre>
</noinclude>

Revision as of 10:27, 14 December 2020

[[File:{{{icon}}}.png|48px]] {{{name}}} {{{desc}}}