Last modified on 29 April 2010, at 10:47

Count pages

Revision as of 10:47, 29 April 2010 by Amalthea (Talk) (Create, strongly inspired by Davidgothberg's {{Number of archives}}.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

0

[view] [edit] [history] [purge] Documentation icon Template documentation

Usage

Meta template to count pages following a numerically incremental naming pattern, like archive pages. Can count up to 999, optimized to use at most 18 #ifexist checks, and somewhat optimized for typical page distributions (see Benford's law).

This template can be substituted.

Examples

  • {{Count pages|WP:Featured article candidates/Battle of Villers-Bocage/archive}} → 0
  • {{Count pages|User_talk:Amalthea/Archive }} → 0 Note the space after "Archive"!
  • {{Count pages|Pages that do not exist}} → 0
  • {{subst:Count pages|User_talk:Amalthea/Archive }} → 4
  • [[Wikipedia:Administrators' noticeboard/Archive{{Count pages|Wikipedia:Administrators' noticeboard/Archive}}]]Administrators' noticeboard/Archive0

See also