Topic on Extension talk:Scribunto

AntiDependency.sh: Importing modules from Wikipedia

4
Nahiyan8 (talkcontribs)

As importing a module from Wikipedia's repository is cumbersome because you have to handle the many, many dependencies involved, I've made a script that should speed up the process up for anyone involved.

Thanks.

קיפודנחש (talkcontribs)

currently, "Export" has a recursion capability, so you can make sure, while exporting -any- page, that you also get any transcluded template, recursively (i think).

as far as i know, you even get all the modules used directly (i.e., with #invoke ).

IMO, it should be easy enough to teach "special:export" resolve the code dependencies also. whether this functionality is implemented in the extension or the core doesn't really matter: it's a reasonable expectation, if i mark "with template", that i'll also get all the modules, including their dependencies.

peace.

Nahiyan8 (talkcontribs)

Okay I hadn't seen that before, it looks like I wasted my time writing this then! Thank you!

Anomie (talkcontribs)

Code dependencies are already handled, as are "transclusions" via frame:preprocess, frame:expandTemplate, and even title:getContent().

This is mainly implemented so the update-transclusions-on-edit job can work right, but Special:Export's "Include templates" feature uses the same mechanism.

Reply to "AntiDependency.sh: Importing modules from Wikipedia"