Template:DW/BucketCount
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:DW/BucketCount/doc
The above text is transcluded from Template:DW/BucketCount/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/BucketCount/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/BucketCount/doc. (View all subpages of this page.)
A replacement for {{#ask:|format=count}}
This module returns the number of results for a query.
Usage
{{BucketCount|bucket_name|field|restriction=value}}
Parameters
(1)
The name of the Bucket to pull data from.
(2)
The name of the field to pull data from.
All named parameters
All named parameters are used as a where clause in the Bucket query.
Parameters beginning with ! are wrapped in a bucket.Not()
Example
{{BucketCount|recipe|uses_material|uses_material=Clean Water}}
Result: Template:BucketCount