Topic on Extension talk:Capiunto/Flow

Tutorial or instructions?

9
209.252.234.128 (talkcontribs)

I am a total newb at MediaWiki and am trying it out on a WIMP stack.
MediaWiki 1.23.8 on IIS 7.5
PHP 5.6.5 (cgi-fcgi)
MySQL 5.6.22-log
Lua 5.1.4

After much frustration trying to get the Wikipedia infoboxe templates to work I decided to look into Capiunto. Got the extension and enabled it, but I am at a total loss for how to use it. I see here that it involves Lua code, but where am I supposed to put this? How do I use it?

Hoo man (talkcontribs)

Hi :) I assume you got MediaWiki, Scribunto and Capiunto installed correctly. After you've done that, you can create Lua modules on your Wiki by creating Module:NameOfYourModule with the Lua code for your module. The Lua code there returns a table with methods which you can invoke from your Wiki pages. More detailed instructions for that can be found at the English Wikipedia (although that's a Wikipedia help page all information there will apply also to your local setup).

After you have a basic idea how to make these Lua modules work, you can experiment with the Capiunto methods outlined in the documentation.

If you have further questions, feel free to ask me (but poking me on meta or on my user talk page here might be necessary, as I barely check my watchlist over here).

DksDev064 (talkcontribs)

Thank you for the quick response! I think you left out the links, though?

I will get working on adding these and playing around with them. I am a pretty quick learner but this is all totally foreign to me as a lowly windows developer :/

Hoo man (talkcontribs)

Oh sorry, the link to that help page got lost... fixed.

DksDev064 (talkcontribs)

I'm still missing something here I think.
I added the code at the top of this page to a module page in my wiki, but when I added {{#invoke:testInfobox|create}} to a test page I got a script error saying Lua error in package.lua at line 80: module `capiunto' not found.

Hoo man (talkcontribs)

Please make sure you have the latest version of Capiunto, that was changed only recently (but will stay stable now, in preparation to deploying it to the Wikimedia Foundation sites)

DksDev064 (talkcontribs)

I am downloading from the extension page on mediawiki.org, which I assume is the latest version. I have 1.23, but tried the 1.24 version just in case and still get the same error.

On my version page says - in the column for version of Capiunto

Hoo man (talkcontribs)

You need to download the master version, which is said to be a development version, but should work with 1.24 just fine.

DksDev064 (talkcontribs)

Okay I had to upgrade to 1.24 for a number of reasons, and now I am back to working with Capiunto. Still getting a lua script error when trying to invoke the module, but now it is simply

Script error: The module returned a nil value. It is supposed to return an export table. No further details are available.

Reply to "Tutorial or instructions?"