Forum:Template limit needs increasing
Jump to navigation
Jump to search
Forums: Index > Ministry of Love > Template limit needs increasing
Note: This topic has been unedited for 6018 days. It is considered archived - the discussion is over.
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.”
- 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. -- 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
Largest 10 templates: | Largest 10 Mad Libs templates: |
*Template:Cabbage (193862 bytes)
|
|
- Go cabbage template! Woo! Sir Modusoperandi Boinc! 08:41, 30 June 2008 (UTC)