Templat:Progress box

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Loncat ke navigasi Loncat ke pencarian
[lihat] [sunting] [versi terdahulu] [hapus singgahan] Ikon dokumentasi Dokumentasi templat
Perapian perkenalan Wikipedia
(segarkan)
Subtotal
November 20091
Januari 20103
Maret 20101
Mei 20102
Juni 20101
Juli 20101
November 20101
Januari 20112
Maret 20111
Juni 20111
Oktober 20113
November 20111
Januari 20121
Mei 20122
Oktober 20123
Maret 20131
November 20131
Desember 20131
Juni 20162
Agustus 20171
September 20182
April 20191
Juli 20191
November 20191
Maret 20201
Juni 20201
Juli 20201
September 20201
Februari 20211
Mei 20211
Artikel tak bertanggal151
Semua artikel192

Penggunaan[sunting sumber]

{{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[sunting sumber]

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[sunting sumber]

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[sunting sumber]

  • 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 06 2021", this parameter can set a custom value to use instead of "from". (optional)
  • suffix - a suffix for dated categories. (optional)

Technical details[sunting sumber]

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.

Templat:Progress templates