Hi,

I am struggling with Lua.

Is there a way to somehow maintain the state of the page building
between calls to #invoke? A kind of page-wide variable mechanism or
something like that?

Problem: I have what is basically a bugtracker where each bug is
described on a wiki page. For each state change of the bug (new,
confirmed, fixed, verified, closed) I add a call to a template to the
page text. The problem is, that the text generated by the template
depends on both the origin and the target state. Until now I used the
variables extension to keep track of the current state. Now I want to
convert to Lua. Apart from the fact that it is clearly not desirable
to mix the use of the variables extension and Lua, it is also
impossible: When Scribunto's #invoke is called, parser functions are
already parsed.

So, what is the solution?

Cheers,
Stephan

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to