Difference between revisions of "Template:SpeciesInfobox"

From Cassette Beasts
(Move sticker next to the title section of the infobox to look more stylish)
 
(30 intermediate revisions by 2 users not shown)
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 style="float: right; width: 55px; height: 55px; display: flex; align-items: center; justify-content: center;">[[File:Sticker {{#invoke:Database|get_species|{{{id}}}|name}}.png|55x55px]]</div>
<div class="infobox-subtitle">{{{description|an unknown species}}}</div>
+
<div class="infobox-title" style="padding-left: 55px; padding-right: 55px;">{{#invoke:Database|get_species|{{{id}}}|name}} #{{#invoke:Database|get_species|{{{id}}}|index}}</div>
 +
<div class="infobox-subtitle" style="padding-left: 55px; padding-right: 55px;">"{{#invoke:Database|get_species|{{{id}}}|trimmed_description}}"</div>
 
</div>
 
</div>
 
<div class="infobox-body">
 
<div class="infobox-body">
<div class="infobox-image"><center>[[File:{{{image|unknown.png}}}|300px]]</center></div>
+
<div class="infobox-image"><center>[[File:{{#invoke:Database|get_species|{{{id}}}|name}}.png|300px]]</center></div>
<table>
+
<div class="infobox-data"><table><tr><th>Type</th><td>{{TypeButton|{{#invoke:Database|get_species|{{{id}}}|elemental_type}}}}</td></tr>
<tr><th>Type</th><td>{{{type|No Type}}}</td></tr>
+
<tr><th>Remaster&nbsp;From</th><td>{{#invoke:Database|get_species|{{{id}}}|evolves_from|foreach=SpeciesLink|subscript=unevolved_form|if_empty=None|format=[[%s]]|delim=,}}</td></tr>
{{#if:{{{evolves_from|}}}|<tr><td>Remastered From</td><td>{{{evolves_from}}}</td></tr>}}
+
<tr><th>Remaster&nbsp;To</th><td>{{#invoke:Database|get_species|{{{id}}}|evolves_to|foreach=SpeciesLink|subscript=evolved_form|if_empty=None|format=[[%s]]|delim=,}}</td></tr>
{{#if:{{{evolves_to_0|}}}|<tr><td>Remasters To</td><td>
+
</table></div></div></div><noinclude>
{{{evolves_to_0|}}} {{{evolves_to_1|}}} {{{evolves_to_2|}}} {{{evolves_to_3|}}} {{{evolves_to_4|}}}</td></tr>}}
+
{{-}}
</table>
+
== Examples ==
</div></div>
+
{{SpeciesInfobox|id=Salamagus}}
 +
{{SpeciesInfobox|id=Galagor}}
 +
{{SpeciesInfobox|id=Spirouette}}
 +
{{SpeciesInfobox|id=Coaldron}}
 +
{{SpeciesInfobox|id=Hedgeherne}}
 +
{{SpeciesInfobox|id=Flapwoods}}
 +
{{SpeciesInfobox|id=Squirey}}
 +
</noinclude>

Latest revision as of 17:03, 13 May 2023

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


Examples

Sticker Salamagus.png
Salamagus #059
"triangle-headed lizard"
Salamagus.png
Type
Remaster FromNone
Remaster ToAdeptile.pngAdeptile, Pyromeleon.pngPyromeleon
Sticker Galagor.png
Galagor #079
"floating space bug with a cape"
Galagor.png
Type
Remaster FromStardigrade.pngStardigrade
Remaster ToNone
Sticker Spirouette.png
Spirouette #087
"dancing sea creature with a shell head"
Spirouette.png
Type
Remaster FromNone
Remaster ToRegensea.pngRegensea
Sticker Coaldron.png
Coaldron #077
"tall ceramic figure with a cauldron body"
Coaldron.png
Type
Remaster FromTerracooka.pngTerracooka
Remaster ToNone
Sticker Hedgeherne.png
Hedgeherne #075
"leaf-covered creature holding a flaming horn"
Hedgeherne.png
Type
Remaster FromHuntorch.pngHuntorch
Remaster ToNone
Sticker Flapwoods.png
Flapwoods #056
"hovering alien with round eyes and floating arms"
Flapwoods.png
Type
Remaster FromBraxsuit.pngBraxsuit
Remaster ToNone
Sticker Squirey.png
Squirey #034
"pangolin with a spear"
Squirey.png
Type
Remaster FromNone
Remaster ToPalangolin.pngPalangolin, Manispear.pngManispear