Шаблон:CreatureInfo: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
GeloMor (обсуждение | вклад) мНет описания правки |
GeloMor (обсуждение | вклад) Нет описания правки |
||
(не показано 18 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
<includeonly>{{infostart| | <includeonly>{{infostart|style=width:300px;| | ||
{{{name}}}}} | {{{name}}}}} | ||
{{infocell|{{ | {{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|Портрет}} | |||
{{infocell|{{#if:{{{portrait|}}}|[[File:{{{portrait}}}|center]]|Нет портрета}}}} | |||
{{infoheader|[[Biome|Биом]]}} | {{infoheader|[[Biome|Биом]]}} | ||
{{infocell|{{#if:{{{biome|}}}|{{{biome|}}}|Любой}}}} | {{infocell|{{#if:{{{biome|}}}|{{{biome|}}}|*Любой}}}} | ||
{{#ifeq:{{{vary|no}}}|no|{{!-}}| | {{#ifeq:{{{vary|no}}}|no|{{!-}}| | ||
{{infoheader|Разновидности}} | {{infoheader|Разновидности}} | ||
Строка 12: | Строка 17: | ||
{{#if:{{{alignment|}}}|{{inforow|Окружение:|{{{alignment}}} }}|{{!-}}}} | {{#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|Пастбище]]:|{{{grazer}}} {{Category|Пастбищное животное}}}}|{{!-}}}} | {{#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|Дрессируется]]: {{#ifexpr:{{{train_hunt|0}}}>0|Охотничье {{Category|Охотничье животное}}|}} {{#ifexpr:{{{train_war|0}}}>0|Боевое {{Category|Боевое животное}}|}}|Не [[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|Размер}} | {{infoheader|[[Size|Размер]]}} | ||
{{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|'''Детёныш:'''|{{formatnum:{{{size0}}} | {{infocell|{{#ifexpr:{{{size0|0}}}>0|{{inforow|'''Детёныш:'''|{{formatnum:{{{size0}}}}} см<sup>3</sup>}} | ||
{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Подросток:'''|{{formatnum:{{{size1}}} | {{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Подросток:'''|{{formatnum:{{{size1}}}}} см<sup>3</sup> }}}} | ||
|{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Детёныш:'''|{{formatnum:{{{size1}}} | |{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Детёныш:'''|{{formatnum:{{{size1}}}}} см<sup>3</sup> }}}}}} | ||
{{#ifexpr:{{{size2|0}}}>0|{{inforow|'''Взрослый:'''|{{formatnum:{{{size2}}} | {{#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}}}}}}}}}{{ | ||
Строка 32: | Строка 37: | ||
{{#if:{{{childage|}}}|{{inforow|Детский:|{{{childage}}}}}}} | {{#if:{{{childage|}}}|{{inforow|Детский:|{{{childage}}}}}}} | ||
{{inforow|Взрослый:|{{{adultage}}}}} | {{inforow|Взрослый:|{{{adultage}}}}} | ||
{{inforow| | {{inforow|Максимальный:|{{{maxage}}}}}}} | ||
{{infoheader|{{#switch:{{{death|}}} | {{infoheader|{{#switch:{{{death|}}} | ||
|rot=Гниющие останки | |rot=Гниющие останки | ||
Строка 38: | Строка 43: | ||
|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|}}} | ||
Строка 65: | Строка 70: | ||
{{#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=Кожа|scale=Чешуя|chitin=Хитин|none=не свежуется|#default={{{skin|}}}}}}}|{{!-}}}} | {{#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|''Слишком мало информации о существе.''[[Категория:Неполный список разделки]]}}|{{!-}}}} | ||
}} | }} | ||
{{#ifeq:{{{wiki|}}}|no||{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1={{wp|{{{wiki|}}}|Статья в Википедии}}}}}} | {{#if:{{{wiki}}}|{{#ifeq:{{{wiki|}}}|no||{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1={{wp|{{{wiki|}}}|Статья в Википедии}}}}}}}} | ||
{{infoend}}</includeonly><noinclude>{{documentation}}</noinclude> | {{infoend}}</includeonly><noinclude>{{documentation}}</noinclude> |
Текущая версия от 19:20, 27 апреля 2024
[Перейти] [Изменить описание]Документация
Шаблон-наследник: 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 }}