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
(THIS is what you wanted to do)
(trying to fix links)
 
(43 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{
{{#if:{{tag|{{{1}}}|FLIER}}| - {{Category|Flying}} - }}{{
+
#if:{{tag|{{{1}}}|FLIER}}|{{attrib format|{{Catlink|Flying}}{{Category|Flying}}}}}}{{
#if:{{tag|{{{1}}}|MEGABEAST}}| - {{Category|Megabeast}} - }}{{
+
#if:{{tag|{{{1}}}|MEGABEAST}}|{{attrib format|{{Catlink|Megabeasts|Megabeast}}{{Category|Megabeasts}}}}}}{{
#if:{{tag|{{{1}}}|SEMIMEGABEAST}}| - {{Category|Semi-megabeast}} - }}{{
+
#if:{{tag|{{{1}}}|SEMIMEGABEAST}}|{{attrib format|{{Catlink|Semi-megabeasts|Semi-megabeast}}{{Category|Semi-megabeasts}}}}}}{{
#if:{{tag|{{{1}}}|TRAPAVOID}}| - {{Category|Trapavoid}} - }}{{
+
#if:{{tag|{{{1}}}|TRAPAVOID}}|{{attrib format|{{Catlink|Trapavoid}}{{Category|Trapavoid}}}}}}{{
#if:{{tag|{{{1}}}|AQUATIC}}| - {{Category|Aquatic}} - }}{{
+
#if:{{tag|{{{1}}}|MISCHIEVOUS}}{{tag|{{{1}}}|MISCHIEVIOUS}}|{{attrib format|{{Catlink|Mischievous}}{{Category|Mischievous}}}}}}{{
#if:{{tag|{{{1}}}|AMPHIBIOUS}}| - {{Category|Amphibious}} - }}{{
+
#if:{{tag|{{{1}}}|AQUATIC}}|{{attrib format|{{Catlink|Aquatic}}{{Category|Aquatic}}}}}}{{
#if:{{tag|{{{1}}}|NOSTUN}}| - {{Category|No Stun}} - }}{{
+
#if:{{tag|{{{1}}}|AMPHIBIOUS}}|{{attrib format|{{Catlink|Amphibious}}{{Category|Amphibious}}}}}}{{
#if:{{tag|{{{1}}}|NOPAIN}}| - {{Category|No Pain}} - }}{{
+
#ifexpr:{{#ifeq:{{NAMESPACE}}|23a|1|0}} or {{#ifeq:{{NAMESPACE}}|40d|1|0}}|{{
#if:{{tag|{{{1}}}|NOEXERT}}| - {{Category|No Exert}} - }}{{
+
  #if:{{tag|{{{1}}}|NO_GENDER}}|{{attrib format|{{Catlink|Genderless}}{{Category|Genderless}}}}}}{{
#if:{{tag|{{{1}}}|CURIOUSBEAST_EATER}}| - {{Category|Steals food}} - }}{{
+
  #if:{{tag|{{{1}}}|MALE}}|{{attrib format|Always Male}}}}{{
#if:{{tag|{{{1}}}|CURIOUSBEAST_GUZZLER}}| - {{Category|Steals drink}} - }}{{
+
  #if:{{tag|{{{1}}}|FEMALE}}|{{attrib format|Always Female}}}}|{{
#if:{{tag|{{{1}}}|CURIOUSBEAST_ITEM}}| - {{Category|Steals items}} - }}{{
+
  #if:{{tag|{{{1}}}|MALE}}{{tag|{{{1}}}|FEMALE}}||{{attrib format|{{Catlink|Genderless}}{{Category|Genderless}}}}}}}}{{
#ifexpr:{{#if:{{tag|{{{1}}}|FIREIMMUNE}}|1|0}} or {{#if:{{tag|{{{1}}}|FIREIMMUNE_SUPER}}|1|0}}| - {{Category|Fire Immune}} - }}{{
+
#if:{{tag|{{{1}}}|NOSTUN}}|{{attrib format|{{Catlink|No Stun}}{{Category|No Stun}}}}}}{{
#ifexpr:{{#if:{{tag|{{{1}}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{{1}}}|CAN_LEARN}}|1|0}}| - {{Category|Learns}} - }}{{
+
#if:{{tag|{{{1}}}|NOPAIN}}|{{attrib format|{{Catlink|No Pain}}{{Category|No Pain}}}}}}{{
#if:{{tag|{{{1}}}|FANCIFUL}}| - {{Category|Fanciful}} - }}{{
+
#if:{{tag|{{{1}}}|NOEXERT}}|{{attrib format|{{Catlink|No Exert}}{{Category|No Exert}}}}}}{{
#if:{{tag|{{{1}}}|MOUNT}}| - {{Category|Mount}} - }}{{
+
#if:{{tag|{{{1}}}|CURIOUSBEAST_EATER}}|{{attrib format|{{Catlink|Steals food}}{{Category|Steals food}}}}}}{{
#if:{{tag|{{{1}}}|MOUNT_EXOTIC}}| - {{Category|Exotic Mount}} - }}
+
#if:{{tag|{{{1}}}|CURIOUSBEAST_GUZZLER}}|{{attrib format|{{Catlink|Steals drink}}{{Category|Steals drink}}}}}}{{
</includeonly><noinclude>
+
#if:{{tag|{{{1}}}|CURIOUSBEAST_ITEM}}|{{attrib format|{{Catlink|Steals items}}{{Category|Steals items}}}}}}{{
Usage: <nowiki>{{attrib_proc | creature raws}}</nowiki>
+
#ifexpr:{{#if:{{tag|{{{1}}}|FIREIMMUNE}}|1|0}} or {{#if:{{tag|{{{1}}}|FIREIMMUNE_SUPER}}|1|0}}|{{attrib format|{{Catlink|Fire immune}}{{Category|Fire immune}}}}}}{{
 
+
#ifexpr:{{#if:{{tag|{{{1}}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{{1}}}|CAN_LEARN}}|1|0}}|{{attrib format|{{Catlink|Learns}}{{Category|Learns}}}}}}{{
Returns a formatted list of "interesting" attribute tags for the given raw creature data.
+
#ifexpr:{{#if:{{tag|{{{1}}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{{1}}}|TRAINABLE_WAR}}|1|0}}|{{attrib format|{{Catlink|War animals}}{{Category|War animals}}}}}}{{
 
+
#ifexpr:{{#if:{{tag|{{{1}}}|TRAINABLE}}|1|0}} or {{#if:{{tag|{{{1}}}|TRAINABLE_HUNTING}}|1|0}}|{{attrib format|{{Catlink|Hunting animals}}{{Category|Hunting animals}}}}}}{{
[[Category:Templates]]
+
#ifexpr:{{#if:{{tag|{{{1}}}|GRAZER}}|1|0}} or {{#if:{{tag|{{{1}}}|STANDARD_GRAZER}}|1|0}}|{{attrib format|{{Catlink|Grazer}}{{Category|Grazer}}}}}}{{
</noinclude>
+
#if:{{tag|{{{1}}}|FANCIFUL}}|{{attrib format|{{Catlink|Fanciful}}{{Category|Fanciful}}}}}}{{
 +
#if:{{tag|{{{1}}}|MOUNT}}|{{attrib format|{{Catlink|Mount}}{{Category|Mount}}}}}}{{
 +
#if:{{tag|{{{1}}}|MOUNT_EXOTIC}}|{{attrib format|{{Catlink|Exotic mount}}{{Category|Exotic mount}}}}}}{{
 +
#if:{{tag|{{{1}}}|USE_MATERIAL_TEMPLATE|1|SHELL}}{{tag|{{{1}}}|HASSHELL}}|{{attrib format|{{Catlink|Shell}}{{Category|Shell}}}}}}{{
 +
#if:{{tag|{{{1}}}|USE_MATERIAL_TEMPLATE|1|MILK}}{{tag|{{{1}}}|MILKABLE}}|{{attrib format|{{Catlink|Milkable}}{{Category|Milkable}}}}}}{{
 +
#if:{{tag|{{{1}}}|SHEARABLE_TISSUE_LAYER}}{{tag|{{{1}}}|YARN}}|{{attrib format|{{Catlink|Shearable}}{{Category|Shearable}}}}}}{{
 +
#if:{{tag|{{{1}}}|USE_MATERIAL_TEMPLATE|1|CHITIN}}|{{attrib format|{{Catlink|Horn}}{{Category|Chitin}}}}}}{{
 +
#if:{{tag|{{{1}}}|USE_MATERIAL_TEMPLATE|1|HOOF}}|{{attrib format|{{Catlink|Horn}}{{Category|Hoof}}}}}}{{
 +
#if:{{tag|{{{1}}}|USE_MATERIAL_TEMPLATE|1|HORN}}|{{attrib format|{{Catlink|Horn}}{{Category|Horn}}}}}}{{
 +
#if:{{tag|{{{1}}}|WEBBER}}|{{attrib format|[[Web]]s{{Category|Webs}}}}}}{{
 +
#if:{{tag|{{{1}}}|SYNDROME}}|{{attrib format|[[Syndrome]]{{Category|Syndrome}}}}}}{{
 +
#if:{{tag|{{{1}}}|BEACH_FREQUENCY}}|{{attrib format|[[Beaching]]{{Category|Beaching}}}}}}{{
 +
#if:{{tag|{{{1}}}|LAYS_EGGS}}|{{attrib format|{{Catlink|Egglaying}}{{Category|Egglaying}}}}}}{{
 +
#ifeq:{{creature/is humanoid|{{{2}}}}}|1|{{attrib format|{{catlink|Humanoids|Humanoid}}{{category|Humanoids}}}}}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 07:37, 28 October 2024