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

Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
Нет описания правки
Нет описания правки
Строка 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={{bodysize|{{Copy From}}|0}}|
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)}}}}}}|
size1={{bodysize|{{Copy From}}|1}}|
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)}}}}}}|
size2={{bodysize|{{Copy From}}|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)}}}}}}|
childage={{tagvalue|{{/raw}}|BABY|notfound={{tagvalue|{{Copy From}}|BABY|notfound=}}}}|
childage={{tagvalue|{{/raw}}|BABY|notfound={{tagvalue|{{Copy From}}|BABY|notfound=}}}}|
adultage={{tagvalue|{{/raw}}|CHILD|notfound={{tagvalue|{{Copy From}}|CHILD|notfound=При рождении}}}}|
adultage={{tagvalue|{{/raw}}|CHILD|notfound={{tagvalue|{{Copy From}}|CHILD|notfound=При рождении}}}}|

Версия от 10:17, 4 февраля 2019

Шаблон извлекает данные из raw-файла и помещает в Шаблон:CreatureInfo. Помимо этого объединяет шаблоны creature/variation, creature/variation links, Copy From, creature/eggs, bodysize, tame_attrib_proc, grazer_proc, biomelist/aux, attrib_proc.