Template:Test: Difference between revisions

From IdleOn MMO Wiki
imported>Grzib
mNo edit summary
No edit summary
 
(53 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<noinclude><!--
{{#if: {{{big|}}}
|{{#if: {{{head|}}}|<tr style="{{#switch: {{{head}}}
  |orange=background-color: #ff9933;
  |green=background-color: #34cb34;
  |purple=background-color: #e066ff;
  |yellow=background-color: #e6e600;}}">
  <th style="border-radius:0.6em 0 0 0; padding:15px 0 15px 0;">Icon</th>
  <th>Name</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>
  <td>{{{description}}}</td>
  <td style="{{#if: {{{end|}}}|border-radius:0 0 0.6em 0;|}}">{{{materials}}}</td>
</tr>
}}
|}}
</includeonly>


<noinclude>
### Cargo Declare ###
<pre>
-->{{#cargo_declare:_table=Tests
How to use
  |Name=String
  |Source=Text
}}</noinclude><!--


Example:
### Cargo Store ###
--><includeonly>{{#cargo_store:_table=Tests
  |Name={{{1|{{{name|{{PAGENAME}}}}}}}}
  |Source={{#invoke:SourcesQuery|Main|item={{{1|{{{name|{{PAGENAME}}}}}}}}}}
}}<!--


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


Other parameters:
{{#if:{{{1|{{{name|}}}}}}|<dt>Name</dt><dd>{{{1|{{{name|}}}}}}</dd>}}


|big=orange            <--- or green / purple / yellow - insert for big (active) bubbles --->
<dt>Source</dt><dd style="display:inline;">{{#invoke:LuaVar|var|name=Sources}}</dd>
|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 --->
</div>
</pre>
</includeonly><noinclude><pre>This is a test!</pre>
</noinclude>
</noinclude>

Latest revision as of 15:31, 29 December 2022

This template defines the table "Tests". This table has not been created yet.

This is a test!