Template:DW/BucketCount/doc
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [create]
- This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
This template currently doesn't have any documentation; you can create it if you know how the template is used. (What is this?)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/BucketCount/doc/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/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