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.
-- The view of the template as a wiki-objectlocaltemplate={};-- This function is called by the interface by defaultfunctiontemplate.main(call)localresult=call.content.header;-- The view consists of a header, the template documentation and adds the template to the correct categoryresult=result..template.hiding(call);result=result..template.elaboration(call);result=result..call.message.TEMPLATE.CATEGORY;-- The result is returned as a string with wikitext and HTMLreturnresult;end-- This function formats in HTML the message about hiding the template-documentation when includedfunctiontemplate.hiding(call)localhiding=mw.html.create('div');hiding:addClass('sjabdocnoot');hiding:cssText(string.format([[color:%s;text-align:center;margin-top:1em;font-size:small;]],call.color[1].tints[1]));hiding:wikitext(call.message.TEMPLATE.HIDING);returntostring(hiding);end-- This function displays the documentation itselffunctiontemplate.elaboration(call)localdocumentation=mw.html.create('div')documentation:addClass('toccolours template-documentation');documentation:cssText(string.format([[ background: %s; color: black; border: 1px solid %s; font-size: 100%%; ]],call.color[2].tints[10],call.color[2].tints[2]));documentation:wikitext(call.content.elaboration);returntostring(documentation);endreturntemplate;