Deze module is nog in ontwikkeling (versie 0.0) en wordt getest.
De Module:Layout is bedoeld om snel, consistent en uitgebreid een pagina op te maken.
Er is een op de module afgestemde handleiding over deze onderwijswiki beschikbaar.
localprogress={};functionprogress.main(call)localresponse="";response=progress.box(call);returnresponse;endfunctionprogress.box(call)localprefixindex=call.include("prefixindex")localprogress_box=mw.html.create('div')progress_box:css('border-bottom','1px solid grey'):css('display','flex'):css('align-items','center')ifcall.title~=nilandcall.title~=""thenlocalprefixindexDiv=mw.html.create('div'):css('display','inline-block'):css('margin-right','10px')-- kleine marge aan de rechterkant:wikitext(prefixindex.icon("30px","Special:Prefixindex/","Looking glass Hexagonal Icon.svg",call))progress_box:node(prefixindexDiv)endifcall.progress~=nilandcall.progress~=""thenlocalprogressSvgDiv=mw.html.create('div'):css('display','inline-block'):css('margin-right','10px')-- kleine marge aan de rechterkant:wikitext(progress.svg(call.progress,"32",call))progress_box:node(progressSvgDiv)endlocalmessageDiv=mw.html.create('div'):css('display','inline-block'):wikitext(call.message.PROGRESS.DEVELOPMENT)progress_box:node(messageDiv)returntostring(progress_box)endfunctionprogress.svg(progress_string,size,call)localtext=call.include("text");progress_string=text.trim(tostring(progress_string));ifstring.sub(progress_string,-1)=="%"thenprogress_string=string.sub(progress_string,1,-2)endlocalprogress_number=tonumber(progress_string);ifnotprogress_numberthenreturnmw.ustring.format(call.message.PROGRESS.NOTHING,size);endifprogress_number<13thenreturnmw.ustring.format(call.message.PROGRESS.NOTHING,size);endifprogress_number<38thenreturnmw.ustring.format(call.message.PROGRESS.IO,size);endifprogress_number<63thenreturnmw.ustring.format(call.message.PROGRESS.RO,size);endifprogress_number<78thenreturnmw.ustring.format(call.message.PROGRESS.GO,size);endifprogress_number<=100thenreturnmw.ustring.format(call.message.PROGRESS.ZO,size);endreturnnothing;endreturnprogress;