Page MenuHomePhabricator

Enable the MediaWiki Extension "Variables" for
Closed, DeclinedPublic


I request a new Extension for the wiki. For some large Templates it is necessary to have local variables. would fix this problem.

Event Timeline

Setting project to Wikimedia-Site-requests, as this request is about settings / configuration of a Wikimedia website.

For more information about how to request these kinds of changes, please see

This extension isn't deployed on the Wikimedia cluster.

Please review T113859 for a previous declined request.

If you explain what your real problems are for templating, we can suggest more solutions, including:

  • gadgets
  • custom development in core or as a new extension
  • Lua templates

Thanks for the fast response. I have two parameter (1 and 2) in a template which activate under special circumstances several features. the {{#if ... statement for checking this two parameter is quite long. So I want to calculate a new local variable 3 out of 1 and 2 and use this parameter in further {{#if:... occurences in the template. So I want to do exactly what the extension would do. But I'm happy to use another workaround. To put the complete Template in a Lua Modul is not very ideal.

As above, it's been previously declined, and there is no reason why it should be allowed this time; it looks similar to previous requests. Though, I don't think it's necessary to decline it yet.

Can you just port the problematic parts to Lua if porting the whole thing is problematic?

Noting, that Lua would be better future wise... Is there not an example on another wiki in Lua you could copy across?

Unfortunately closing this report as no further information has been provided.

@THE_IT: Please reopen this report (by changing its status) after you have provided the information asked for. Thanks!