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

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (tests)
m (orthodontics)
Line 1: Line 1:
{{#switch:{{#rsplit|{{#df_tagvalue:{{{{{1|{{{ns|{{NAMESPACE}}}}}:{{PAGENAME}}}}}/raw}}|BODY||NOT_HUMANOID}}|1}}|HUMANOID|HUMANOID_SIMPLE=1|#default=0}} (page={{{ns|{{NAMESPACE}}}}}:{{PAGENAME}}}}}/raw)<noinclude>
+
{{#switch:{{#rsplit|{{#df_tagvalue:{{{{{1|{{{ns|{{NAMESPACE}}}}}:{{PAGENAME}}/raw}}|BODY||NOT_HUMANOID}}|1}}|HUMANOID|HUMANOID_SIMPLE=1|#default=0}} (page={{{ns|{{NAMESPACE}}}}}:{{PAGENAME}}/raw)<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 20:10, 15 April 2013

{{#switch:{{#rsplit|not found|HUMANOID|HUMANOID_SIMPLE=1|#default=0}} (page=Template:Creature/is humanoid/raw) Returns 1 if the given creature is a humanoid, 0 otherwise

Examples

{{#switch:{{#rsplit|not found|HUMANOID|HUMANOID_SIMPLE=1|#default=0}} (page=Template:Creature/is humanoid/raw) {{#switch:{{#rsplit|not found|HUMANOID|HUMANOID_SIMPLE=1|#default=0}} (page=DF2012:Creature/is humanoid/raw)