Rewrite Template:Interval in Lua
completed by: Theo Patt
mentors: Quim Gil, Liangent
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!
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. It has one subtemplate, fairly simple structure. Would benefit from using a loop to enable an unlimited number of intervals, rather than just three.
Create a template at https://en.wikipedia.org/wiki/Template:Interval-Lua
Create a module at https://en.wikipedia.org/wiki/Module:Sandbox/Interval
Please report your progress soon and often at
Bug 58130 - Rewrite Template:Interval in Lua
where not only GCI mentors but also other community contributors can follow the progress and help.