Шаблон:Creaturelookup/0: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
GeloMor (обсуждение | вклад) Нет описания правки |
GeloMor (обсуждение | вклад) мНет описания правки |
||
Строка 22: | Строка 22: | ||
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}}|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={{#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}}|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={{#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}}|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=При рождении}}}}| |
Версия от 11:00, 4 февраля 2019
Шаблон извлекает данные из raw-файла и помещает в Шаблон:CreatureInfo. Помимо этого объединяет шаблоны creature/variation, creature/variation links, Copy From, creature/eggs, bodysize, tame_attrib_proc, grazer_proc, biomelist/aux, attrib_proc.