Шаблон:Creaturelookup/0: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
GeloMor (обсуждение | вклад) Нет описания правки |
GeloMor (обсуждение | вклад) Нет описания правки |
||
Строка 4: | Строка 4: | ||
symbol={{tagvalue|{{/raw}}|CREATURE_TILE}}| | symbol={{tagvalue|{{/raw}}|CREATURE_TILE}}| | ||
color={{tagvalue|{{/raw}}|COLOR}}| | color={{tagvalue|{{/raw}}|COLOR}}| | ||
biome={{#if:{{{biome|}}}|{{{biome}}}|{{biomelist/aux|{{Copy From}}}}}}| | biome={{#if:{{{biome|}}}|{{{biome}}}|{{biomelist/aux|{{Copy From|{{/raw}}|{{/raw}}}}}}}}| | ||
vary={{{vary|{{#ifeq:{{creature/variation}}|00|no|{{creature/variation links}}}}}}}| | vary={{{vary|{{#ifeq:{{creature/variation}}|00|no|{{creature/variation links}}}}}}}| | ||
alignment={{#if:{{tag|{{/raw}}|COPY_TAGS_FROM}}|Дикое|{{ | alignment={{#if:{{tag|{{/raw}}|COPY_TAGS_FROM}}|Дикое|{{ | ||
Строка 11: | Строка 11: | ||
#if:{{tag|{{/raw}}|SAVAGE}}|Дикое}}}}| | #if:{{tag|{{/raw}}|SAVAGE}}|Дикое}}}}| | ||
bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}| | bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}| | ||
attribs={{attrib_proc|{{Copy From}}{{/raw}}|{{PAGENAME}}}}| | attribs={{attrib_proc|{{Copy From|{{/raw}}}}{{/raw}}|{{PAGENAME}}}}| | ||
tame_attribs={{tame_attrib_proc|{{Copy From}}{{/raw}}}}| | tame_attribs={{tame_attrib_proc|{{Copy From|{{/raw}}}}{{/raw}}}}| | ||
pet={{tag|{{/raw|}}|PET}}| | pet={{tag|{{/raw|}}|PET}}| | ||
exotic={{tag|{{/raw|}}|PET_EXOTIC}}| | exotic={{tag|{{/raw|}}|PET_EXOTIC}}| | ||
Строка 20: | Строка 20: | ||
train_war={{#expr:{{#if:{{tag|{{/raw}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{/raw}}|TRAINABLE_WAR}}|1|0}}}}| | train_war={{#expr:{{#if:{{tag|{{/raw}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{/raw}}|TRAINABLE_WAR}}|1|0}}}}| | ||
valm={{tagvalue|{{#df_raw:{{/raw}}|SELECT_MATERIAL|ALL}}|MULTIPLY_VALUE|notfound=}}| | valm={{tagvalue|{{#df_raw:{{/raw}}|SELECT_MATERIAL|ALL}}|MULTIPLY_VALUE|notfound=}}| | ||
size0={{#if:{{{size0|}}}|{{{size0|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-3|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-3|notfound=0}}}}} * ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | size0={{#if:{{{size0|}}}|{{{size0|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-3|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-3|notfound=0}}}}} * ({{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | ||
size1={{#if:{{{size1|}}}|{{{size1|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-2|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-2|notfound=0}}}}} * ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | size1={{#if:{{{size1|}}}|{{{size1|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-2|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-2|notfound=0}}}}} * ({{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | ||
size2={{#if:{{{size2|}}}|{{{size2|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=0}}}}} * ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | size2={{#if:{{{size2|}}}|{{{size2|}}}|{{#ifeq:{{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}|0|{{#expr:{{{3|{{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=0}}}}} * ({{tagvalue|{{/raw}}|CHANGE_BODY_SIZE_PERC|notfound=100}}/100)}}|{{#expr:{{{3|{{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=0}}}}} * ({{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=1}} + {{tagvalue|{{/raw}}|GRAVITATE_BODY_SIZE|notfound=0}}) / ({{tagentryspec|{{Copy From|{{/raw}}}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}| | ||
childage={{tagvalue|{{/raw}}|BABY|notfound={{tagvalue|{{Copy From}}|BABY|notfound=}}}}| | childage={{tagvalue|{{/raw}}|BABY|notfound={{tagvalue|{{Copy From|{{/raw}}}}|BABY|notfound=}}}}| | ||
adultage={{tagvalue|{{/raw}}|CHILD|notfound={{tagvalue|{{Copy From}}|CHILD|notfound=При рождении}}}}| | adultage={{tagvalue|{{/raw}}|CHILD|notfound={{tagvalue|{{Copy From|{{/raw}}}}|CHILD|notfound=При рождении}}}}| | ||
maxage={{#mreplace:{{tagvalue|{{/raw}}|MAXAGE|notfound={{tagvalue|{{Copy From}}|MAXAGE|notfound=Бессмертный}}}}|:|-}}| | maxage={{#mreplace:{{tagvalue|{{/raw}}|MAXAGE|notfound={{tagvalue|{{Copy From|{{/raw}}}}|MAXAGE|notfound=Бессмертный}}}}|:|-}}| | ||
death={{#if:{{{death|}}}|{{{death}}}|{{#ifexpr:{{#if:{{tag|{{/raw}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{/raw}}|CAN_LEARN}}|1|0}} or {{#if:{{tag|{{/raw}}|NOT_BUTCHERABLE}}|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON_LEGLESS|1|0}}|nobutcher}}}}| | death={{#if:{{{death|}}}|{{{death}}}|{{#ifexpr:{{#if:{{tag|{{/raw}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{/raw}}|CAN_LEARN}}|1|0}} or {{#if:{{tag|{{/raw}}|NOT_BUTCHERABLE}}|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON_LEGLESS|1|0}}|nobutcher}}}}| | ||
eggs={{#rreplace:{{tagvalue|{{/raw}}|CLUTCH_SIZE|notfound=}}|:|-}}| | eggs={{#rreplace:{{tagvalue|{{/raw}}|CLUTCH_SIZE|notfound=}}|:|-}}| | ||
Строка 55: | Строка 55: | ||
contrib={{{contrib|no}}}| | contrib={{{contrib|no}}}| | ||
wiki={{{wiki|}}}}}</includeonly><noinclude> | wiki={{{wiki|}}}}}</includeonly><noinclude> | ||
Шаблон извлекает данные из raw-файла и помещает в [[Шаблон:CreatureInfo]]. Помимо этого объединяет шаблоны [[Шаблон:creature/variation|creature/variation]], [[Шаблон:creature/variation links|creature/variation links]], [[Шаблон:Copy From|Copy From]], [[Шаблон:creature/eggs|creature/eggs]], [[Шаблон:bodysize|bodysize]], [[Шаблон:tame_attrib_proc|tame_attrib_proc]], [[Шаблон:grazer_proc|grazer_proc]], [[Шаблон:biomelist/aux|biomelist/aux]], [[Шаблон:attrib_proc|attrib_proc]]. | Шаблон извлекает данные из raw-файла и помещает в [[Шаблон:CreatureInfo]]. Помимо этого объединяет шаблоны [[Шаблон:creature/variation|creature/variation]], [[Шаблон:creature/variation links|creature/variation links]], [[Шаблон:Copy From|{{/raw}}|Copy From|{{/raw}}]], [[Шаблон:creature/eggs|creature/eggs]], [[Шаблон:bodysize|bodysize]], [[Шаблон:tame_attrib_proc|tame_attrib_proc]], [[Шаблон:grazer_proc|grazer_proc]], [[Шаблон:biomelist/aux|biomelist/aux]], [[Шаблон:attrib_proc|attrib_proc]]. | ||
[[category:raw templates]][[category:Шаблоны инфобоксов]][[en:Template:Creaturelookup/0]]</noinclude> | [[category:raw templates]][[category:Шаблоны инфобоксов]][[en:Template:Creaturelookup/0]]</noinclude> |
Версия от 18:08, 4 февраля 2019
Шаблон извлекает данные из raw-файла и помещает в Шаблон:CreatureInfo. Помимо этого объединяет шаблоны creature/variation, creature/variation links, [[Шаблон:Copy From|Шаблон:Creaturelookup/0/raw|Copy From|Шаблон:Creaturelookup/0/raw]], creature/eggs, bodysize, tame_attrib_proc, grazer_proc, biomelist/aux, attrib_proc.