Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 18:17, 11 September 2025 by imported>Mudscape (Created page with "<includeonly>{{#invoke:BucketCount|main}}</includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.)

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