Difference between revisions of "Template:Creature/is humanoid"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(change to use matching)
(prevent humanoid_armless from returning 1)
Line 1: Line 1:
<includeonly>{{#ifeq:{{#rsplit:{{#df_tagentry:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}|HUMANOID|1|0}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{#rsplit:{{#rreplace:{{#df_tagentry:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY|0|1|NOT_HUMANOID}}|HUMANOID_ARMLESS|INVALID_TYPE}}|_|0}}|HUMANOID|1|0}}</includeonly><noinclude>
 
Returns 1 if the given creature is a humanoid, 0 otherwise
 
Returns 1 if the given creature is a humanoid, 0 otherwise
 
===Examples===
 
===Examples===
 
{{creature/is humanoid|ant|ns=DF2012}}
 
{{creature/is humanoid|ant|ns=DF2012}}
 
{{creature/is humanoid|antman|ns=DF2012}}
 
{{creature/is humanoid|antman|ns=DF2012}}
 
+
{{creature/is humanoid|barn owl|ns=DF2012}}
 
</noinclude>
 
</noinclude>

Revision as of 21:00, 16 April 2013

Returns 1 if the given creature is a humanoid, 0 otherwise

Examples

0 1 0