Out of curiosity, are you aware of the Semantic MediaWiki extension? When used with templates, it seems to approximate the functionality you're talking about creating.
-Yaron On Thu, Nov 27, 2008 at 10:56 PM, Mark Clements (HappyDog) < gmane@kennel17.co.uk> wrote:
"Platonides" Platonides@gmail.com wrote in message news:ggn9tq$fuo$1@ger.gmane.org...
Mark Clements (HappyDog) wrote:
I don't do this on page view (in the <data> tag handler), as it is a relatively expensive operation to clear out the old entries and reparse the data tags, and the data will not have changed, so it is not necessary.
Why not rely on default MediaWiki caching to avoid it? Or check the page_touched field.
So instead I re-parse it whenever the data changes (save/undelete/etc.).
What about
<data> name={{username|Jim}} age=20 </data>
Are you reparsing when Template:username changes?
You're reimplementing too much MediaWiki behavior. There must be a better way :-)
I agree with that statement entirely... that's why I'm posting here! ;-)
- Mark Clements (HappyDog)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l