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
(separate tame_attrib_proc by namespace)
(age params)
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}}}}|
 +
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}}}}|
 
eggs={{#ifeq:{{creature/eggs}}|0||{{creature/eggs}}}}|
 
eggs={{#ifeq:{{creature/eggs}}|0||{{creature/eggs}}}}|

Revision as of 20:26, 5 August 2014

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.