Шаблон:CreatureInfo: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
ArexBot (обсуждение | вклад) м Замена текста — «\{\{(L|l)\|(.*)\}\}» на «$2» |
Ilsi (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
{{infostart|{{{name}}}}} | {{infostart| | ||
{{{name}}}}} | |||
{{infoheader|Символ}} | {{infoheader|Символ}} | ||
{{infocell|{{char|{{{symbol|?}}}}}|style=color: {{fgcolor|{{{color| | {{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:{{{pref|}}}|{{infopref|{{{pref}}}}}}} | |||
{{infoheader|[[Biome|Биом]]}} | {{infoheader|[[Biome|Биом]]}} | ||
{{infocell|{{#if:{{{biome|}}}|{{{biome|}}}| | {{infocell|{{#if:{{{biome|}}}|{{{biome|}}}|Особый}}}} | ||
{{#if:{{{alignment|}}}|{{infoheader|Alignment}} | {{#ifeq:{{{vary|no}}}|no|{{!-}}| | ||
{{infocell|{{{ | {{infoheader|Variations}} | ||
|{{!-}}}} | {{infocell|{{{vary|Неизвестный}}} }} }} | ||
{{#if:{{{ | {{#ifexpr:{{#if:{{{alignment|}}}|1|0}} or {{#ifexpr:{{{bldgdest|0}}}>0|1|0}} or {{#if:{{{attribs|}}}|1|0}}| | ||
{{infocell|{{{ | {{infoheader|Attributes}} | ||
{{ | {{#if:{{{alignment|}}}|{{inforow|Alignment:|{{{alignment}}} }}|{{!-}}}} | ||
{{ | {{#ifexpr:{{{bldgdest|0}}}>0|{{infocell|[[Building destroyer]]: Level {{{bldgdest}}}{{Category|Building destroyer}}}}|{{!-}}}}}} | ||
{{# | {{#if:{{{attribs|}}}|{{infocell|{{span-hide}}{{{attribs}}}{{end-span}}}}|{{!-}}}} | ||
{{ | {{#ifexpr:{{#if:{{{pet|}}}|1|0}} or {{#if:{{{exotic|}}}|1|0}}| | ||
{{inforow|[[Meat| | {{infoheader|Tamed Attributes}} | ||
{{inforow|[[Fat| | {{inforow|Pet value|{{formatnum:{{{petvalue|0}}}}}}} | ||
|{{!-}}}} | {{#if:{{{grazer|}}}|{{inforow|[[Grazer|Травоядное]]:|{{{grazer}}} {{Category|Grazer}}}}|{{!-}}}} | ||
{{inforow|[[ | {{#if:{{{tame_attribs|}}}|{{infocell|{{span-hide}}{{{tame_attribs}}}{{end-span}}}}|{{!-}}}} | ||
{{# | {{infocell|{{#ifexpr:{{#expr:{{{train_hunt|0}}}+{{{train_war|0}}}>0}} | ||
{{#if:{{{ | |[[Animal trainer|Trainable]]: {{#ifexpr:{{{train_hunt|0}}}>0|Hunting {{Category|Hunting Animals}}|}} {{#ifexpr:{{{train_war|0}}}>0|War {{Category|War Animals}}|}}|Not hunting/war [[Animal trainer|trainable]]}}}}|{{infoheader|bg=#fbb|Cannot be tamed}}}}{{ | ||
{{#ifeq:{{{ | #ifexpr:{{#expr:{{{size0|0}}}+{{{size1|0}}}+{{{size2|0}}}}}>0| | ||
{{infoend}}<noinclude>{{documentation}}</noinclude> | {{infoheader|Size}} | ||
{{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|'''Child:'''|{{formatnum:{{{size0}}} cm<sup>3</sup> }}}} | |||
{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Adolescent:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}} | |||
|{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Child:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}}} | |||
{{#ifexpr:{{{size2|0}}}>0|{{inforow|'''Adult:'''|{{formatnum:{{{size2}}} cm<sup>3</sup> }}}}}}}}||}} | |||
{{#if:{{{eggs|}}}|{{infoheader|[[Food|Food products]]}} | |||
{{#if:{{{eggs|}}}|{{inforow|[[Egg]]s|{{{eggs}}}}}}}}}{{ | |||
#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=Cannot be butchered | |||
|butcher |#default=[[Meat industry|Butchering returns]]}}}} | |||
{{#if:{{{valm|}}}|([[Multiply value|Value multiplier]] x{{{valm|}}})}} | |||
{{#ifeq:{{{death|}}}|item|{{infocell|{{{item|}}}}}|{{!-}}}} | |||
{{#switch:{{{death|}}} | |||
|nobutcher | |||
|item={{!-}} | |||
|#default={{infocell|'''Food items'''}} | |||
{{#if:{{{meat|}}}|{{inforow|[[Meat]]|{{{meat|}}}}}|{{!-}}}} | |||
{{#if:{{{fat|}}}|{{inforow|[[Fat]]|{{{fat|}}}}}|{{!-}}}} | |||
{{#if:{{{brain|}}}|{{inforow|[[Brain]]|{{{brain|}}}}}|{{!-}}}} | |||
{{#if:{{{gizzard|}}}|{{inforow|[[Gizzard]]|{{{gizzard|}}}}}|{{!-}}}} | |||
{{#if:{{{heart|}}}|{{inforow|[[Heart]]|{{{heart|}}}}}|{{!-}}}} | |||
{{#if:{{{lung|}}}|{{inforow|[[Lung]]s|{{{lung|}}}}}|{{!-}}}} | |||
{{#if:{{{intestine|}}}|{{inforow|[[Intestines]]|{{{intestine|}}}}}|{{!-}}}} | |||
{{#if:{{{liver|}}}|{{inforow|[[Liver]]|{{{liver|}}}}}|{{!-}}}} | |||
{{#if:{{{kidney|}}}|{{inforow|[[Kidney]]s|{{{kidney|}}}}}|{{!-}}}} | |||
{{#if:{{{tripe|}}}|{{inforow|[[Tripe]]|{{{tripe|}}}}}|{{!-}}}} | |||
{{#if:{{{sweetbread|}}}|{{inforow|[[Sweetbread]]|{{{sweetbread|}}}}}|{{!-}}}} | |||
{{#if:{{{eye|}}}|{{inforow|[[Eye]]s|{{{eye|}}}}}|{{!-}}}} | |||
{{#if:{{{spleen|}}}|{{inforow|[[Spleen]]|{{{spleen|}}}}}|{{!-}}}} | |||
{{infocell|'''Raw materials'''}} | |||
{{#if:{{{bone|}}}|{{inforow|[[Bones]]|{{{bone|}}}}}|{{!-}}}} | |||
{{#if:{{{skull|}}}|{{inforow|[[Skull]]|{{{skull|}}}}}|{{!-}}}} | |||
{{#if:{{{ivory|}}}|{{inforow|[[Ivory]]|{{{ivory|}}}}}|{{!-}}}} | |||
{{#if:{{{tooth|}}}|{{inforow|[[Teeth]]|{{{tooth|}}}}}|{{!-}}}} | |||
{{#if:{{{hoof|}}}|{{inforow|[[Hooves]]|{{{hoof|}}}}}|{{!-}}}} | |||
{{#if:{{{horn|}}}|{{inforow|[[Horns]]|{{{horn|}}}}}|{{!-}}}} | |||
{{#if:{{{shell|}}}|{{inforow|[[Shell]]|{{{shell|}}}}}|{{!-}}}} | |||
{{#if:{{{skin|}}}|{{inforow|[[Skin]]|{{#switch:{{{skin|}}}|hide=Raw hide|scale=Scales|chitin=Chitin|none=not skinnable|#default={{{skin|}}}}}}}|{{!-}}}} | |||
{{#if:{{{wool|}}}|{{inforow|[[Wool]]|{{{wool|}}}}}|{{!-}}}} | |||
{{#if:{{{feather|}}}|{{inforow|[[Feather]]|{{{feather|}}}}}|{{!-}}}} | |||
{{#if:{{{gizzard_stone|}}}|{{inforow|[[Gizzard stone]]|{{{gizzard_stone|}}}}}|{{!-}}}} | |||
{{#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!''{{Category|Incomplete butchering returns|{{PAGENAME}}}}}}|{{!-}}}} | |||
}} | |||
{{#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}}[[Category:Infobox templates]]</noinclude> | |||
Версия от 07:50, 27 января 2016
| Символ | |
|---|---|
|
? | |
| Биом | |
|
Особый | |
| Cannot be tamed | |
| Butchering returns | |
|
Food items | |
|
Raw materials | |
|
There is too little information about this creature. |
[Перейти] [Изменить описание]Документация
Шаблон-наследник: Creaturelookup/0
| Символ | |
|---|---|
|
W | |
| Биом | |
| |
| Cannot be tamed | |
| Size | |
| Child: | 500 000 cm3 |
| Adolescent: | 12 500 000 cm3 |
| Adult: | 25 000 000 cm3 |
| 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
- 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 the given wikipedia page (a value of "yes" uses the value of the parameter "name" instead)
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
- wool
- gizzard_stone
Usage
{{CreatureInfo v0.34
|name=Sperm 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
|wiki=yes
}}