Difference between revisions of "Template:SpeciesInfobox"

From Cassette Beasts
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
 
<div class="infobox-head">
 
<div class="infobox-head">
<div class="infobox-title">{{{name|Unknown}}} #{{{index|???}}}</div>
+
<div class="infobox-title">{{#invoke:Database|get_species|{{{id}}}|name}} #{{#invoke:Database|get_species|{{{id}}}|index}}</div>
<div class="infobox-subtitle">"{{{description|unknown species}}}"</div>
+
<div class="infobox-subtitle">"{{#invoke:Database|get_species|{{{id}}}|trimmed_description}}"</div>
 
</div>
 
</div>
 
<div class="infobox-body">
 
<div class="infobox-body">
<div class="infobox-image"><center>[[File:{{{name|Unknown}}}.png|300px]]</center></div>
+
<div class="infobox-image"><center>[[File:{{#invoke:Database|get_species|{{{id}}}|name}}.png|300px]]</center></div>
<div class="infobox-data"><table><tr><th>Type</th><td>[[{{{type|Typeless}}}]]</td></tr>
+
<div class="infobox-data"><table><tr><th>Type</th><td>[[{{#invoke:Database|get_species|{{{id}}}|elemental_type}}]]</td></tr>
<tr><th>Remaster&nbsp;From</th><td>{{#if:{{{evolves_from|}}}| [[{{{evolves_from}}}]] | None}}</td></tr>
+
<tr><th>Remaster&nbsp;From</th><td>{{#invoke:Database|get_species|{{{id}}}|evolves_from|if_empty=None|delim=, }}</td></tr>
<tr><th>Remaster&nbsp;To</th><td>{{#if:{{{evolves_to_0|}}}|
+
<tr><th>Remaster&nbsp;To</th><td>{{#invoke:Database|get_species|{{{id}}}|evolves_to|if_empty=None|format=[[%s]]|delim=, }}</td></tr>
[[{{{evolves_to_0|}}}]]{{#if:{{{evolves_to_1|}}}|, [[{{{evolves_to_1|}}}]]}}{{#if:{{{evolves_to_2|}}}|, [[{{{evolves_to_2|}}}]]}}{{#if:{{{evolves_to_3|}}}|, [[{{{evolves_to_3|}}}]]}}{{#if:{{{evolves_to_4|}}}|, [[{{{evolves_to_4|}}}]]}} | None}}
 
</td></tr>
 
 
</table></div></div></div>
 
</table></div></div></div>

Revision as of 20:58, 21 May 2022

Unknown #???
"unknown species"
Unknown.png
TypeTypeless
Remaster FromNone
Remaster ToNone