This thread is a gathering point for snippets or tools to enhance or provide non-standard uses for infoboxes.
This thread is a gathering point for snippets or tools to enhance or provide non-standard uses for infoboxes.
You may want to mention use of LUA more explicitly, just so people know that's how things are getting done. Not all exotic or non-standard uses will use LUA.
Done!
In fact, let's make a Lua in Templates article. There's a lot to talk about there.
Looking forward to see some examples.
It is not related to this mediawiki module: https://www.mediawiki.org/wiki/Extension:Lua
Or is it?
It is not related to this mediawiki module: https://www.mediawiki.org/wiki/Extension:Lua
Or is it?
It is not related. Instead of mw:Extension:Lua, Wikia uses a modified version of mw:Extension:Scribunto.
Yes, they are mostly listed in the mw:Extension:Scribunto and Extension:Scribunto/Lua_reference_manual.
The most prominent limitations (that I can remember) include:
Note: The mw library was created by WIkimedia, so those limitations are not related to lua, but the implementation of the library itself.
Okay is sounds like a majority of Lua functionality is supported within those limits. Pretty impressive and a little scary. Then again, some wiki infoboxes are very scary.
Also, there are some functions missing from Wikia's version of Scribunto. Namely:
Looks like the line I added to dev.wikia's reference manual. But yes, those are missing, it is particularly annoying that frame:getTitle, and newchild are missing (esp. getCurrentFrame in console).
It is strange though, some of these seem to have been implemented before wikia forked their scribunto version. Maybe there were underlying differences in Mw 1.19 that made it difficult.
Anyway, we've gone slightly off-topic, although the content added here could potentially land in a page of some sort, so it isn't a particularly big problem.