On 1/22/07, Rob Church <robchur(a)gmail.com> wrote:
On 22/01/07, Magnus Manske
<magnusmanske(a)googlemail.com> wrote:
I once posted the idea (which, of course, was
ignored;-) to store the
names and values of variables passed to templates from articles in a
SQL table. If you write {{xyz|a=1|b=2}} in article BLA and save, it
I had something along the same lines checked into an experimental
branch; the user would insert metadata tags, and these would be dealt
with in a similar manner to link updates:
[[Metadata:People|birth=1980]] etc.
It works on a "subject", "name" and "value" triplet concept
- subjects
group similar pieces of data, the name and value are self-evident.
This was adapted from an idea Zocky had on IRC, which I hastily
implemented.
It's in the repo, but incomplete - likely missing the upgraders and
table definitions, and there's no interface for directly manipulating
data outside of pages, nor any way of querying it at present.
Yes, but that would require users to go our X million articles and
retag them. Granted, voluntary user slave labor is cheap ;-) but I
wanted to use the already existing data from template inclusions.
It could even be limited to "first-level inclusion" - only templates
that are included directly from the page. Templates in templates would
only have variants of the originally passed variables, so that would
only waste DB space. Also, templates without variables can be ignored
- these can be checked through templatelinks just as well.
Magnus