Template:BucketCount
Jump to navigation
Jump to search
Template documentation
This documentation is transcluded from Template:BucketCount/doc. [edit] [history] [purge]
Template:BucketCount invokes function main in Module:BucketCount using Lua.
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|transcript|page_name|npcs=Wise Old Man|!page_name=Wise Old Man}}
Result: 20