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.31"
Jump to navigation
Jump to search
m |
m |
||
(54 intermediate revisions by 9 users not shown) | |||
Line 2: | Line 2: | ||
{{{name}}}}} | {{{name}}}}} | ||
{{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}} | {{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}} | ||
− | {{infoheader|{{ | + | {{infoheader|Biome}} |
− | {{#switch:{{{ | + | {{infocell|{{#if:{{{biome|}}}|{{{biome|}}}|Any location}}}} |
− | | | + | {{#ifexpr:{{#if:{{{pet|}}}|1|0}} or {{#if:{{{exotic|}}}|1|0}}| |
− | | | + | {{infoheader|Pet Attributes}} |
− | | | + | {{inforow|Pet value|{{formatnum:{{{petvalue|0}}}}}}} |
− | | | + | {{infocell|{{#switch:{{{train_hunt|0}}}{{{train_war|0}}}|11=Can be [[Kennel|trained]] for either hunting or for war|10=Can be [[Kennel|trained]] only for hunting|01=Can be [[Kennel|trained]] only for war|00=Cannot be [[Kennel|trained]]}}}} |
− | |# | + | {{#if:{{{exotic}}}|{{infocell|Exotic - cannot be tamed}}}}| |
− | }} | + | {{infoheader|Cannot be tamed}}}}{{ |
− | {{ | + | #ifexpr:{{#expr:{{{size0|0}}}+{{{size1|0}}}+{{{size2|0}}}}}>0| |
− | {{infoheader|{{#switch:{{{death|}}} |rot=Rotting leaves |item=Becomes after death |butcher |#default=Butchering returns}}}} | + | {{infoheader|Size}} |
− | {{#if: {{{valm|}}} | (Value multiplier | + | {{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|'''Birth:'''|{{formatnum:{{{size0}}} cm<sup>3</sup> }}}} |
+ | {{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Mid:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}} | ||
+ | |{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Birth:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}}} | ||
+ | {{#ifexpr:{{{size2|0}}}>0|{{inforow|'''Max:'''|{{formatnum:{{{size2}}} cm<sup>3</sup> }}}}}}}}||}} | ||
+ | {{#if:{{{alignment|}}}|{{infoheader|Alignment}} | ||
+ | {{infocell|{{{alignment}}}|style=text-align:center}}}}{{ | ||
+ | #if:{{{childage|}}}{{{adultage|}}}{{{maxage|}}}|<nowiki/> | ||
+ | {{infoheader|Age}} | ||
+ | {{#if:{{{childage|}}}|{{inforow|Child at:|{{{childage}}}}}}} | ||
+ | {{inforow|Adult at:|{{{adultage}}}}} | ||
+ | {{inforow|Max age:|{{{maxage}}}}}}} | ||
+ | {{infoheader|{{#switch:{{{death|}}} | ||
+ | |rot=Rotting leaves | ||
+ | |item=Becomes after death | ||
+ | |nobutcher=This creature cannot be butchered | ||
+ | |butcher |#default=[[Meat industry|Butchering returns]]}}}} | ||
+ | {{#if:{{{valm|}}}|([[Multiply value|Value multiplier]] ×{{{valm|}}})}} | ||
{{#ifeq:{{{death|}}}|item|{{infocell|{{{item|}}}}}|{{!-}}}} | {{#ifeq:{{{death|}}}|item|{{infocell|{{{item|}}}}}|{{!-}}}} | ||
− | {{# | + | {{#switch:{{{death|}}} |
− | {{#if:{{{meat|}}}|{{inforow| | + | |nobutcher |
− | {{#if:{{{fat|}}}|{{inforow| | + | |item={{!-}} |
− | {{#if:{{{brain|}}}|{{inforow| | + | |#default={{infocell|'''Food items'''}}}} |
− | {{#if:{{{heart|}}}|{{inforow| | + | {{#if:{{{meat|}}}|{{inforow|[[Meat]]|{{{meat|}}}}}|{{!-}}}} |
− | {{#if:{{{lung|}}}|{{inforow| | + | {{#if:{{{fat|}}}|{{inforow|[[Fat]]|{{{fat|}}}}}|{{!-}}}} |
− | {{#if:{{{ | + | {{#if:{{{brain|}}}|{{inforow|[[Brain]]|{{{brain|}}}}}|{{!-}}}} |
− | {{#if:{{{liver|}}}|{{inforow| | + | {{#if:{{{heart|}}}|{{inforow|[[Heart]]|{{{heart|}}}}}|{{!-}}}} |
− | {{#if:{{{kidney|}}}|{{inforow| | + | {{#if:{{{lung|}}}|{{inforow|[[Lung]]s|{{{lung|}}}}}|{{!-}}}} |
− | {{#if:{{{tripe|}}}|{{inforow| | + | {{#if:{{{intestine|}}}|{{inforow|[[Intestines]]|{{{intestine|}}}}}|{{!-}}}} |
− | {{#if:{{{sweetbread|}}}|{{inforow| | + | {{#if:{{{liver|}}}|{{inforow|[[Liver]]|{{{liver|}}}}}|{{!-}}}} |
− | {{#if:{{{ | + | {{#if:{{{kidney|}}}|{{inforow|[[Kidney]]s|{{{kidney|}}}}}|{{!-}}}} |
− | {{#if:{{{spleen|}}}|{{inforow| | + | {{#if:{{{tripe|}}}|{{inforow|[[Tripe]]|{{{tripe|}}}}}|{{!-}}}} |
− | {{# | + | {{#if:{{{sweetbread|}}}|{{inforow|[[Sweetbread]]|{{{sweetbread|}}}}}|{{!-}}}} |
− | {{#if:{{{ | + | {{#if:{{{eye|}}}|{{inforow|[[Eye]]s|{{{eye|}}}}}|{{!-}}}} |
− | {{#if:{{{ | + | {{#if:{{{spleen|}}}|{{inforow|[[Spleen]]|{{{spleen|}}}}}|{{!-}}}} |
− | {{#if:{{{ivory|}}}|{{inforow| | + | {{#switch:{{{death|}}} |
− | {{#if:{{{tooth|}}}|{{inforow| | + | |nobutcher |
− | {{#if:{{{ | + | |item={{!-}} |
− | {{#if:{{{ | + | |#default={{infocell|'''Raw materials'''}}}} |
− | {{#if:{{{skin|}}}|{{inforow| | + | {{#if:{{{bone|}}}|{{inforow|[[Bones]]|{{{bone|}}}}}|{{!-}}}} |
− | {{#ifeq:{{{contrib|}}}|no||{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|''There | + | {{#if:{{{skull|}}}|{{inforow|[[Skull]]|{{{skull|}}}}}|{{!-}}}} |
− | {{#ifeq:{{{wiki|}}}|no||{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1={{ | + | {{#if:{{{ivory|}}}|{{inforow|[[Ivory]]|{{{ivory|}}}}}|{{!-}}}} |
− | {{infoend}} | + | {{#if:{{{tooth|}}}|{{inforow|[[Teeth]]|{{{tooth|}}}}}|{{!-}}}} |
− | + | {{#if:{{{hoof|}}}|{{inforow|[[Hooves]]|{{{hoof|}}}}}|{{!-}}}} | |
− | <noinclude>{{documentation}}</noinclude> | + | {{#if:{{{horn|}}}|{{inforow|[[Horns]]|{{{horn|}}}}}|{{!-}}}} |
+ | {{#if:{{{shell|}}}|{{inforow|[[Shell]]|{{{shell|}}}}}|{{!-}}}} | ||
+ | {{#if:{{{skin|}}}|{{inforow|[[Skin]]|{{#switch:{{{skin|hide}}}|hide=Raw hide|scale=Scales|chitin=Chitin|none=not skinnable|#default='''Unknown'''}}}}|{{!-}}}} | ||
+ | {{#ifeq:{{{contrib|}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|''There is too little information about this creature.<br /> Please contribute if you can!''}}|{{!-}}}} | ||
+ | {{#ifeq:{{{wiki|}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#if:{{{wiki|}}}|{{{wiki|}}}|{{{name}}}}}|Wikipedia article]]}}|{{!-}}}} | ||
+ | {{infoend}}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:05, 27 July 2022
? | |
Biome | |
---|---|
Any location | |
Cannot be tamed | |
Butchering returns | |
Food items | |
Raw materials | |
There is too little information about this creature. | |
[[wikipedia:{{{name}}}|Wikipedia article]] |
(view - edit - history - purge) Documentation
W | |
Biome | |
---|---|
| |
Cannot be tamed | |
Butchering returns | |
Food items | |
Meat | 574-773 |
Fat | 107-236 |
Brain | 42-60 |
Heart | 21-30 |
Lungs | 84-120 |
Intestines | 127-180 |
Liver | 42-60 |
Kidneys | 42-60 |
Tripe | 42-60 |
Sweetbread | 21-30 |
Eyes | 2 |
Spleen | 21-30 |
Raw materials | |
Bones | 109-157 |
Skull | 1 |
CreatureInfo 0.31
- It is possible to display Itemcorpses (for example bronze colossus).
- It is possible to display [NOT_BUTCHERABLE] ( for example magma crab).
- Unnecessary lines are not displayed (like hooves for whales)
- Alignment (good evil savage) integrated, but not displayed if it is neutral
- Pet attributes shown if the creature can be tamed
Variables
General
- name = name of the creature
- symbol = symbol of the creature
- color = color of the symbol
- align = alignment
- good -> good alignment is displayed
- evil -> evil alignment is displayed
- savage -> savage alignment is displayed
- neutral or nothing -> alignment is ignored
- biome = list of the biomes
- pet attributes = list of pet attributes
- petv = pet value
- train -> can be trained at a kennel
- death = selects caption for "what happens after death"
- rot -> rotting leaves
- item -> turns after Death to
- item = if death=item then item description
- nobutcher -> creature can not be butchered
- butcher or nothing -> butchering returns
- valm = Value multiplier returns nothing when left out
- contrib = displays contribute message
- wiki = links to wiki or not
Butchering results
- meat
- fat
- brain
- heart
- lung
- intestine
- liver
- kidney
- tripe
- sweetbread
- eye
- spleen
- bone
- skull
- ivory
- tooth
- hoof
- horn
- shell
- skin = selects skintype (and skinnable)
- none -> not skinnable
- scale -> scale
- chitin -> chitin
- hide -> raw hide
- none -> not skinnable
Usage
{{CreatureInfo v0.31 |name=Whale |symbol=W|color=7:0:0 |biome=* Any [[ocean]] |align=neutral |meat=574-773 |fat=107-236 |eye=2 |lung=84-120 |heart=21-30 |intestine=127-180 |liver=42-60 |tripe=42-60 |sweetbread=21-30 |spleen=21-30 |kidney=42-60 |brain=42-60 |bone=109-157 |skull=1 |contrib=no }}