Roan Kattouw <roan.kattouw <at> gmail.com> writes:
We've also been thinking about integrating these
features with
template metadata. We were mostly thinking about things like parameter
types and descriptions, but collapsibility could be another attribute
of a template.
Ideally it should be a per-parameter attribute; for example, {{citation
needed|text=2+2=5|from=January 2009}} should be displayed as [citation
needed]2+2=5] for maximum readability.
The problem with the metadata approach is that while usually you can get away
with loading it in the background when the user clicks on the collapsed icon,
collapsibility metadata must be available for all templates as soon as the page
is loaded. That would mean dozens, sometimes hundreds of extra queries for a
single edit screen, or some sort of template metadata cache.