Magnus Manske schrieb:
Whould we add tables to the database that store the values of variables passed to templates for each page? Like:
template_used : ID of page, ID of template page, unique ID template_values : ID of template_used, variable name, value name
Very interesting! I would also like to use user input in a wiki of mine for some kind of database retrieval and thought about a similar approach this week. As the number of templates is relatively small and doesn't change structure often I thought about storing the template values in a table for each template, but your approach of using a generalized table for all fields of all templates seems to be better as it handles the changes in template structure more easily.
I would implement the database side, if there are no concernes about the database getting Yet More Bloated, and MySQL Even More Sluggish (both (TM) MediaWiki;-).
I'd be happy to help you by reviewing, coding or whatever. Please notify me even if the whole idea gets discarded as I would then start coding something like that myself.
Ciao, Michael.