Page MenuHomePhabricator

Use AJAX when expanding templates (i.e. clicking on "OK" at [[Special:ExpandTemplates]])
Open, LowPublicFeature

Description

It should be possible to make tests at [[Special:ExpandTemplates]] without reloading the whole page after every small change in the code.

There is already an API for that, except for the option "Suppress <nowiki> tags in result", it seems:
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=expandtemplates&title=Test&text=%7B%7BU%7CExample%7D%7D


Version: 1.23.0
Severity: enhancement

Details

Reference
bz54687

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:20 AM
bzimport set Reference to bz54687.
bzimport added a subscriber: Unknown Object (MLST).

What on earth is "Suppress <nowiki> tags in result" for exactly, anyway?

Ok, so this option appears to have just come out of nowhere in 2009; there's no bugzilla reference or explanation for the feature on the commit: https://git.wikimedia.org/commitdiff/mediawiki%2Fextensions%2FExpandTemplates.git/49697f70851757ef31a2221c84d95f4e9e217e2f

I'm not sure it's useful or needs to be kept, but if it is desirable, it appears to be implemented as a post-processing regular expression and could be trivially done in JavaScript along with an AJAX load from the API.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: wikibugs-l-list.