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
(pull sentience from raws)
(specify sentient in sentient variable; auto-detect NOT_BUTCHERABLE)
Line 7: Line 7:
 
bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}|
 
bldgdest={{tagvalue|{{/raw}}|BUILDINGDESTROYER|notfound=0}}|
 
attribs={{attrib_proc|{{/raw}}}}|
 
attribs={{attrib_proc|{{/raw}}}}|
sentient={{tag|{{/raw|}}|CAN_LEARN}}|
+
sentient={{#if:{{tag|{{/raw}}|CAN_LEARN}}|sentient}}|
 
pet={{tag|{{/raw|}}|PET}}|
 
pet={{tag|{{/raw|}}|PET}}|
 
exotic={{tag|{{/raw|}}|PET_EXOTIC}}|
 
exotic={{tag|{{/raw|}}|PET_EXOTIC}}|
Line 21: Line 21:
 
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}}}}|
death={{{death|}}}|
+
death={{{death|{{#if:{{tag|{{/raw}}|NOT_BUTCHERABLE}}|nobutcher}}}}}|
 
item={{{item|}}}|
 
item={{{item|}}}|
 
meat={{{meat|}}}|
 
meat={{{meat|}}}|

Revision as of 04:07, 4 January 2013

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.