I have some interest in adding metadata to templates with some new
template editing features I'm hoping to work on (
http://www.mediawiki.org/wiki/User:Jesse_Groppi/GSOC_2010 ). I see what
you're saying about the extra queries involved, and since I would like
to add even more, I'm curious to hear how much trouble these few hundred
extra queries would cause the average user?
On 03/04/2010 15:50, Tisza Gergő wrote:
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.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l