Forum:Template limit needs increasing

From Uncyclopedia, the content-free encyclopedia

Jump to: navigation, search
Forums: Index > Ministry of Love > Template limit needs increasing
Note: This topic has been unedited for 3157 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

I should probably know how to do this, but I don't. Basically, the template limit on Mad_Libs/examples is running out somewhere halfway down the page. So, uh, someone who's more savvy than me, please increase it. Thanks. -- Sir Codeine K·H·P·B·M·N·C·U·Bu. · (Harangue) 19:58, 28 June 2008 (UTC)

This is a MediaWiki limit, so I don't think this is possible. From User talk:Dr. Skullthumper/Archive 5#Experiment:
“If you really want to know, there is a limit of 2,097,152 bytes of templates for both before and after they've been expanded, and a limit of 2,097,152 bytes for template arguments. And after that limit it stops processing the templates.”
~ Spang on Template processing
So, yeah, I don't think it's possible. Then again, I might be hopelessly wrong. ―― Sir Heerenveen, KUN [UotM RotM VFH FFS SK CM NS OME™] (talk), 28/06 20:02
FU Spang. --Sir Starnestommy Icons-flag-us (TalkContribsCUN) 22:03, Jun. 28, 2008
Yeah, the problem here is templates with too many options in their chooses. The main offenders on the page were {{name}} and {{given name}}, which someone had filled up with thousands of names, so they were 70kb and 180kb each. Include a few of those and you quickly hit the 2mb limit. I reverted them back to when they were much smaller and it seems to have fixed it for the most part, though it still runs out somewhere near the end.
It might be possible to use that many options in a template by splitting each on up into a few sub-templates, like {{name}} would have <choose><option>{{name/a-c}}</option><option>{{name/d-f}}</option>...</choose>. Not sure if that would fool it or not though, and would probably make the template load a bit slower. And now for no particular reason, the 10 largest templates. Spang talk 17:02, 29 Jun 2008
Or, we could replace some of the {{name}}s with /a-c, some with /d-f, etc.~~ Sir Ljlego, GUN  [talk] 17:08, 29 June 2008 (UTC)
Largest 10 templates: Largest 10 Mad Libs templates:
*Template:Cabbage (253596 bytes)
Go cabbage template! Woo! Sir Modusoperandi Boinc! 08:41, 30 June 2008 (UTC)
Personal tools