GSoC/GCI Archive
Google Code-in 2013 Wikimedia

Rewrite Template:Old_AfD_multi in Lua

completed by: Theo Patt

mentors: Quim Gil

MediaWiki templates  are wiki pages to be included in other pages. Templates can take arguments, allowing editors to create special types of content like infoboxes, banners, and more. Originally, templates were written wikitext with parser functions, mimicking the functionality of a very basic programming language (but requiring advanced skills to get smart results out of them).

This problem has been solved allowing templates to rely in modules written with Lua, a proper programming language. Now we have many wikitext templates waiting to be rewritten in Lua. Take one and rewrite it!

Template:Old_AfD_multi


This page documents the output. Your template based in Lua should be able to run the same tests providing the same results. Click "Edit source" to see the actual wikitext code. No subtemplates, and not all that complicated. Could do with using a for loop to be able to list any number of Articles for Deletion (AfD) discussions, rather than just 10. (There are actually a few articles out there that have been to AfD more than 10 times. <shudder>)

Create a template at https://en.wikipedia.org/wiki/Template:Multiple_issues-Lua 

Create a module at https://en.wikipedia.org/wiki/Module:Sandbox/Multiple_issues

Please report your progress soon and often at

https://en.wikipedia.org/wiki/Wikipedia:Lua/To_do

where not only GCI mentors but also other community contributors can follow the progress and help.

See also:

https://en.wikipedia.org/wiki/Wikipedia:Lua/Help

https://en.wikipedia.org/wiki/Help:Lua_for_beginners