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

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(change to use matching)
Line 1: Line 1:
<includeonly>{{#switch:{{#df_tagentry:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY|0|1|NOT_HUMANOID}}|HUMANOID|HUMANOID_SIMPLE|HUMANOID_2HEAD|HUMANOID_4ARMS=1|#default=0}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{#rsplit:{{#df_tagentry:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY|0|1|NOT_HUMANOID}}|_|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===

Revision as of 00:26, 16 April 2013

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

Examples

0 1