Difference between revisions of "Template:OverworldMonstersTable"

From Cassette Beasts
(Created template)
 
(Ensure rows are the same size by placing sprites in a fixed-size box)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table class="wikitable">
+
<table class="wikitable sortable">
 
<tr>
 
<tr>
     <th colspan=3>Species</th>
+
    <th {{#ifeq: {{{day_and_night|}}}|yes|rowspan=2}}>Sprite</th>
     <th>Type</th>
+
     <th colspan=3 {{#ifeq: {{{day_and_night|}}}|yes|rowspan=2}}>Species</th>
     <th>Rate</th>
+
     <th {{#ifeq: {{{day_and_night|}}}|yes|rowspan=2}}>Type</th>
 +
     <th {{#ifeq: {{{day_and_night|}}}|yes|colspan=2}}>Rate</th>
 
</tr>
 
</tr>
 +
{{#ifeq: {{{day_and_night|}}}|yes|<tr>
 +
    <th>Day</th>
 +
    <th>Night</th>
 +
</tr>}}
 
<tr>
 
<tr>
     <td>[[File:{{#invoke:Database|get_species|{{{monster_1}}}|name}}.png|42x42px]]</td>
+
     <td align="center">[[File:{{#invoke:Database|get_species|{{{monster_1_overworld}}}|name}} - Overworld.png]]</td>
 +
    <td align="center">{{Box|[[File:{{#invoke:Database|get_species|{{{monster_1}}}|name}}.png|42x42px]]|width=42px|height=42px}}</td>
 
     <td>{{#invoke:Database|get_link|species|{{{monster_1}}}}}</td>
 
     <td>{{#invoke:Database|get_link|species|{{{monster_1}}}}}</td>
 
     <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_1}}}|index}} | {{{index}}} }}</td>
 
     <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_1}}}|index}} | {{{index}}} }}</td>
 
     <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_1}}}|elemental_type}}}}</td>
 
     <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_1}}}|elemental_type}}}}</td>
     <td>{{{monster_1_rate}}} %</td>
+
     <td align="center">{{#ifeq: {{{monster_1_rate_day}}}|0.0|-|{{{monster_1_rate_day}}} %}}</td>
 +
    {{#ifeq: {{{day_and_night|}}}|yes|<td align="center">{{#ifeq: {{{monster_1_rate_night}}}|0.0|-|{{{monster_1_rate_night}}} %}}</td>}}
 
</tr>
 
</tr>
 
{{#if: {{{monster_2|}}}|
 
{{#if: {{{monster_2|}}}|
 
<tr>
 
<tr>
     <td>[[File:{{#invoke:Database|get_species|{{{monster_2}}}|name}}.png|42x42px]]</td>
+
     <td align="center">[[File:{{#invoke:Database|get_species|{{{monster_2_overworld}}}|name}} - Overworld.png]]</td>
 +
    <td align="center">{{Box|[[File:{{#invoke:Database|get_species|{{{monster_2}}}|name}}.png|42x42px]]|width=42px|height=42px}}</td>
 
     <td>{{#invoke:Database|get_link|species|{{{monster_2}}}}}</td>
 
     <td>{{#invoke:Database|get_link|species|{{{monster_2}}}}}</td>
 
     <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_2}}}|index}} | {{{index}}} }}</td>
 
     <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_2}}}|index}} | {{{index}}} }}</td>
 
     <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_2}}}|elemental_type}}}}</td>
 
     <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_2}}}|elemental_type}}}}</td>
     <td>{{{monster_2_rate}}} %</td>
+
     <td align="center">{{#ifeq: {{{monster_2_rate_day}}}|0.0|-|{{{monster_2_rate_day}}} %}}</td>
 +
    {{#ifeq: {{{day_and_night|}}}|yes|<td align="center">{{#ifeq: {{{monster_2_rate_night}}}|0.0|-|{{{monster_2_rate_night}}} %}}</td>}}
 
</tr>
 
</tr>
 
}}
 
}}
 
{{#if: {{{monster_3|}}}|
 
{{#if: {{{monster_3|}}}|
 
<tr>
 
<tr>
     <td>[[File:{{#invoke:Database|get_species|{{{monster_3}}}|name}}.png|42x42px]]</td>
+
     <td align="center">[[File:{{#invoke:Database|get_species|{{{monster_3_overworld}}}|name}} - Overworld.png]]</td>
 +
    <td align="center">{{Box|[[File:{{#invoke:Database|get_species|{{{monster_3}}}|name}}.png|42x42px]]|width=42px|height=42px}}</td>
 
     <td>{{#invoke:Database|get_link|species|{{{monster_3}}}}}</td>
 
     <td>{{#invoke:Database|get_link|species|{{{monster_3}}}}}</td>
 
     <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_3}}}|index}} | {{{index}}} }}</td>
 
     <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_3}}}|index}} | {{{index}}} }}</td>
 
     <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_3}}}|elemental_type}}}}</td>
 
     <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_3}}}|elemental_type}}}}</td>
     <td>{{{monster_3_rate}}} %</td>
+
     <td align="center">{{#ifeq: {{{monster_3_rate_day}}}|0.0|-|{{{monster_3_rate_day}}} %}}</td>
 +
    {{#ifeq: {{{day_and_night|}}}|yes|<td align="center">{{#ifeq: {{{monster_3_rate_night}}}|0.0|-|{{{monster_3_rate_night}}} %}}</td>}}
 +
</tr>
 +
}}
 +
{{#if: {{{monster_4|}}}|
 +
<tr>
 +
    <td align="center">[[File:{{#invoke:Database|get_species|{{{monster_4_overworld}}}|name}} - Overworld.png]]</td>
 +
    <td align="center">{{Box|[[File:{{#invoke:Database|get_species|{{{monster_4}}}|name}}.png|42x42px]]|width=42px|height=42px}}</td>
 +
    <td>{{#invoke:Database|get_link|species|{{{monster_4}}}}}</td>
 +
    <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_4}}}|index}} | {{{index}}} }}</td>
 +
    <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_4}}}|elemental_type}}}}</td>
 +
    <td align="center">{{#ifeq: {{{monster_4_rate_day}}}|0.0|-|{{{monster_4_rate_day}}} %}}</td>
 +
    {{#ifeq: {{{day_and_night|}}}|yes|<td align="center">{{#ifeq: {{{monster_4_rate_night}}}|0.0|-|{{{monster_4_rate_night}}} %}}</td>}}
 +
</tr>
 +
}}
 +
{{#if: {{{monster_5|}}}|
 +
<tr>
 +
    <td align="center">[[File:{{#invoke:Database|get_species|{{{monster_5_overworld}}}|name}} - Overworld.png]]</td>
 +
    <td align="center">{{Box|[[File:{{#invoke:Database|get_species|{{{monster_5}}}|name}}.png|42x42px]]|width=42px|height=42px}}</td>
 +
    <td>{{#invoke:Database|get_link|species|{{{monster_5}}}}}</td>
 +
    <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_5}}}|index}} | {{{index}}} }}</td>
 +
    <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_5}}}|elemental_type}}}}</td>
 +
    <td align="center">{{#ifeq: {{{monster_5_rate_day}}}|0.0|-|{{{monster_5_rate_day}}} %}}</td>
 +
    {{#ifeq: {{{day_and_night|}}}|yes|<td align="center">{{#ifeq: {{{monster_5_rate_night}}}|0.0|-|{{{monster_5_rate_night}}} %}}</td>}}
 +
</tr>
 +
}}
 +
{{#if: {{{monster_6|}}}|
 +
<tr>
 +
    <td align="center">[[File:{{#invoke:Database|get_species|{{{monster_6_overworld}}}|name}} - Overworld.png]]</td>
 +
    <td align="center">{{Box|[[File:{{#invoke:Database|get_species|{{{monster_6}}}|name}}.png|42x42px]]|width=42px|height=42px}}</td>
 +
    <td>{{#invoke:Database|get_link|species|{{{monster_6}}}}}</td>
 +
    <td>#{{#ifeq: {{{index|}}} | | {{#invoke:Database|get_species|{{{monster_6}}}|index}} | {{{index}}} }}</td>
 +
    <td>{{TypeButton|{{#invoke:Database|get_species|{{{monster_6}}}|elemental_type}}}}</td>
 +
    <td align="center">{{#ifeq: {{{monster_6_rate_day}}}|0.0|-|{{{monster_6_rate_day}}} %}}</td>
 +
    {{#ifeq: {{{day_and_night|}}}|yes|<td align="center">{{#ifeq: {{{monster_6_rate_night}}}|0.0|-|{{{monster_6_rate_night}}} %}}</td>}}
 
</tr>
 
</tr>
 
}}
 
}}
Line 33: Line 77:
 
== Examples ==
 
== Examples ==
 
{{OverworldMonstersTable
 
{{OverworldMonstersTable
 +
| day_and_night = yes
 
| monster_1 = Traffikrab
 
| monster_1 = Traffikrab
| monster_1_rate = 100
+
| monster_1_overworld = Traffikrab
 +
| monster_1_rate_day = 100
 +
| monster_1_rate_night = 100
 +
}}
 +
{{OverworldMonstersTable
 +
| day_and_night = yes
 +
| monster_1 = Traffikrab
 +
| monster_1_overworld = Traffikrab
 +
| monster_1_rate_day = 11
 +
| monster_1_rate_night = 11
 +
| monster_2 = Springheel
 +
| monster_2_overworld = Springheel
 +
| monster_2_rate_day = 12
 +
| monster_2_rate_night = 12
 +
| monster_3 = Dandylion
 +
| monster_3_overworld = Traffikrab
 +
| monster_3_rate_day = 13
 +
| monster_3_rate_night = 13
 +
| monster_4 = Nevermort
 +
| monster_4_overworld = Nevermort
 +
| monster_4_rate_day = 23.1
 +
| monster_4_rate_night = 23.1
 +
| monster_5 = Sanzatime
 +
| monster_5_overworld = Sanzatime
 +
| monster_5_rate_day = 23.1
 +
| monster_5_rate_night = 0.0
 +
| monster_6 = Skelevangelist
 +
| monster_6_overworld = Pawndead
 +
| monster_6_rate_day = 0.0
 +
| monster_6_rate_night = 14.3
 
}}
 
}}
 
{{OverworldMonstersTable
 
{{OverworldMonstersTable
 
| monster_1 = Traffikrab
 
| monster_1 = Traffikrab
| monster_1_rate = 11
+
| monster_1_overworld = Traffikrab
 +
| monster_1_rate_day = 0.0
 +
| monster_1_rate_night = 0.0
 
| monster_2 = Springheel
 
| monster_2 = Springheel
| monster_2_rate = 12
+
| monster_2_overworld = Springheel
 +
| monster_2_rate_day = 0.0
 +
| monster_2_rate_night = 0.0
 
| monster_3 = Dandylion
 
| monster_3 = Dandylion
| monster_3_rate = 13
+
| monster_3_overworld = Traffikrab
 +
| monster_3_rate_day = 0.0
 +
| monster_3_rate_night = 0.0
 +
| monster_4 = Nevermort
 +
| monster_4_overworld = Nevermort
 +
| monster_4_rate_day = 0.0
 +
| monster_4_rate_night = 0.0
 +
| monster_5 = Sanzatime
 +
| monster_5_overworld = Sanzatime
 +
| monster_5_rate_day = 0.0
 +
| monster_5_rate_night = 0.0
 +
| monster_6 = Skelevangelist
 +
| monster_6_overworld = Pawndead
 +
| monster_6_rate_day = 0.0
 +
| monster_6_rate_night = 0.0
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Latest revision as of 04:32, 17 May 2023

Sprite Species Type Rate
File:Unknown - Overworld.png
Unknown.png
Unknown #??? {{{monster_1_rate_day}}} %

Examples

Sprite Species Type Rate
Day Night
Traffikrab - Overworld.png
Traffikrab.png
Traffikrab #011 100 % 100 %
Sprite Species Type Rate
Day Night
Traffikrab - Overworld.png
Traffikrab.png
Traffikrab #011 11 % 11 %
Springheel - Overworld.png
Springheel.png
Springheel #001 12 % 12 %
Traffikrab - Overworld.png
Dandylion.png
Dandylion #026 13 % 13 %
Nevermort - Overworld.png
Nevermort.png
Nevermort #047 23.1 % 23.1 %
Sanzatime - Overworld.png
Sanzatime.png
Sanzatime #057 23.1 % -
Pawndead - Overworld.png
Skelevangelist.png
Skelevangelist #093 - 14.3 %
Sprite Species Type Rate
Traffikrab - Overworld.png
Traffikrab.png
Traffikrab #011 -
Springheel - Overworld.png
Springheel.png
Springheel #001 -
Traffikrab - Overworld.png
Dandylion.png
Dandylion #026 -
Nevermort - Overworld.png
Nevermort.png
Nevermort #047 -
Sanzatime - Overworld.png
Sanzatime.png
Sanzatime #057 -
Pawndead - Overworld.png
Skelevangelist.png
Skelevangelist #093 -