Шаблон:CreatureInfo: различия между версиями

Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
мНет описания правки
Нет описания правки
(не показано 20 промежуточных версий этого же участника)
Строка 1: Строка 1:
<includeonly>{{infostart|
<includeonly>{{infostart|style=width:300px;|
{{{name}}}}}
{{{name}}}}}
{{infoheader|Символ}}
{{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;">Переключить</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|Variations}}
{{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|Alignment:|{{{alignment}}} }}|{{!-}}}}
{{#if:{{{alignment|}}}|{{inforow|Окружение:|{{{alignment}}} }}|{{!-}}}}
{{#ifexpr:{{{bldgdest|0}}}>0|{{infocell|[[Building destroyer|Разрушитель построек]]: Уровень{{{bldgdest}}}{{Category|Building destroyer}}}}|{{!-}}}}}}
{{#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|Tamed Attributes}}
{{infoheader|Свойства питомца}}
{{inforow|Pet value|{{formatnum:{{{petvalue|0}}}}}}}
{{inforow|Ценность|{{formatnum:{{{petvalue|0}}}}}}}
{{#if:{{{grazer|}}}|{{inforow|[[Grazer|Травоядное]]:|{{{grazer}}} {{Category|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|Trainable]]:&nbsp; {{#ifexpr:{{{train_hunt|0}}}>0|Охотничье {{Category|Hunting Animals}}|}} &nbsp; {{#ifexpr:{{{train_war|0}}}>0|Боевое {{Category|War Animals}}|}}|Ни боевое, ни охотничье [[Animal trainer|trainable]]}}}}|{{infoheader|bg=#fbb|Не приручается}}}}{{
|[[Animal trainer|Дрессируется]]:&nbsp; {{#ifexpr:{{{train_hunt|0}}}>0|Охотничье {{Category|Охотничье животное}}|}} &nbsp; {{#ifexpr:{{{train_war|0}}}>0|Боевое {{Category|Боевое животное}}|}}|Не [[Animal trainer|дрессируется]]}}}}|{{infoheader|bg=#fbb|Не приручается}}}}{{
#ifexpr:{{#expr:{{{size0|0}}}+{{{size1|0}}}+{{{size2|0}}}}}>0|&nbsp;
#ifexpr:({{{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|'''Детёныш:'''|{{formatnum:{{{size0}}}}} см<sup>3</sup>}}
{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Adolescent:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}
{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Подросток:'''|{{formatnum:{{{size1}}}}} см<sup>3</sup> }}}}
|{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Child:'''|{{formatnum:{{{size1}}} cm<sup>3</sup> }}}}}}}}
|{{#ifexpr:{{{size1|0}}}>0|{{inforow|'''Детёныш:'''|{{formatnum:{{{size1}}}}} см<sup>3</sup> }}}}}}
{{#ifexpr:{{{size2|0}}}>0|{{inforow|'''Adult:'''|{{formatnum:{{{size2}}} cm<sup>3</sup> }}}}}}}}||}}
{{#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|Age}}
{{infoheader|Возраст}}
{{#if:{{{childage|}}}|{{inforow|Child at:|{{{childage}}}}}}}
{{#if:{{{childage|}}}|{{inforow|Детский:|{{{childage}}}}}}}
{{inforow|Взрослый:|{{{adultage}}}}}
{{inforow|Взрослый:|{{{adultage}}}}}
{{inforow|Максимальный возраст:|{{{maxage}}}}}}}
{{inforow|Максимальный:|{{{maxage}}}}}}}
{{infoheader|{{#switch:{{{death|}}}
{{infoheader|{{#switch:{{{death|}}}
|rot=Rotting leaves
|rot=Гниющие останки
|item=Becomes after death
|item=Превращается после смерти
|nobutcher=Cannot be butchered
|nobutcher=Не может быть разделан
|butcher |#default=[[Meat industry|Результат разделки]]}}}}
|butcher |#default=[[Meat industry|Результат разделки]]}}}}
{{#if:{{{valm|}}}|([[Multiply value|Value multiplier]] x{{{valm|}}})}}
{{#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|Легкое]]s|{{{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|Почки]]s|{{{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|Глаза]]s|{{{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=Raw hide|scale=Scales|chitin=Chitin|none=not skinnable|#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|Безоар]]|{{{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|''There is too little information about this creature.<br /> Please contribute if you can!''{{Category|Incomplete butchering returns|{{PAGENAME}}}}}}|{{!-}}}}
{{#ifeq:{{{contrib|}}}|no|{{!-}}|{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|''Слишком мало информации о существе.''[[Категория:Неполный список разделки]]}}|{{!-}}}}
}}
}}
{{#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]]}}|{{!-}}}}
{{#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>

Версия от 07:40, 26 сентября 2023

[Перейти] [Изменить описание]Документация

Шаблон-наследник: Creaturelookup/0

Sperm whale
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
  • 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
}}