Template:Creatures with the mutation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#cargo_query:table=CreatureMutations,GeneralData|join on=CreatureMutations._pageName=GeneralData._pageName|where=Mutation = '{{{1|{{PAGENAME}}}}}' AND CreatureM...") |
(order by mutation level) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#invoke:CargoQuery|main | ||
|tables=CreatureMutations=CM,GeneralData=GD | |||
|join=CM._pageName=GD._pageName | |||
|fields={{favilink format args}}, CONCAT('(Level ', MutationLevel, ')')=outro | |||
|where=Mutation = '{{{1|{{PAGENAME}}}}}' AND CM._pageNamespace='0' | |||
|groupBy=CM._pageName | |||
|orderBy=CM.MutationLevel | |||
|template=favilink format | |||
|format = ul | |||
|default = {{#ifeq:{{{1|}}}|no default message||No creatures have this mutation by default.}}}}</includeonly><noinclude> | |||
Add to a mutation page to generate a bulleted list of creatures that have the mutation. | |||
If no creatures have the mutation, the statement "No creatures have this mutation by default." is printed instead. | |||
To suppress this message, you can add <code>no default message</code> as an argument to this template. | |||
== Usage == | |||
* <code><nowiki>{{creatures with the mutation}}</nowiki></code> | |||
* <code><nowiki>{{creatures with the mutation|no default message}}</nowiki></code> | |||
[[Category:Query Templates]]</noinclude> |
Latest revision as of 13:49, 23 January 2023
Add to a mutation page to generate a bulleted list of creatures that have the mutation.
If no creatures have the mutation, the statement "No creatures have this mutation by default." is printed instead.
To suppress this message, you can add no default message
as an argument to this template.
Usage
{{creatures with the mutation}}
{{creatures with the mutation|no default message}}