mediawiki-extensions-Scribunto/engines/LuaCommon/lualib
Brad Jorsch adb7b5f939 Make pairs() work with various library objects
Users are reporting disappointment that using pairs on title objects
doesn't let them see the fields available. It's easy enough to add a
__pairs metamethod to allow pairs to work on title objects, so let's do
that.

The same can be done for mw.uri objects.

For mw.message objects, we can easily enough change the implementation
to be like mw.language objects, which doesn't have this problem.

For mw.site.stats, we may as well just remove the load-on-demand feature
since it will be demanded as soon as the environment is cloned for the
first module.

Change-Id: Ie5a3b5684b2bb6c090f9994baa03977687688929
2013-04-02 17:23:42 +00:00
..
luabit Clean up lualibs 2013-02-28 18:39:16 -08:00
ustring Fix ustring errors 2013-03-05 12:22:15 -05:00
bit32.lua Add requirable bit32 library 2013-03-05 01:36:17 +00:00
libraryUtil.lua Add text module 2013-03-20 10:10:15 -04:00
mw.language.lua Add language functions 2013-03-04 21:14:34 -05:00
mw.lua (bug 41769) Add frame:callParserFunction() and frame::extensionTag() 2013-03-18 13:46:26 -04:00
mw.message.lua Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
mw.site.lua Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
mw.text.lua Add text module 2013-03-20 10:10:15 -04:00
mw.title.lua Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
mw.uri.lua Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
mw.ustring.lua Fix mw.ustring.gmatch and patterns with '^' 2013-02-14 14:25:55 -05:00
package.lua Fix package.loaded and other cleanups 2013-01-30 17:24:09 +00:00