Template:List of killings by law enforcement officers in the United States Annual Total/doc

From Wikipedia, the free encyclopedia

Usage[edit]

This provides a total of the number of rows in the List of killings by law enforcement officers in the United States for a year that has up to 12 monthly articles (i.e. those since and including 2012).

It takes one required parameter, the year a total is sought for. If no valid parameter is given, it will return 0. If a year does not have articles for all the months (e.g. it is the current year, and not December) 0s will be used for the missing months.

Examples[edit]

{{List of killings by law enforcement officers in the United States Annual Total|year=2024}} produces:

526

{{List of killings by law enforcement officers in the United States Annual Total|year=2014}} produces:

638

{{List of killings by law enforcement officers in the United States Annual Total|year=2011}} (2011 doesn't have monthly lists) produces:

180

{{List of killings by law enforcement officers in the United States Annual Total|year=3500}} (far into the future, those lists doesn't exist) produces:

0

See also[edit]