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

Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
<includeonly>{{CreatureInfo|
<includeonly>{{CreatureInfo|
name={{ucfirst:{{tagentry|{{/raw}}|NAME|1}}}}|
name={{ucfirst:{{tagentry|{{/raw}}|NAME|1}}}}|
pref={{{prefstring|}}}|
pref={{prefstring|{{/raw}}}}|
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|{{/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}}|GOOD}}|Доброе<br />}}{{#if:{{tag|{{/raw}}|EVIL}}|Злое<br />}}{{#if:{{tag|{{/raw}}|SAVAGE}}|Дикое}}|
#if:{{tag|{{/raw}}|GOOD}}|Дружественное<br />}}{{
#if:{{tag|{{/raw}}|EVIL}}|Враждебное<br />}}{{
#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|{{/raw}}|{{PAGENAME}}}}|
tame_attribs={{tame_attrib_proc|{{Copy From}}{{/raw}}}}|
tame_attribs={{tame_attrib_proc|{{/raw}}}}|
pet={{tag|{{/raw|}}|PET}}|
pet={{tag|{{/raw|}}|PET}}|
exotic={{tag|{{/raw|}}|PET_EXOTIC}}|
exotic={{tag|{{/raw|}}|PET_EXOTIC}}|
Строка 20: Строка 17:
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:{{#expr:{{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON_LEGLESS|1|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}} + 70000) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}|
size0={{#if:{{{size0|}}}|{{{size0|}}}|{{bodysize|{{/raw}}|0}}}}|
size1={{#if:{{{size1|}}}|{{{size1|}}}|{{#ifeq:{{#expr:{{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON_LEGLESS|1|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}} + 70000) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}|
size1={{#if:{{{size1|}}}|{{{size1|}}}|{{bodysize|{{/raw}}|1}}}}|
size2={{#if:{{{size2|}}}|{{{size2|}}}|{{#ifeq:{{#expr:{{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON|1|0}} or {{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|ANIMAL_PERSON_LEGLESS|1|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}} + 70000) / ({{tagentryspec|{{Copy From}}|BODY_SIZE|3|-1|notfound=1}} * 2)}}}}}}|
size2={{#if:{{{size2|}}}|{{{size2|}}}|{{bodysize|{{/raw}}|2}}}}|
childage={{tagvalue|{{/raw}}|BABY|notfound={{tagvalue|{{Copy From}}|BABY|notfound=}}}}|
childage={{tagvalue|{{/raw}}|BABY|notfound=}}|
adultage={{tagvalue|{{/raw}}|CHILD|notfound={{tagvalue|{{Copy From}}|CHILD|notfound=При рождении}}}}|
adultage={{tagvalue|{{/raw}}|CHILD|notfound=При рождении}}|
maxage={{#mreplace:{{tagvalue|{{/raw}}|MAXAGE|notfound={{tagvalue|{{Copy From}}|MAXAGE|notfound=Бессмертный}}}}|:|-}}|
maxage={{#mreplace:{{tagvalue|{{/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}}|nobutcher}}}}|
eggs={{#ifeq:{{tagvalue|{{/raw}}|APPLY_CREATURE_VARIATION}}|GIANT|{{#rreplace:{{tagvalue|{{Copy From}}|CLUTCH_SIZE|notfound=}}|:|-}}|{{#rreplace:{{tagvalue|{{/raw}}|CLUTCH_SIZE|notfound=}}|:|-}}}}|
eggs={{#ifeq:{{creature/eggs}}|0||{{creature/eggs}}}}|
item={{{item|}}}|
item={{#param:item|items|}}|
meat={{{meat|}}}|
meat={{#param:meat|meats|}}|
fat={{{fat|}}}|
fat={{#param:fat|fats|}}|
brain={{{brain|}}}|
brain={{#param:brain|brains|}}|
gizzard={{{gizzard|}}}|
gizzard={{#param:gizzard|gizzards|}}|
heart={{{heart|}}}|
heart={{#param:heart|hearts|}}|
lung={{{lung|}}}|
lung={{#param:lung|lungs|}}|
intestine={{{intestine|}}}|
intestine={{#param:intestine|intestines|}}|
liver={{{liver|}}}|
liver={{#param:liver|livers|}}|
kidney={{{kidney|}}}|
kidney={{#param:kidney|kidneys|}}|
tripe={{{tripe|}}}|
tripe={{#param:tripe|tripes|}}|
sweetbread={{{sweetbread|}}}|
sweetbread={{#param:sweetbread|sweetbreads|}}|
eye={{{eye|}}}|
eye={{#param:eye|eyes|}}|
spleen={{{spleen|}}}|
spleen={{#param:spleen|spleens|}}|
bone={{{bone|}}}|
bone={{#param:bone|bones|}}|
skull={{{skull|}}}|
skull={{#param:skull|skulls|}}|
ivory={{{ivory|}}}|
ivory={{#param:ivory|ivories|tusk|tusks|}}|
tooth={{{tooth|}}}|
tooth={{#param:tooth|teeth|}}|
hoof={{{hoof|}}}|
hoof={{#param:hoof|hooves|}}|
horn={{{horn|}}}|
horn={{#param:horn|horns|}}|
shell={{{shell|}}}|
shell={{#param:shell|shells|}}|
skin={{{skin|{{#if:{{{hide|}}}|hide|{{#if:{{{scale|}}}|scale|{{#if:{{{chitin|}}}|chitin}} }} }} }}}|
skin={{{skin|{{#if:{{{hide|}}}|hide|{{#if:{{#param:scale|scales|}}|scale|{{#if:{{{chitin|}}}|chitin}} }} }} }}}|
wool={{{wool|}}}|
wool={{{wool|}}}|
gizzard_stone={{{gizzard_stone|}}}|
gizzard_stone={{#param:gizzard_stone|gizzard_stones|}}|
feather={{{feather|}}}|
feather={{#param:feather|feathers|}}|
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]], [[Шаблон: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>

Версия от 15:55, 1 сентября 2022

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