Template:Non-unique creatures with the corpse: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (exclude pets)
No edit summary
 
Line 1: Line 1:
<includeonly>{{#cargo_query:tables=GeneralData=GD,Characters=CH|join on=GD.JoinKey=CH.JoinKey|fields=CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}} <span style="color:#155352;">(',CH.CorpseChance,'%)</span>')=Creature|where=GD.Categories<>'Unique Characters' AND GD.Categories<>'Pets' AND CH.Corpse='{{{1|UNSPECIFIED}}}'|default=|delimiter={{{2|,}}}|{{#ifeq:{{{3|}}}|no html|no html}}}}</includeonly><noinclude><!--
<includeonly>{{#cargo_query:tables=GeneralData=GD,Characters=CH|join on=GD.JoinKey=CH.JoinKey|fields=CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}} <span style="color:#155352;">(',CH.CorpseChance,'%)</span>')=Creature|where=GD.Categories<>'Unique Characters' AND GD.Categories<>'Pets' AND CH.Corpse='{{{1|UNSPECIFIED}}}'|default=<span style="color:#155352;">{{{3|N/A}}}</span>|delimiter={{{2|,}}}}}</includeonly><noinclude><!--




-->Shows all creatures with the specified corpse ID, excluding any creatures with the 'Unique Characters' category set in <code>GeneralData.Categories</code>. 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.
-->Shows all creatures with the specified corpse ID, excluding any creatures with the 'Unique Characters' category set in <code>GeneralData.Categories</code>. 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.


Example:
Example:

Latest revision as of 02:11, 2 October 2021

Shows all creatures with the specified corpse ID, excluding any creatures with the 'Unique Characters' category set in GeneralData.Categories. 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.

Example:

{{non-unique creatures with the corpse|bear corpse|<br>}}

bear cherub (50%)
bear (50%)
chairbear (100%)
mechanical bear cherub (50%)