Template:Test: Difference between revisions

From IdleOn MMO Wiki
imported>Grzib
mNo edit summary
imported>Bluejello
No edit summary
Line 1: Line 1:
{{#if: {{{head|}}}
  <includeonly>|-
|<tr style="{{#switch: {{{head}}}
  {{!}}align="center"{{!}}[[File:{{{1}}}.png|50px]]
  |orange=background-color: #ff9933;
{{!}}align="center"{{!}}{{{1}}}
  |green=background-color: #34cb34;
{{!}}align="center"{{!}}{{{2}}}
  |purple=background-color: #e066ff;
{{!}}align="center"{{!}}{{{3}}}
  |yellow=background-color: #e6e600;}}">
{{!}}align="center"{{!}}{{{4}}}
  <th style="border-radius:0.6em 0 0 0; padding:15px 0 15px 0;">Icon</th>
{{!}}align="center"{{!}}{{#Switch: {{{5}}}|None=|#Default={{{5}}}}}
  <th>Name</th> 
{{!}}align="center"{{!}}{{#Switch: {{{6}}}|None=|#Default={{{6}}}}}</includeonly><noinclude>
  <th>Materials</th>
<pre>
  <th style="width:30%;">Effect</th>
Usage:
  <th style="width:70%; border-radius:0 0.6em 0 0;">Description</th>
{{Gemshop/row|<Name>|<Description>|<Gem Cost>|<Price>|<Optional Maximum Amount, otherwise enter None>|<Optional Max Purchases, otherwise enter None>}}
  </tr>
</pre>
|<tr style="{{#switch: {{{big}}}
[[category:Table templates]]
  |orange=background-color: #ff993370;
</noinclude>
  |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;">
  <ul style="list-style-type:none; line-height:0; margin:0 5px 0 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 5px;"> {{{effect}}} </td>
  <td style=" padding: 0 5px 0 5px; {{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{desc}}}</td>
  </tr>
}}

Revision as of 16:51, 9 April 2021

Usage:
{{Gemshop/row|<Name>|<Description>|<Gem Cost>|<Price>|<Optional Maximum Amount, otherwise enter None>|<Optional Max Purchases, otherwise enter None>}}