Wikipedia:Post-expand include size
![]() | This is an essay. It contains the advice or opinions of one or more Wikipedia contributors. This page is not an encyclopedia article, nor is it one of Wikipedia's policies or guidelines, as it has not been thoroughly vetted by the community. Some essays represent widespread norms; others only represent minority viewpoints. |
This essay describes the
The post-expand include size is the sum of the lengths of the expanded wikitexts generated by templates, parser functions and variables. For years, the limit of the post-expand size has been 2,097,152
How to see the current post-expand size
Edit the page, then find "Parser profiling data: (
Calculating post-expand size
When a template returns some generated or displayed text, every character counts in the post-expand include size. Also, text returned by a #if
or #switch
parser function counts double; for example, the 4-letter string "ABCD" returned from a #ifeq
function would count as 8 letters (8 bytes). When displayed by a #if
also around a nested #switch
, each character counts triple, and so "ABCD" would count as 12 letters.
Each internal space counts as 1 byte per level
Each internal space adds one more at each level, where double-nested "AB CD" as 5 bytes would use 15 bytes in post-expand size, but triple-spaced "AB CD" (as 7 bytes) would use 21 bytes of post-expand size, when double-nested as the result of a #switch
inside an #if
function.
See also
- Wikipedia:Template limits § Post-expand include size