Hey all,
I'm currently working on the new Capiunto MediaWiki extension[1], which adds infobox functionality to Scribunto (and the MediaWiki parser in general).
The Capiunto extension uses the HtmlBuilder Lua module[2] originally from enwiki to create the Infobox html. The HtmlBuilder provides general support for creating html in an easy and flexible way (maybe comparable to jQuery in JavaScript). Because of this and because it doesn't really fit into Capiunto we consider adding it directly to Scribunto. That way one could access its functionality directly as (maybe) mw.html.
Prior to adding it to Scribunto I will review, document and write unit tests for the module.
I hope you agree that this module is nice to have and that it fits into Scribunto best.
Cheers,
Marius
1 https://www.mediawiki.org/wiki/Extension:Capiunto 2 https://en.wikipedia.org/wiki/Module:HtmlBuilder
On Mon, Dec 2, 2013 at 1:41 PM, hoo hoo@online.de wrote:
That way one could access its functionality directly as (maybe) mw.html.
Especially since it's a pure-Lua module, I think it would work better if done along the same lines as the bit32 library currently in Scribunto.[1]
The only difference then between using Module:HtmlBuilder and using this new pure-lua module included in Scribunto would be that the script would say "HtmlBuilder = require( 'HtmlBuilder' )" instead of "HtmlBuilder = require( 'Module:HtmlBuilder' )".
[1]: https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#bit3...
I'd say that is a great idea !
No matter what template you are building, you probably need to output Html, so this should be suited for core inclusion. We probably should consult User:Toohool though, who originally wrote the module, with regard to how to license the code.
DJ
On Mon, Dec 2, 2013 at 8:23 PM, Brad Jorsch (Anomie) bjorsch@wikimedia.orgwrote:
On Mon, Dec 2, 2013 at 1:41 PM, hoo hoo@online.de wrote:
That way one could access its functionality directly as (maybe) mw.html.
Especially since it's a pure-Lua module, I think it would work better if done along the same lines as the bit32 library currently in Scribunto.[1]
The only difference then between using Module:HtmlBuilder and using this new pure-lua module included in Scribunto would be that the script would say "HtmlBuilder = require( 'HtmlBuilder' )" instead of "HtmlBuilder = require( 'Module:HtmlBuilder' )".
-- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hey TheDJ,
I'm one step ahead of you ;) I've already asked the original authors and got a positive reply from them (see https://github.com/wikimedia/mediawiki-extensions-Capiunto/blob/master/resou... )
Cheers,
Marius
On Tue, 2013-12-03 at 11:49 +0100, Derk-Jan Hartman wrote:
I'd say that is a great idea !
No matter what template you are building, you probably need to output Html, so this should be suited for core inclusion. We probably should consult User:Toohool though, who originally wrote the module, with regard to how to license the code.
DJ
On Mon, Dec 2, 2013 at 8:23 PM, Brad Jorsch (Anomie) bjorsch@wikimedia.orgwrote:
On Mon, Dec 2, 2013 at 1:41 PM, hoo hoo@online.de wrote:
That way one could access its functionality directly as (maybe) mw.html.
Especially since it's a pure-Lua module, I think it would work better if done along the same lines as the bit32 library currently in Scribunto.[1]
The only difference then between using Module:HtmlBuilder and using this new pure-lua module included in Scribunto would be that the script would say "HtmlBuilder = require( 'HtmlBuilder' )" instead of "HtmlBuilder = require( 'Module:HtmlBuilder' )".
-- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org