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:Attrib proc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (check for animal_person alternatively)
m (fix humanoids)
Line 20: Line 20:
 
#if:{{tag|{{{1}}}|SYNDROME}}|{{attrib format|[[Syndrome]]{{Category|Syndrome}}}}}}{{
 
#if:{{tag|{{{1}}}|SYNDROME}}|{{attrib format|[[Syndrome]]{{Category|Syndrome}}}}}}{{
 
#if:{{tag|{{{1}}}|BEACH_FREQUENCY}}|{{attrib format|[[Beaching]]{{Category|Beaching}}}}}}{{
 
#if:{{tag|{{{1}}}|BEACH_FREQUENCY}}|{{attrib format|[[Beaching]]{{Category|Beaching}}}}}}{{
#switch:{{tagentry|{{{1}}}|BODY|0|1|NO}}|HUMANOID|HUMANOID_SIMPLE|HUMANOID_4ARMS={{attrib format|{{catlink|Humanoids}}{{category|Humanoids}}}}|
+
#ifeq:{{creature/is humanoid|{{{2}}}}}|1|{{catlink|Humanoids|Humanoid}}{{category:Humanoids}}}}
#default={{#ifeq:{{tagentry|{{{1}}}|APPLY_CREATURE_VARIATION|0|1|NONE}}|ANIMAL_PERSON|{{attrib format|{{catlink|Humanoids}}{{category|Humanoids}}}}}}
 
}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
  

Revision as of 22:31, 15 April 2013


Usage: {{attrib_proc | creature raws}}

Returns a formatted list of "interesting" attribute tags for the given raw creature data.

After making any edits that change the way categorization works in this template, you must also make a null edit to template:Creaturelookup/0 in order to propagate the changes correctly.