On Wed, May 23, 2012 at 9:33 AM, Gabriel Wicke <wi...@wikidev.net> wrote: > I don't really like this global variable business at all. Much of the > ugliness above disappears when the id is mandatory: > > {{#data:{{id}}|color}} > > or (if you prefer): > > {{#data:color|{{id}}}} > > If it is missing, simply display an error and let the user fix it. > > Cache invalidation can be precise by usage (not necessarily the entire > page) and correctly handles multiple data items per article. The system > is also directly compatible with Lua and Parsoid.
...and inside of a Lua module, the ugly things could just be stored in a local variable, coudn't they? _______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l