Template:Non-food butcherable from the corpse: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{#cargo_query:tables=CorpseTables=CT,Food=F|join on=CT.ObjectID=F.ObjectID|fields=CONCAT('{{(}}favilink id{{!}}',CT.ObjectID,'{{)}} <span style="color:#155352;">(',CT.Weight,'%)</span>')=Item|where=CT.MainObjectID='{{{1|UNSPECIFIED}}}' AND CT.ObjectID IS NOT NULL AND F.JoinKey IS NULL|default=<span style="color:#155352;">{{{3|N/A}}}</span>|delimiter={{{2|,}}}}}</includeonly><noinclude><!--
<includeonly>{{#cargo_query:tables=CorpseTables=CT,Food=F|join on=CT.ObjectID=F.ObjectID|fields=CONCAT('{{(}}favilink id{{!}}',CT.ObjectID,'{{)}} <span style="color:#155352;">(',CT.Chance,'%)</span>')=Item|where=CT.MainObjectID='{{{1|UNSPECIFIED}}}' AND CT.ObjectID IS NOT NULL AND F.JoinKey IS NULL|default=<span style="color:#155352;">{{{3|N/A}}}</span>|delimiter={{{2|,}}}}}</includeonly><noinclude><!--





Latest revision as of 15:06, 3 October 2021

Shows all butcherable non-food objects from the specified corpse ID. By default, this is shown in a comma-delimited list, but you can also specify a delimiter as the second parameter to override the comma. The third parameter can replace the "N/A" that appears if there are no results.

Examples:

{{non-food butcherable from the corpse|Eyeless Crab Corpse|<br>}}

eyeless crab shell (5%)

{{non-food butcherable from the corpse|bear corpse|<br>}}

N/A

{{non-food butcherable from the corpse|Quartz Baboon Corpse|<br>}}

quartzfur cloak (33.3%)
quartzfur gloves (33.3%)
quartzfur hat (33.3%)