ARK: Survival Evolved Wiki
m (1 revisión importada: Import Cargo templates to replace SMW)
Cadaei (discusión | contribuciones)
(removed additionalQuery-parameter. all queries should be in this template to reduce issues. now has a parameter for returning unreleaseds.)
 
Línea 1: Línea 1:
 
<includeonly>{{#cargo_query:tables=Creatures
 
<includeonly>{{#cargo_query:tables=Creatures
|where= 1 {{{additionalQuery|}}}
+
|where= 1 {{#ifeq:{{lc:{{{1|}}}}}|unreleased|AND Released="Unreleased"}}
 
|fields=COUNT(*)
 
|fields=COUNT(*)
 
|no html
 
|no html
}}</includeonly><noinclude>Displays the number of creatures. Additional specifications can be given with the parameter <code>additionalQuery</code>, which has to start with <code>AND</code>
+
}}</includeonly><noinclude>Displays the number of creatures. The first parameter can be used for variations, possible values are
  +
* unreleased: will return the number of unreleased creatures
 
==Example==
 
==Example==
<nowiki>{{CreatureCount|additionalQuery=AND Released="Unreleased"}}</nowiki>
+
<nowiki>{{CreatureCount|unreleased}}</nowiki>
{{CreatureCount|additionalQuery=AND Released="Unreleased"}}
+
{{CreatureCount|unreleased}}
 
[[Category:Cargo Query Templates]]</noinclude>
 
[[Category:Cargo Query Templates]]</noinclude>

Revisión actual del 20:45 16 feb 2018

Displays the number of creatures. The first parameter can be used for variations, possible values are

  • unreleased: will return the number of unreleased creatures

Example

{{CreatureCount|unreleased}}

0