Author: cbm.wikipedia
Description:
a possible implementation of the new parser function
A recurring problem on enwiki is this: we have a central page that transcludes several other pages that are actively edited. If the subpages get too long, the main page hits the transclusion limits. It would be helpful if there was a parser function that would handle conditional transclusion, so that we could automatically switch some of these pages from being transcluded to being linked when they cross a size threshold.
If a different approach is desired, I'll work on switching the code to that. I only wrote this for the new parser, since I assume the old one will be deprecated. I tried to keep code duplication from the parser to a minimum, but the code depends on some internal behavior of the parser. I added a small amount of code to the new parser to avoid duplicating much more in the parser function code.
Version: unspecified
Severity: enhancement
attachment trans.diff ignored as obsolete