Board Thread:Watercooler/@comment-5590118-20150701035141/@comment-24473195-20151005095007

DarthKitty wrote:

Cqm wrote: If copying modules from wikipedia becomes a thing, I'd be inclined to copy documentation over from the point it was ported, but have a permalink back to the original, i.e. ?oldid=123456 so maintainers can tell what's changed. I'd do the same for the module code itself to be honest. That only works if the module was ported from another wiki. For example...


 * I ported Module:Inspect from kikito/inspect.lua on GitHub
 * Dessamator ported Module:Json from http://json.luaforge.net/

How do you think we should deal with modules like those two? Interestingly enough, both those modules have been implemented in scribunto's libraries by the WMF. So depending on Wikia those could be eventually be deprecated along with their documentation:


 * mw.dumpObject -> module:inspect


 * mw.text.jsonEncode -> Module:Json

Right now Lua is probably very low priority, so I do understand why they aren't likely to implement the json library. But there is probably little to no coding required to simply backport  mw.logObject or mw.dumpObject.

If the site with the documentation uses https, then we may need to document it here, and also if the original documentation is very complex. Those two modules you linked have simple documentation, but module:date for example is very long and complex.