v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Creaturelookup/0"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(move sentience check to set "death" parameter)
 
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{CreatureInfo {{#switch:{{NAMESPACE}}|DF2012=v0.34|#default=v0.31}}|
+
<includeonly>{{#if:{{#var:evan}}{{#var:emw}}|<!-- av included already, should be AFTER this template -->
 +
[[Category:Pages with incorrectly-ordered templates]]}}{{CreatureInfo {{#switch:{{NAMESPACE}}|DF2014|v0.40=v0.40|DF2012|v0.34=v0.34|Masterwork=Masterwork|v0.31|40d|23a=v0.31|#default=v0.40}}|
 
name={{ucfirst:{{tagentry|{{/raw}}|NAME|1}}}}|
 
name={{ucfirst:{{tagentry|{{/raw}}|NAME|1}}}}|
 +
pref={{prefstring|{{/raw}}}}|
 
symbol={{tagvalue|{{/raw}}|CREATURE_TILE}}|
 
symbol={{tagvalue|{{/raw}}|CREATURE_TILE}}|
 +
image={{{image|}}}|
 +
portrait={{{portrait|}}}|
 
color={{tagvalue|{{/raw}}|COLOR}}|
 
color={{tagvalue|{{/raw}}|COLOR}}|
biome={{#if:{{{biome|}}}|{{{biome}}}[[Category:Verify| ]]|{{biomelist/aux|{{/raw}}}}}}|
+
biome={{#if:{{{biome|}}}|{{{biome}}}|{{biomelist/aux|{{/raw}}}}}}|
 +
vary={{{vary|{{#ifeq:{{creature/variation}}|00|no|{{creature/variation links}}}}}}}|
 
alignment={{#if:{{tag|{{/raw}}|GOOD}}|Good<br />}}{{#if:{{tag|{{/raw}}|EVIL}}|Evil<br />}}{{#if:{{tag|{{/raw}}|SAVAGE}}|Savage}}|
 
alignment={{#if:{{tag|{{/raw}}|GOOD}}|Good<br />}}{{#if:{{tag|{{/raw}}|EVIL}}|Evil<br />}}{{#if:{{tag|{{/raw}}|SAVAGE}}|Savage}}|
 
bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}|
 
bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}|
attribs={{attrib_proc|{{/raw}}}}|
+
attribs={{attrib_proc|{{/raw}}|{{PAGENAME}}}}|
 +
tame_attribs={{tame_attrib_proc/{{NAMESPACE}}|{{/raw}}}}|
 
pet={{tag|{{/raw|}}|PET}}|
 
pet={{tag|{{/raw|}}|PET}}|
 
exotic={{tag|{{/raw|}}|PET_EXOTIC}}|
 
exotic={{tag|{{/raw|}}|PET_EXOTIC}}|
 
petvalue={{tagvalue|{{/raw}}|PETVALUE|notfound=0}}|
 
petvalue={{tagvalue|{{/raw}}|PETVALUE|notfound=0}}|
 
grazer={{grazer_proc|{{tagvalue|{{/raw}}|GRAZER|notfound=0}}}}|
 
grazer={{grazer_proc|{{tagvalue|{{/raw}}|GRAZER|notfound=0}}}}|
milkable={{#if:{{tag|{{/raw}}|MILKABLE}}|[[Milk]]able|}}|
 
shearable={{#if:{{tag|{{/raw}}|YARN}}|[[Shear]]able|}}|
 
egglaying={{#if:{{tag|{{/raw}}|LAYS_EGGS}}|[[Egg]]laying|}}|
 
 
train_hunt={{#expr:{{#if:{{tag|{{/raw}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{/raw}}|TRAINABLE_HUNTING}}|1|0}}}}|
 
train_hunt={{#expr:{{#if:{{tag|{{/raw}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{/raw}}|TRAINABLE_HUNTING}}|1|0}}}}|
 
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}}}}|
Line 20: Line 23:
 
size1={{#if:{{{size1|}}}|{{{size1|}}}|{{bodysize|{{/raw}}|1}}}}|
 
size1={{#if:{{{size1|}}}|{{{size1|}}}|{{bodysize|{{/raw}}|1}}}}|
 
size2={{#if:{{{size2|}}}|{{{size2|}}}|{{bodysize|{{/raw}}|2}}}}|
 
size2={{#if:{{{size2|}}}|{{{size2|}}}|{{bodysize|{{/raw}}|2}}}}|
 +
childage={{tagvalue|{{/raw}}|BABY|notfound=}}|
 +
adultage={{tagvalue|{{/raw}}|CHILD|notfound=Birth}}|
 +
maxage={{#mreplace:{{tagvalue|{{/raw}}|MAXAGE|notfound=Immortal}}|:|-}}|
 
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}}}}|
 
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}}}}|
item={{{item|}}}|
+
eggs={{#ifeq:{{creature/eggs}}|0||{{creature/eggs}}}}|
meat={{{meat|}}}|
+
item={{#param:item|items|}}|
fat={{{fat|}}}|
+
meat={{#param:meat|meats|}}|
brain={{{brain|}}}|
+
fat={{#param:fat|fats|}}|
gizzard={{{gizzard|}}}|
+
brain={{#param:brain|brains|}}|
heart={{{heart|}}}|
+
gizzard={{#param:gizzard|gizzards|}}|
lung={{{lung|}}}|
+
heart={{#param:heart|hearts|}}|
intestine={{{intestine|}}}|
+
lung={{#param:lung|lungs|}}|
liver={{{liver|}}}|
+
intestine={{#param:intestine|intestines|}}|
kidney={{{kidney|}}}|
+
liver={{#param:liver|livers|}}|
tripe={{{tripe|}}}|
+
kidney={{#param:kidney|kidneys|}}|
sweetbread={{{sweetbread|}}}|
+
tripe={{#param:tripe|tripes|}}|
eye={{{eye|}}}|
+
sweetbread={{#param:sweetbread|sweetbreads|}}|
spleen={{{spleen|}}}|
+
eye={{#param:eye|eyes|}}|
bone={{{bone|}}}|
+
spleen={{#param:spleen|spleens|}}|
skull={{{skull|}}}|
+
bone={{#param:bone|bones|}}|
ivory={{{ivory|}}}|
+
skull={{#param:skull|skulls|}}|
tooth={{{tooth|}}}|
+
ivory={{#param:ivory|ivories|tusk|tusks|}}|
hoof={{{hoof|}}}|
+
tooth={{#param:tooth|teeth|}}|
horn={{{horn|}}}|
+
hoof={{#param:hoof|hooves|}}|
shell={{{shell|}}}|
+
horn={{#param:horn|horns|}}|
skin={{{skin|}}}|
+
shell={{#param:shell|shells|}}|
 +
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={{#param:feather|feathers|}}|
 
contrib={{{contrib|}}}|
 
contrib={{{contrib|}}}|
wiki={{{wiki|}}}}}</includeonly><noinclude>
+
wiki={{#param:wiki|wp|wikipedia|}}}}</includeonly><noinclude>
 
This is an intermediary template which pulls necessary details from the creature's raws and passes the results on to the proper CreatureInfo template for display.
 
This is an intermediary template which pulls necessary details from the creature's raws and passes the results on to the proper CreatureInfo template for display.
  
 
[[category:raw templates]]</noinclude>
 
[[category:raw templates]]</noinclude>

Latest revision as of 21:22, 24 April 2024

This is an intermediary template which pulls necessary details from the creature's raws and passes the results on to the proper CreatureInfo template for display.