v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:CreatureInfo v0.40"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (fix again)
(consistency with Template:VerminInfo: wrap char with nowiki tag, make cell background white (for button) and only symbol dependent on color parameter)
(28 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{infostart|
+
{{infostart|{{{name}}}}}
{{{name}}}}}
+
{{infocell|style=color: white; background: black; text-align:center; vertical-align:middle;|1=
{{infocell|{{char|{{{symbol|?}}}}}|style=color: {{fgcolor|{{{color|7:0:1}}}}}; background: black; font-size:x-large; font-weight: bold; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console',  'Lucida Sans Typewriter', monospace; text-align:center; vertical-align:center}}
+
{{#if:{{{image|}}}|<div class="mw-collapsible" id="mw-customcollapsible-classicimage" style="height: 128px; line-height: 128px; image-rendering: pixelated; -webkit-image-rendering: pixelated; -moz-image-rendering: pixelated;">[[File:{{{image}}}|200x128px|class=df-sprite df-sprite-infobox]]</div>}}
 +
<div class="{{#if:{{{image|}}}|mw-collapsible mw-collapsed}}" id="mw-customcollapsible-classicimage" style="color: {{fgcolor|{{{color|7:0:1}}}}}; font-size:xx-large; font-weight: bold; font-family: 'Courier New', 'Quicktype Mono', 'Bitstream Vera Sans Mono', 'Lucida Console',  'Lucida Sans Typewriter', monospace; {{#if:{{{image|}}}|height: 128px; line-height: 128px;}}">{{#tag:nowiki|{{char|{{{symbol|?}}}}}}}</div>
 +
{{#if:{{{image|}}}|<span class="mw-customtoggle-classicimage mw-ui-button mw-ui-progressive" style="float:right; padding:0px; user-select: none;">Toggle</span>}}}}
 
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}}
 
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}}
 
{{infoheader|Biome}}
 
{{infoheader|Biome}}
Line 19: Line 21:
 
{{#if:{{{tame_attribs|}}}|{{infocell|{{span-hide}}{{{tame_attribs}}}{{end-span}}}}|{{!-}}}}
 
{{#if:{{{tame_attribs|}}}|{{infocell|{{span-hide}}{{{tame_attribs}}}{{end-span}}}}|{{!-}}}}
 
{{infocell|{{#ifexpr:{{#expr:{{{train_hunt|0}}}+{{{train_war|0}}}>0}}
 
{{infocell|{{#ifexpr:{{#expr:{{{train_hunt|0}}}+{{{train_war|0}}}>0}}
|[[Animal trainer|Trainable]]:&nbsp; {{#ifexpr:{{{train_hunt|0}}}>0|Hunting {{Category|Hunting Animals}}|}} &nbsp; {{#ifexpr:{{{train_war|0}}}>0|War {{Category|War Animals}}|}}|Not [[Animal trainer|trainable]]}}}}|{{infoheader|bg=#fbb|Cannot be tamed}}}}{{
+
|[[Animal trainer|Trainable]]:&nbsp; {{#ifexpr:{{{train_hunt|0}}}>0|Hunting {{Category|Hunting animals}}|}} &nbsp; {{#ifexpr:{{{train_war|0}}}>0|War {{Category|War animals}}|}}|Not hunting/war [[Animal trainer|trainable]]}}}}|{{infoheader|bg=#fbb|Cannot be tamed}}}}{{
 
#ifexpr:{{#expr:{{{size0|0}}}+{{{size1|0}}}+{{{size2|0}}}}}>0|&nbsp;
 
#ifexpr:{{#expr:{{{size0|0}}}+{{{size1|0}}}+{{{size2|0}}}}}>0|&nbsp;
{{infoheader|Size}}
+
{{infoheader|[[Size]]}}
{{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|'''Child:'''|{{formatnum:{{{size0}}} cm<sup>3</sup> }}}}
+
{{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|'''Birth:'''|{{formatnum:{{{size0}}} cm<sup>3</sup> }}}}
{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Adolescent:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}
+
{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Mid:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}
|{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Child:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}}}
+
|{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Birth:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}}}
{{#ifexpr:{{{size2|0}}}>0|{{inforow|'''Adult:'''|{{formatnum:{{{size2}}} cm<sup>3</sup> }}}}}}}}||}}
+
{{#ifexpr:{{{size2|0}}}>0|{{inforow|'''Max:'''|{{formatnum:{{{size2}}} cm<sup>3</sup> }}}}}}}}||}}
 
{{#if:{{{eggs|}}}|{{infoheader|[[Food|Food products]]}}
 
{{#if:{{{eggs|}}}|{{infoheader|[[Food|Food products]]}}
 
{{#if:{{{eggs|}}}|{{inforow|[[Egg]]s|{{{eggs}}}}}}}}}{{
 
{{#if:{{{eggs|}}}|{{inforow|[[Egg]]s|{{{eggs}}}}}}}}}{{
#if:{{{childage|}}}{{{adultage|}}}{{{maxage|}}}|&nbsp;
+
#if:{{{childage|}}}{{{adultage|}}}{{{maxage|}}}|<nowiki/>
 
{{infoheader|Age}}
 
{{infoheader|Age}}
 
{{#if:{{{childage|}}}|{{inforow|Child at:|{{{childage}}}}}}}
 
{{#if:{{{childage|}}}|{{inforow|Child at:|{{{childage}}}}}}}
Line 38: Line 40:
 
|nobutcher=Cannot be butchered
 
|nobutcher=Cannot be butchered
 
|butcher |#default=[[Meat industry|Butchering returns]]}}}}
 
|butcher |#default=[[Meat industry|Butchering returns]]}}}}
{{#if:{{{valm|}}}|([[Multiply value|Value multiplier]] x{{{valm|}}})}}
+
{{#if:{{{valm|}}}|([[Multiply value|Value multiplier]] ×{{{valm|}}})}}
 
{{#ifeq:{{{death|}}}|item|{{infocell|{{{item|}}}}}|{{!-}}}}
 
{{#ifeq:{{{death|}}}|item|{{infocell|{{{item|}}}}}|{{!-}}}}
 
{{#switch:{{{death|}}}
 
{{#switch:{{{death|}}}
Line 60: Line 62:
 
{{#if:{{{bone|}}}|{{inforow|[[Bones]]|{{{bone|}}}}}|{{!-}}}}
 
{{#if:{{{bone|}}}|{{inforow|[[Bones]]|{{{bone|}}}}}|{{!-}}}}
 
{{#if:{{{skull|}}}|{{inforow|[[Skull]]|{{{skull|}}}}}|{{!-}}}}
 
{{#if:{{{skull|}}}|{{inforow|[[Skull]]|{{{skull|}}}}}|{{!-}}}}
{{#if:{{{ivory|}}}|{{inforow|[[Ivory]]|{{{ivory|}}}}}|{{!-}}}}
+
{{#if:{{{ivory|}}}|{{inforow|[[Ivory]]|{{{ivory|}}}{{Category|Ivory}}}}|{{!-}}}}
{{#if:{{{tooth|}}}|{{inforow|[[Teeth]]|{{{tooth|}}}}}|{{!-}}}}
+
{{#if:{{{tooth|}}}|{{inforow|[[Teeth]]|{{{tooth|}}}{{Category|Tooth}}}}|{{!-}}}}
{{#if:{{{hoof|}}}|{{inforow|[[Hooves]]|{{{hoof|}}}}}|{{!-}}}}
+
{{#if:{{{hoof|}}}|{{inforow|[[Hooves]]|{{{hoof|}}}{{Category|Hoof}}}}|{{!-}}}}
{{#if:{{{horn|}}}|{{inforow|[[Horns]]|{{{horn|}}}}}|{{!-}}}}
+
{{#if:{{{horn|}}}|{{inforow|[[Horns]]|{{{horn|}}}{{Category|Horn}}}}|{{!-}}}}
 
{{#if:{{{shell|}}}|{{inforow|[[Shell]]|{{{shell|}}}}}|{{!-}}}}
 
{{#if:{{{shell|}}}|{{inforow|[[Shell]]|{{{shell|}}}}}|{{!-}}}}
{{#if:{{{skin|}}}|{{inforow|[[Skin]]|{{#switch:{{{skin|}}}|hide=Raw hide|scale=Scales|chitin=Chitin|none=not skinnable|#default={{{skin|}}}}}}}|{{!-}}}}
+
{{#if:{{{skin|}}}|{{inforow|[[Skin]]|{{#switch:{{{skin|}}}|hide=Raw hide{{Category|Leather}}|scale=Scales{{Category|Scales}}|chitin=Chitin{{Category|Chitin}}|none=not skinnable|#default={{{skin|}}}{{Category|Unrecognized skin}}}}}}|{{!-}}}}
 
{{#if:{{{wool|}}}|{{inforow|[[Wool]]|{{{wool|}}}}}|{{!-}}}}
 
{{#if:{{{wool|}}}|{{inforow|[[Wool]]|{{{wool|}}}}}|{{!-}}}}
 
{{#if:{{{feather|}}}|{{inforow|[[Feather]]|{{{feather|}}}}}|{{!-}}}}
 
{{#if:{{{feather|}}}|{{inforow|[[Feather]]|{{{feather|}}}}}|{{!-}}}}
Line 72: Line 74:
 
}}
 
}}
 
{{#ifexpr:{{#if:{{{wiki|}}}|1|0}} and {{#ifeq:{{{wiki|}}}|no|0|1}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#ifeq:{{{wiki|}}}|yes|{{{name}}}|{{{wiki|}}}}}|Wikipedia article]]}}|{{!-}}}}
 
{{#ifexpr:{{#if:{{{wiki|}}}|1|0}} and {{#ifeq:{{{wiki|}}}|no|0|1}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#ifeq:{{{wiki|}}}|yes|{{{name}}}|{{{wiki|}}}}}|Wikipedia article]]}}|{{!-}}}}
{{infoend}}<noinclude>{{documentation}}</noinclude>
+
{{infoend}}<noinclude>{{documentation}}[[Category:Infobox templates]]</noinclude>

Revision as of 04:40, 13 January 2023

{{{name}}}
?
Biome

Any location

Cannot be tamed
Butchering returns

Food items

Raw materials

There is too little information about this creature.
Please contribute if you can!