Template:Pagesize table
Appearance
Title | Size |
---|---|
[[:{{{1}}}]] | 0 |
![]() | Due to a server limit of 500 "expensive parser function" calls (e.g. #ifexist:, PAGESIZE:, and PAGESINCATEGORY:), this template will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised in Category:Pages with too many expensive parser function calls. (further information) |
Takes a list of unnamed parameters and returns a sortable table of the sizes of those pages, using the {{PAGESIZE}} magic word which invokes a parser function. It's fairly simple.
Usage is like this:
{{pagesize table|Cyrus the Great|Cambyses II|Bardiya|Darius the Great|Xerxes I}}
Title | Size |
---|---|
Cyrus the Great | 115,582 |
Cambyses II | 26,939 |
Bardiya | 22,448 |
Darius the Great | 67,024 |
Xerxes I | 48,895 |
This template is coded to work with up to a thousand pages, although if you really wanted to, you could extend it further. In practice, however, the rendering engine is unlikely to let you go beyond 250.
Caution should be used with this template, since parser functions like PAGESIZE are relatively WP:EXPENSIVE. If you're going to be putting hundreds of pages in this template, for example, it's probably best to make sure that the page you're doing it on isn't getting transcluded in a bunch of other places.