Шаблон:CreatureInfo: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
GeloMor (обсуждение | вклад) м (Интервики) |
GeloMor (обсуждение | вклад) Нет описания правки |
||
(не показана 21 промежуточная версия этого же участника) | |||
Строка 1: | Строка 1: | ||
{{infostart| | <includeonly>{{infostart|style=width:300px;| | ||
{{{name}}}}} | {{{name}}}}} | ||
{{ | {{infocell|style=color: white; background: black; text-align:center; vertical-align:middle;|1= | ||
{{ | {{#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;">Переключить</span>}}}} | |||
{{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}} | {{#if:{{{pref|}}}|{{infopref|{{{pref}}}}}}} | ||
{{infoheader|[[Biome|Биом]]}} | {{infoheader|[[Biome|Биом]]}} | ||
{{infocell|{{#if:{{{biome|}}}|{{{biome|}}}| | {{infocell|{{#if:{{{biome|}}}|{{{biome|}}}|*Любой}}}} | ||
{{#ifeq:{{{vary|no}}}|no|{{!-}}| | {{#ifeq:{{{vary|no}}}|no|{{!-}}| | ||
{{infoheader| | {{infoheader|Разновидности}} | ||
{{infocell|{{{vary| | {{infocell|{{{vary|Неизвестно}}} }} }} | ||
{{#ifexpr:{{#if:{{{alignment|}}}|1|0}} or {{#ifexpr:{{{bldgdest|0}}}>0|1|0}} or {{#if:{{{attribs|}}}|1|0}}| | {{#ifexpr:{{#if:{{{alignment|}}}|1|0}} or {{#ifexpr:{{{bldgdest|0}}}>0|1|0}} or {{#if:{{{attribs|}}}|1|0}}| | ||
{{infoheader|Атрибуты}} | {{infoheader|Атрибуты}} | ||
{{#if:{{{alignment|}}}|{{inforow| | {{#if:{{{alignment|}}}|{{inforow|Окружение:|{{{alignment}}} }}|{{!-}}}} | ||
{{#ifexpr:{{{bldgdest|0}}}>0|{{infocell|[[Building destroyer|Разрушитель построек]]: Уровень{{{bldgdest}}}{{Category| | {{#ifexpr:{{{bldgdest|0}}}>0|{{infocell|[[Building destroyer|Разрушитель построек]]: Уровень {{{bldgdest}}}{{Category|Разрушитель построек}}}}|{{!-}}}}}} | ||
{{#if:{{{attribs|}}}|{{infocell|{{{attribs}}}}}|{{!-}}}} | {{#if:{{{attribs|}}}|{{infocell|{{Span-hide}}{{{attribs}}}}}|{{!-}}}} | ||
{{#ifexpr:{{#if:{{{pet|}}}|1|0}} or {{#if:{{{exotic|}}}|1|0}}| | {{#ifexpr:{{#if:{{{pet|}}}|1|0}} or {{#if:{{{exotic|}}}|1|0}}| | ||
{{infoheader| | {{infoheader|Свойства питомца}} | ||
{{inforow| | {{inforow|Ценность|{{formatnum:{{{petvalue|0}}}}}☼}} | ||
{{#if:{{{grazer|}}}|{{inforow|[[Grazer| | {{#if:{{{grazer|}}}|{{inforow|[[Grazer|Пастбище]]:|{{{grazer}}} {{Category|Пастбищное животное}}}}|{{!-}}}} | ||
{{#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| | |[[Animal trainer|Дрессируется]]: {{#ifexpr:{{{train_hunt|0}}}>0|Охотничье {{Category|Охотничье животное}}|}} {{#ifexpr:{{{train_war|0}}}>0|Боевое {{Category|Боевое животное}}|}}|Не [[Animal trainer|дрессируется]]}}}}|{{infoheader|bg=#fbb|Не приручается}}}}{{ | ||
#ifexpr: | #ifexpr:({{{size0|0}}}+{{{size1|0}}}+{{{size2|0}}})>0| | ||
{{infoheader|Size}} | {{infoheader|[[Size|Размер]]}} | ||
{{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|''' | {{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|'''Детёныш:'''|{{formatnum:{{{size0}}}}} см<sup>3</sup>}} | ||
{{#ifexpr:{{{size1|0}}}>0|{{inforow|''' | {{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Подросток:'''|{{formatnum:{{{size1}}}}} см<sup>3</sup> }}}} | ||
|{{#ifexpr:{{{size1|0}}}>0|{{inforow|''' | |{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Детёныш:'''|{{formatnum:{{{size1}}}}} см<sup>3</sup> }}}}}} | ||
{{#ifexpr:{{{size2|0}}}>0|{{inforow|''' | {{#ifexpr:{{{size2|0}}}>0|{{inforow|'''Взрослый:'''|{{formatnum:{{{size2}}}}} см<sup>3</sup> }}}}}}||}} | ||
{{#if:{{{eggs|}}}|{{infoheader|[[Food|Пищевые продукты]]}} | {{#if:{{{eggs|}}}|{{infoheader|[[Food|Пищевые продукты]]}} | ||
{{#if:{{{eggs|}}}|{{inforow|[[Egg|Яйца]]|{{{eggs}}}}}}}}}{{ | {{#if:{{{eggs|}}}|{{inforow|[[Egg|Яйца]]|{{{eggs}}}}}}}}}{{ | ||
#if:{{{childage|}}}{{{adultage|}}}{{{maxage|}}}|<nowiki/> | #if:{{{childage|}}}{{{adultage|}}}{{{maxage|}}}|<nowiki/> | ||
{{infoheader| | {{infoheader|Возраст}} | ||
{{#if:{{{childage|}}}|{{inforow| | {{#if:{{{childage|}}}|{{inforow|Детский:|{{{childage}}}}}}} | ||
{{inforow|Взрослый:|{{{adultage}}}}} | {{inforow|Взрослый:|{{{adultage}}}}} | ||
{{inforow|Максимальный | {{inforow|Максимальный:|{{{maxage}}}}}}} | ||
{{infoheader|{{#switch:{{{death|}}} | {{infoheader|{{#switch:{{{death|}}} | ||
|rot= | |rot=Гниющие останки | ||
|item= | |item=Превращается после смерти | ||
|nobutcher= | |nobutcher=Не может быть разделан | ||
|butcher |#default=[[Meat industry|Результат разделки]]}}}} | |butcher |#default=[[Meat industry|Результат разделки]]}}}} | ||
{{#if:{{{valm|}}}|([[Multiply value| | {{#if:{{{valm|}}}|([[Multiply value|Множитель цены]] ×{{{valm|}}})}} | ||
{{#ifeq:{{{death|}}}|item|{{infocell|{{{item|}}}}}|{{!-}}}} | {{#ifeq:{{{death|}}}|item|{{infocell|{{{item|}}}}}|{{!-}}}} | ||
{{#switch:{{{death|}}} | {{#switch:{{{death|}}} | ||
Строка 50: | Строка 52: | ||
{{#if:{{{gizzard|}}}|{{inforow|[[Gizzard|Глотка]]|{{{gizzard|}}}}}|{{!-}}}} | {{#if:{{{gizzard|}}}|{{inforow|[[Gizzard|Глотка]]|{{{gizzard|}}}}}|{{!-}}}} | ||
{{#if:{{{heart|}}}|{{inforow|[[Heart|Сердце]]|{{{heart|}}}}}|{{!-}}}} | {{#if:{{{heart|}}}|{{inforow|[[Heart|Сердце]]|{{{heart|}}}}}|{{!-}}}} | ||
{{#if:{{{lung|}}}|{{inforow|[[Lung| | {{#if:{{{lung|}}}|{{inforow|[[Lung|Легкие]]|{{{lung|}}}}}|{{!-}}}} | ||
{{#if:{{{intestine|}}}|{{inforow|[[Intestines|Кишки]]|{{{intestine|}}}}}|{{!-}}}} | {{#if:{{{intestine|}}}|{{inforow|[[Intestines|Кишки]]|{{{intestine|}}}}}|{{!-}}}} | ||
{{#if:{{{liver|}}}|{{inforow|[[Liver|Печень]]|{{{liver|}}}}}|{{!-}}}} | {{#if:{{{liver|}}}|{{inforow|[[Liver|Печень]]|{{{liver|}}}}}|{{!-}}}} | ||
{{#if:{{{kidney|}}}|{{inforow|[[Kidney|Почки]] | {{#if:{{{kidney|}}}|{{inforow|[[Kidney|Почки]]|{{{kidney|}}}}}|{{!-}}}} | ||
{{#if:{{{tripe|}}}|{{inforow|[[Tripe|Желудок]]|{{{tripe|}}}}}|{{!-}}}} | {{#if:{{{tripe|}}}|{{inforow|[[Tripe|Желудок]]|{{{tripe|}}}}}|{{!-}}}} | ||
{{#if:{{{sweetbread|}}}|{{inforow|[[Sweetbread|Поджелудочная]]|{{{sweetbread|}}}}}|{{!-}}}} | {{#if:{{{sweetbread|}}}|{{inforow|[[Sweetbread|Поджелудочная]]|{{{sweetbread|}}}}}|{{!-}}}} | ||
{{#if:{{{eye|}}}|{{inforow|[[Eye|Глаза]] | {{#if:{{{eye|}}}|{{inforow|[[Eye|Глаза]]|{{{eye|}}}}}|{{!-}}}} | ||
{{#if:{{{spleen|}}}|{{inforow|[[Spleen|Селезенка]]|{{{spleen|}}}}}|{{!-}}}} | {{#if:{{{spleen|}}}|{{inforow|[[Spleen|Селезенка]]|{{{spleen|}}}}}|{{!-}}}} | ||
{{infocell|'''Сырье и материалы'''}} | {{infocell|'''Сырье и материалы'''}} | ||
Строка 66: | Строка 68: | ||
{{#if:{{{horn|}}}|{{inforow|[[Horns|Рога]]|{{{horn|}}}}}|{{!-}}}} | {{#if:{{{horn|}}}|{{inforow|[[Horns|Рога]]|{{{horn|}}}}}|{{!-}}}} | ||
{{#if:{{{shell|}}}|{{inforow|[[Shell|Раковина]]|{{{shell|}}}}}|{{!-}}}} | {{#if:{{{shell|}}}|{{inforow|[[Shell|Раковина]]|{{{shell|}}}}}|{{!-}}}} | ||
{{#if:{{{skin|}}}|{{inforow|[[Skin|Шкура]]|{{#switch:{{{skin|}}}|hide= | {{#if:{{{skin|}}}|{{inforow|[[Skin|Шкура]]|{{#switch:{{{skin|}}}|hide=Кожа{{Category|Покрытые кожей}}|scale=Чешуя{{Category|Чешуйчатые}}|chitin=Хитин{{Category|Хитиновые}}|none=не свежуется|#default={{{skin|}}}}}}}|{{!-}}}} | ||
{{#if:{{{wool|}}}|{{inforow|[[Wool|Шерсть]]|{{{wool|}}}}}|{{!-}}}} | {{#if:{{{wool|}}}|{{inforow|[[Wool|Шерсть]]|{{{wool|}}}}}|{{!-}}}} | ||
{{#if:{{{feather|}}}|{{inforow|[[Feather|Перья]]|{{{feather|}}}}}|{{!-}}}} | {{#if:{{{feather|}}}|{{inforow|[[Feather|Перья]]|{{{feather|}}}}}|{{!-}}}} | ||
{{#if:{{{gizzard_stone|}}}|{{inforow|[[Gizzard stone| | {{#if:{{{gizzard_stone|}}}|{{inforow|[[Gizzard stone|Гастролит]]|{{{gizzard_stone|}}}}}|{{!-}}}} | ||
{{#ifeq:{{{contrib|}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|'' | {{#ifeq:{{{contrib|}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|''Слишком мало информации о существе.''[[Категория:Неполный список разделки]]}}|{{!-}}}} | ||
}} | }} | ||
{{#if:{{{wiki}}}|{{#ifeq:{{{wiki|}}}|no||{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1={{wp|{{{wiki|}}}|Статья в Википедии}}}}}}}} | |||
{{infoend}}<noinclude>{{documentation}} | {{infoend}}</includeonly><noinclude>{{documentation}}</noinclude> |
Версия от 07:40, 26 сентября 2023
[Перейти] [Изменить описание]Документация
Шаблон-наследник: Creaturelookup/0
W
| |
Биом | |
---|---|
| |
Не приручается | |
Размер | |
Детёныш: | 500 000 см3 |
Подросток: | 12 500 000 см3 |
Взрослый: | 25 000 000 см3 |
Результат разделки | |
Съедобные части | |
Мясо | 574-773 |
Жир | 107-236 |
Мозг | 42-60 |
Сердце | 21-30 |
Легкие | 84-120 |
Кишки | 127-180 |
Печень | 42-60 |
Почки | 42-60 |
Желудок | 42-60 |
Поджелудочная | 21-30 |
Глаза | 2 |
Селезенка | 21-30 |
Сырье и материалы | |
Кости | 109-157 |
Череп | 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 }}