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 Lua Scribunto beschikbaar.
-- De submodule Interface forms an interface between the calling template and the submodules.localinterface={};-- The main function converts the invokement of the template into a valid wikitext.-- The input comes from the user as the frame-object and from the configuration as set by the developers of the module.-- The input is gradually transformed to a call variable that is safe to pass to the system.-- The settings in the configuration and the input are used to build up this call variable.-- The reponse of the function is a wikitext that can be used by the calling template.functioninterface.main(frame,CFG,environment)-- : string-- The model has for the incoming data the call variablelocalcall=CFG.INCLUDE(environment,"call");call.init(CFG,environment);-- The interface needs the following submodules based on the analogy of boarding, flying and landing a plane.localluggage,security,flight=call.include("luggage","security","flight");-- The call object will take over from the frame object that is dropped afterwards.-- The object is refilled based on the settings in the configuration file and the environment.call=luggage.drop(call,frame,CFG,environment);-- The caller's identity determines if it may pass to the system.call=security.authentication(call);-- The call-object is inspected to see if there is a problem to declarecall=security.declaration(call);-- If there is nothing to declare we can take the carry-on luggage to the security screening ifcall.passthencall=luggage.carry_on(call);end-- The call is scanned on the validity of the parameters suppliedifcall.passthencall=security.scan(call);end-- The values of the parameters of the call are then frisked. ifcall.passthencall=security.frisk(call);end-- The call is then corrected, converted and prefilled by extracting from other sources stirred by the input and the configuration.ifcall.passthencall=luggage.loading(call);end-- The calling template needs a response in the format of a textlocalresponse=call.include("response");response.init();-- The call is passed to the system that can take off if allowed.ifcall.passthenresponse.add(flight.takeoff(call));end-- We want to know if the system landed safely if it took off.ifcall.passthenresponse.add(flight.landed(call));end-- The call object is recollectedcall=luggage.claim(call);-- The response of the flight can be extended with feedback supplied by the supporting functionalityresponse.add(flight.feedback(call));-- The calling template needs a string a result of the interfacereturntostring(response.get());endreturninterface;