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.
-- This view is what you can see above this codelocalmdl={};-- The main function for viewing a modulefunctionmdl.main(call)-- The functions from other modules that are used in this functionlocalvalid,pattern=call.include("validation","pattern");-- The outer box contains from left to right the TOC, the elaboration and the icon of a modulelocalresult=mdl.outer_box(call,mdl.inner_box(call));result=result.."\n";ifcall.content.elaborationthenresult=result..call.content.elaboration.."\n";end-- Place the module in the correct categoryresult=result..call.content.category;-- Make sure we return wikitext and HTML returntostring(result);end-- The inner box of the view contains the elaboration of the modulefunctionmdl.inner_box(call)localinner_box=mw.html.create('div');inner_box:addClass('inner-box');inner_box:cssText(string.format([[ display: inline-block; padding: 15px; background-color: %s; color: black; border-radius: 10px; border: 1px solid %s; transition: border-color 0.2s ease-out; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); text-align: center; ]],call.color[1].tints[5],call.color[1].shades[5]));inner_box:wikitext(call.content.description);returninner_box;end-- This function returns the outer box of the view of the module.-- The outer box contains from left to right the TOC, the elaboration and the icon of a module.functionmdl.outer_box(call,inner_box)-- The functions from other modules that are used in this functionlocaltoc=call.include("toc");localouter_box=mw.html.create('div');outer_box:addClass('outer-box');outer_box:cssText(string.format([[ display: inline-block; padding: 15px; background-color: %s; color: black; border-radius: 10px; border: 1px solid %s; transition: border-color 0.2s ease-out; text-align: center; margin: 10 auto; width: 97%%; ]],call.color[1].tints[9],call.color[1].tints[5]));outer_box:wikitext(call.content.MODULE.ICON);outer_box:node(inner_box);outer_box:wikitext(toc.float());returntostring(outer_box);endreturnmdl;