Is there any project to build a shared library of Lua routines for
wikisource projects? I feel that Lua could give to source projects an
excellent opportunity to align templates, formats and metadata structures.
In the meantime, I'm browsing fr.source :-)
Alex
2013/5/22 Klein,Max <kleinm(a)oclc.org>
------------------------------
*From:* Thomas PT
*Sent:* Tuesday, May 21, 2013 12:28 PM
*To:* discussion list for Wikisource, the free library; Klein,Max
*Subject:* RE: [Wikisource-l] Lua modules for Wikisource
Hi!
I've learn by reading the first examples written by the extension
developers and, for language syntax, with Google.
Some people in the English Wikipedia have written a tutorial:
https://en.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling that is maybe
now the best entry point. But, as for everything in the computing world,
the best way to learn is to read code and try ;-). Create a module in
test2.wikipedia.org and do your tests here.
The most important page is
https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manualthat document the
library provided by Scribunto. I have it open each time I
edit modules.
I didn't know any project to add missing {{Authority Control}} to article
of the English Wikipedia. So, I think you can work on it. Thanks!
Lots of bots to write
Thomas
PS: Is ISNI only for people? If yes, It would be nice to use a bot to add
"person" as GND type to all items with an ISNI id because there are a lot
of items in this case according to
<https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violations/P213>
https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violatio…
I can do it if needed.
I need to verify that ISNI is for People only. I think it might include
Corporations too.
------------------------------
From: kleinm(a)oclc.org
To: wikisource-l(a)lists.wikimedia.org
Date: Tue, 21 May 2013 18:36:40 +0000
Subject: Re: [Wikisource-l] Lua modules for Wikisource
Hi Tpt,
Thank you so much for writing the Authority Control Lua modules. I would
actually like to learn to write it them myself.
What tutorials did you use, or how did you learn to write the Lua modules?
Also on a sidenote, there is a need for a bot to run on Wikipedias that
puts Templates that use Wikidata fallback on pages where Wikidata data
exists, but the Wikipedia isn't grabbing it. That's something I plan to get
around to, unless anyone knows of any starts on it?
Maximilian Klein
Wikipedian in Residence, OCLC
+17074787023
------------------------------
*From:* wikisource-l-bounces(a)lists.wikimedia.org on behalf of Thomas PT
*Sent:* Monday, May 20, 2013 9:07 AM
*To:* discussion list for Wikisource, the free library
*Subject:* Re: [Wikisource-l] Lua modules for Wikisource
Hi!
In French Wikisource, we have some templates already rewritten in lua like:
https://fr.wikisource.org/wiki/Module:Header_template The header template
use by Proofread Page
https://fr.wikisource.org/wiki/Module:Classement Create clean default
DEFAULTSORT
https://fr.wikisource.org/wiki/Module:Table for TOCs
https://fr.wikisource.org/wiki/Module:MathRoman : outputs roman number.
For commons, the issue is that, as I know, Lua doesn't support
internationalization very well (but I think it could be done with some
hacks).
Thomas
PS: I've also rewritten for French and English Wikipedia the Authority
control template. It supports validation of some ids and fallback to
Wikidata. See
https://en.wikipedia.org/wiki/Module:Authority_control/sandbox and
https://fr.wikipedia.org/wiki/Module:Autorité . The "fallback to
Wikidata" feature is live on the French Wikipedia but not on the English
one. I can help to adapt it to other languages.
------------------------------
From: zanni.andrea84(a)gmail.com
Date: Mon, 20 May 2013 17:54:08 +0200
To: wikisource-l(a)lists.wikimedia.org
Subject: [Wikisource-l] Lua modules for Wikisource
Hi all,
is there any Wikisource which had Lua deployed?
I'm looking for a book/header templates re-written in Lua to copy and
localize :-)
(so far, I've seen only this one in the Italian Wikipedia
http://it.wikipedia.org/w/index.php?title=Modulo:Tracce&action=edit)
And I'd love to see Book and Creator templates on Commons Lua-style :-)
Aubrey
_______________________________________________ Wikisource-l mailing list
Wikisource-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________ Wikisource-l mailing list
Wikisource-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
Wikisource-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l