Permanently protected template

Template:Progress box

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]
Articles with weasel words
(refresh)
Subtotals
October 2007 1
December 2007 7
February 2008 2
March 2008 2
April 2008 1
May 2008 3
June 2008 2
July 2008 6
August 2008 1
October 2008 4
November 2008 5
December 2008 5
January 2009 8
February 2009 5
March 2009 74
April 2009 4
May 2009 3
June 2009 7
July 2009 5
August 2009 13
September 2009 7
October 2009 4
November 2009 6
December 2009 4
January 2010 10
February 2010 8
March 2010 8
April 2010 13
May 2010 6
June 2010 7
July 2010 9
August 2010 5
September 2010 10
October 2010 2
November 2010 7
December 2010 8
January 2011 8
February 2011 7
March 2011 8
April 2011 8
May 2011 7
June 2011 1
July 2011 3
August 2011 10
September 2011 3
October 2011 5
November 2011 2
December 2011 6
January 2012 4
February 2012 7
March 2012 6
April 2012 7
May 2012 7
June 2012 10
July 2012 9
August 2012 10
September 2012 8
October 2012 18
November 2012 4
December 2012 7
January 2013 11
February 2013 7
March 2013 6
April 2013 5
May 2013 8
June 2013 8
July 2013 5
August 2013 10
September 2013 6
October 2013 8
November 2013 5
December 2013 7
January 2014 10
February 2014 8
March 2014 2
April 2014 6
May 2014 6
June 2014 8
July 2014 8
August 2014 6
September 2014 6
October 2014 5
November 2014 6
December 2014 9
January 2015 13
February 2015 4
March 2015 10
April 2015 10
May 2015 7
June 2015 5
July 2015 11
August 2015 8
September 2015 12
October 2015 15
November 2015 8
December 2015 9
January 2016 10
February 2016 6
March 2016 7
April 2016 14
May 2016 7
June 2016 4
July 2016 6
August 2016 6
September 2016 4
October 2016 4
November 2016 9
December 2016 5
January 2017 11
February 2017 9
March 2017 11
April 2017 16
May 2017 8
June 2017 6
July 2017 7
August 2017 11
September 2017 14
October 2017 14
November 2017 13
December 2017 12
January 2018 15
February 2018 12
March 2018 11
April 2018 9
May 2018 12
Undated articles 0
All articles 988

Usage

{{Progress box|Parent (undated) cat|Dated cat prefix if different from parameter 1|total cat name if not "All" followed by parameter 1}}

In the ideal configuration the template is extremely easy to use:

For example:

{{Progress box|Articles with weasel words}}

This is the complete set of parameters:

{{progress box
| 1 = 
| 2 = 
| 3 = 
| count = 
| float = 
| from = 
| suffix = 
}}

Floating

It is often useful to float the intermediate templates (such as {{Weasel progress}}) right with the following code:

{{Progress box|Articles with weasel words|float=right}}

or better:

{{Progress box|Articles with weasel words|float={{{float|right}}}}}

to provide flexibility to the calling template.

Counting files and subcategories

If the template is supposed to be counting something other than regular pages, then you need to use the |count= parameter. If you want to count files, use |count=files, and if you want to count subcategories, use |count=subcats. To find out what you are supposed to be counting, go to the base category, click through to a dated maintenance category, and look at the type of pages that are included.

Examples:

It is also possible to count the total number of pages, files, and subcategories by using |count=all. This is discouraged, however, as it can lead to inaccurate counts if, for example, a user manually adds a subcategory to a dated category for counting regular pages.

Parameters

  • 1 - the base (undated) category. (required)
  • 2 - the base of the dated categories, if different from the name specified in |1=. (optional)
  • 3 - the "all" category, if it exists and uses a non-standard name. If not specified, the template will attempt to guess the name. (optional)
  • count - what kind of pages to count. Can be "pages" (the default), "files", "subcats" or "all". (optional)
  • float - the CSS "float" property for the template. This can be "left", "right", "both", or "none". The default value is "left". (optional)
  • from - for dated categories with names like "Articles for cleanup from 05 2018", this parameter can set a custom value to use instead of "from". (optional)
  • suffix - a suffix for dated categories. (optional)

Technical details

The template lists all non-empty categories since the date defined in Module:Progress box/config. Once all maintenance categories on Wikipedia for this date and earlier have been cleaned out, the value should be changed to the new earliest date for which articles exist. This is to minimise the number of expensive parser function calls needed to generate the template output.