Toggle menu
14
236
69
27.4K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 00:41, 21 February 2025 by Prd (talk | contribs) (Created page with "{{doc sub}} {{Expensive}} Takes a list of unnamed parameters and returns a sortable table of the sizes of those pages, using the <nowiki>{{PAGESIZE}}</nowiki> magic word which invokes a parser function. It's fairly simple. Usage is like this: <pre>{{pagesize table|Cyrus the Great|Cambyses II|Bardiya|Darius the Great|Xerxes I}}</pre> {{pagesize table|Cyrus the Great|Cambyses II|Bardiya|Darius the Great|Xerxes I}} This temp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 0

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.