Re: [Wikitech-l] Code-in: Lua templates
Can someone list at https://www.mediawiki.org/wiki/Google_Code-In#Lua_templates one or more wikitext templates waiting for a Lua rewrite? We have currently none. Having 5 would be great. We will fine tune the details if/when we get accepted. Thank you! PS: I'm going to create similar sections for gadgets and bots in the wiki page. On 10/20/2013 02:53 PM, Quim Gil wrote: On 10/20/2013 11:11 AM, Mark Holmquist wrote: A little warning: where a task can be split into multiple modules, try to make the modules reusable by other modules easily. We can't expect newcomer students to know that, therefore the trick is that someone knowing better modules available around document this in the specific task of a template. The typical description of a Lua template task could be organized like this: 1. Common short intro: MediaWiki templates 2. Common short intro: Wikitext vs Lua templates 3. Specific short intro: Template:XYZ 4. Optional specific instructions e.g. include Module:123 5. Common instructions for deployment and testing. -- Quim Gil Technical Contributor Coordinator @ Wikimedia Foundation http://www.mediawiki.org/wiki/User:Qgil ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Code-in: Lua templates
Hi Gerard, On 10/20/2013 03:22 PM, Gerard Meijssen wrote: What would be awesome is when attention is given to the templates on Wikidata as used on the Occitan Wikipedia. It is the one example where data from Wikidata is used to provide information. It can do with a lot of attention to get rid of the many script errors. It can do with attention to make these templates usable in other Wikipedias. If there are bugs in existing templates then you could find/file bugs about this problems and then list them at https://www.mediawiki.org/wiki/Google_Code-In#Lua_templates Your help is appreciated. Thank you! -- Quim Gil Technical Contributor Coordinator @ Wikimedia Foundation http://www.mediawiki.org/wiki/User:Qgil ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[Wikitech-l] Code-in: Lua templates
Liangent and Micru have proposed to use Code-in to get a bunch of wikitext templates rewritten in Lua. Let's do it! I also believe that this is a very good type of task for Google Code-in. https://www.mediawiki.org/wiki/Google_Code-In#Lua_templates Please list there wikitext templates that you want to seee rewritten in Lua. It is important to have a couple of meta-mentors for this Lua templates category of tasks. Ideally we should get also involved the maintainer(s) or original author(s) of the templates, so they can help checking that the end result fulfulls the requirements of the original template. There is no need to file bug reports about each template at this point. Linking to the templates is enough for now. PS: those of you involved in the subcommunity of templates writers, please help spreading this call. We need help mentoring, and in exchange we can get a lot of fresh help getting tasks done. -- Quim Gil Technical Contributor Coordinator @ Wikimedia Foundation http://www.mediawiki.org/wiki/User:Qgil ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Code-in: Lua templates
On Sun, Oct 20, 2013 at 10:53:48AM -0700, Quim Gil wrote: Liangent and Micru have proposed to use Code-in to get a bunch of wikitext templates rewritten in Lua. Let's do it! I also believe that this is a very good type of task for Google Code-in. A little warning: where a task can be split into multiple modules, try to make the modules reusable by other modules easily. See my UrlEncoding module [0] for how I've been doing it - AFAIK there's no code style guidelines for this sort of thing, but returning the basic functionality as the function name preceded by an underscore (_) seems pretty simple, and then passing back the in-wikitext functionality as the normal name will make it easy to call from pages. This lets us do things like URL-encode inside of templates, while also letting us URL-encode in Lua modules with relative ease. I guess what I'm saying is, we should probably come up with some sane guidelines about what we want these modules to look like before sending twenty different people to write twenty different solutions for the same thing (URLEncode, URLEncoding, UrLeNcOdInG, URIEncode, and so on), and on top of that, in twenty different code styles. That said, yay Lua! :) [0] https://www.mediawiki.org/wiki/Module:UrlEncoding -- Mark Holmquist Software Engineer, Multimedia Wikimedia Foundation mtrac...@member.fsf.org https://wikimediafoundation.org/wiki/User:MHolmquist signature.asc Description: Digital signature ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Code-in: Lua templates
On 10/20/2013 11:11 AM, Mark Holmquist wrote: A little warning: where a task can be split into multiple modules, try to make the modules reusable by other modules easily. We can't expect newcomer students to know that, therefore the trick is that someone knowing better modules available around document this in the specific task of a template. The typical description of a Lua template task could be organized like this: 1. Common short intro: MediaWiki templates 2. Common short intro: Wikitext vs Lua templates 3. Specific short intro: Template:XYZ 4. Optional specific instructions e.g. include Module:123 5. Common instructions for deployment and testing. -- Quim Gil Technical Contributor Coordinator @ Wikimedia Foundation http://www.mediawiki.org/wiki/User:Qgil ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] Code-in: Lua templates
Hoi, What would be awesome is when attention is given to the templates on Wikidata as used on the Occitan Wikipedia. It is the one example where data from Wikidata is used to provide information. It can do with a lot of attention to get rid of the many script errors. It can do with attention to make these templates usable in other Wikipedias. Thanks, GerardM https://oc.wikipedia.org/wiki/Bernat_de_Ventadorn http://ultimategerardm.blogspot.nl/2013/08/the-occitan-wikipedia-and-wikidata.html On 20 October 2013 23:53, Quim Gil q...@wikimedia.org wrote: On 10/20/2013 11:11 AM, Mark Holmquist wrote: A little warning: where a task can be split into multiple modules, try to make the modules reusable by other modules easily. We can't expect newcomer students to know that, therefore the trick is that someone knowing better modules available around document this in the specific task of a template. The typical description of a Lua template task could be organized like this: 1. Common short intro: MediaWiki templates 2. Common short intro: Wikitext vs Lua templates 3. Specific short intro: Template:XYZ 4. Optional specific instructions e.g. include Module:123 5. Common instructions for deployment and testing. -- Quim Gil Technical Contributor Coordinator @ Wikimedia Foundation http://www.mediawiki.org/wiki/**User:Qgilhttp://www.mediawiki.org/wiki/User:Qgil __**_ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/wikitech-lhttps://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l