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
(test adding a category)
(+categories)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#if:{{tag|{{{1}}}|FLIER}}| - [[Flying]] - }}{{
+
{{#if:{{tag|{{{1}}}|FLIER}}| - [[Flying]]{{category|Flying}} - }}{{
#if:{{tag|{{{1}}}|MEGABEAST}}| - [[Megabeast]] - }}{{
+
#if:{{tag|{{{1}}}|MEGABEAST}}| - [[Megabeast]]{{category|Megabeasts}} - }}{{
#if:{{tag|{{{1}}}|SEMIMEGABEAST}}| - [[Semi-megabeast]] - }}{{
+
#if:{{tag|{{{1}}}|SEMIMEGABEAST}}| - [[Semi-megabeast]]{{category|Semi-megabeasts}} - }}{{
#if:{{tag|{{{1}}}|TRAPAVOID}}| - [[Trapavoid]] {{category|Trapavoid}}- }}{{
+
#if:{{tag|{{{1}}}|TRAPAVOID}}| - [[Trapavoid]]{{category|Trapavoid}} - }}{{
#if:{{tag|{{{1}}}|AQUATIC}}| - [[Aquatic]] - }}{{
+
#if:{{tag|{{{1}}}|AQUATIC}}| - [[Aquatic]]{{category|Aquatic}} - }}{{
#if:{{tag|{{{1}}}|AMPHIBIOUS}}| - [[Amphibious]] - }}{{
+
#if:{{tag|{{{1}}}|AMPHIBIOUS}}| - [[Amphibious]]{{category|Amphibious}} - }}{{
#if:{{tag|{{{1}}}|NOSTUN}}| - [[No Stun]] - }}{{
+
#if:{{tag|{{{1}}}|NOSTUN}}| - [[No Stun]]{{category|No stun}} - }}{{
#if:{{tag|{{{1}}}|NOPAIN}}| - [[No Pain]] - }}{{
+
#if:{{tag|{{{1}}}|NOPAIN}}| - [[No Pain]]{{category|No pain}} - }}{{
#if:{{tag|{{{1}}}|NOEXERT}}| - [[No Exert]] - }}{{
+
#if:{{tag|{{{1}}}|NOEXERT}}| - [[No Exert]]{{category|No exert}} - }}{{
#if:{{tag|{{{1}}}|CURIOUSBEAST_EATER}}| - [[Steals food]] - }}{{
+
#if:{{tag|{{{1}}}|CURIOUSBEAST_EATER}}| - [[Steals food]]{{category|Steals food}} - }}{{
#if:{{tag|{{{1}}}|CURIOUSBEAST_GUZZLER}}| - [[Steals drink]] - }}{{
+
#if:{{tag|{{{1}}}|CURIOUSBEAST_GUZZLER}}| - [[Steals drink]]{{category|Steals drink}} - }}{{
#if:{{tag|{{{1}}}|CURIOUSBEAST_ITEM}}| - [[Steals items]] - }}{{
+
#if:{{tag|{{{1}}}|CURIOUSBEAST_ITEM}}| - [[Steals items]]{{category|Steals items}} - }}{{
#ifexpr:{{#if:{{tag|{{{1}}}|FIREIMMUNE}}|1|0}} or {{#if:{{tag|{{{1}}}|FIREIMMUNE_SUPER}}|1|0}}| - [[Fire Immune]] - }}{{
+
#ifexpr:{{#if:{{tag|{{{1}}}|FIREIMMUNE}}|1|0}} or {{#if:{{tag|{{{1}}}|FIREIMMUNE_SUPER}}|1|0}}| - [[Fire Immune]]{{category|Fire immune}} - }}{{
#ifexpr:{{#if:{{tag|{{{1}}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{{1}}}|CAN_LEARN}}|1|0}}| - [[Learns]] - }}{{
+
#ifexpr:{{#if:{{tag|{{{1}}}|INTELLIGENT}}|1|0}} or {{#if:{{tag|{{{1}}}|CAN_LEARN}}|1|0}}| - [[Learns]]{{category|Learns}} - }}{{
#if:{{tag|{{{1}}}|FANCIFUL}}| - [[Fanciful]] - }}{{
+
#if:{{tag|{{{1}}}|FANCIFUL}}| - [[Fanciful]]{{category|Fanciful}} - }}{{
#if:{{tag|{{{1}}}|MOUNT}}| - [[Mount]] - }}{{
+
#if:{{tag|{{{1}}}|MOUNT}}| - [[Mount]]{{category|Mounts}} - }}{{
#if:{{tag|{{{1}}}|MOUNT_EXOTIC}}| - [[Exotic Mount]] - }}
+
#if:{{tag|{{{1}}}|MOUNT_EXOTIC}}| - [[Exotic Mount]]{{category|Exotic mounts}} - }}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
Usage: <nowiki>{{attrib_proc | creature raws}}</nowiki>
 
Usage: <nowiki>{{attrib_proc | creature raws}}</nowiki>

Revision as of 23:32, 19 December 2012

Usage: {{attrib_proc | creature raws}}

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