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.
Lua error -- Module:Layout/Production/Test/Box:18: attempt to call field 'logo' (a nil value)
N
test_Box_Progress/nil
Lua error -- Module:Layout/Production/Test/Box:29: attempt to call field 'progress' (a nil value)
N
test_Box_Wikijunior/nil
Lua error -- Module:Layout/Production/Test/Box:36: attempt to call field 'wikijunior' (a nil value)
N
test_Box_Wikipedia/nil
Lua error -- Module:Layout/Production/Test/Box:43: attempt to call field 'wikipedia' (a nil value)
N
test_Box_Wikiproject/nil
Lua error -- Module:Layout/Production/Library/Box:4: variable 'CFG' is not declared
localtest={};localCFG=require("Module:Layout/Production/Configuration");localbox=CFG.INCLUDE("production","box");localunittest=CFG.INCLUDE("production","unittest");test=unittest:new();functiontest.main(frame)returntest.run(frame);endfunctiontest:test_Box_Logo()localresult='FOUT: De waarde <leeg> van de <b>Bron</b> parameter is niet geldig!';localresult2='FOUT: De waarde Trash van de <b>Bron</b> parameter is niet geldig!';localresult3='FOUT: De waarde Trash.trash van de <b>Bron</b> parameter is niet geldig!';localresult4='<div>[[File:Huma.JPG|300px|Logo|center]]</div>';self:assertEquals(result,box.logo(),"No parameter given");self:assertEquals(result,box.logo({}),"No string given");self:assertEquals(result,box.logo(""),"Empty parameter given");self:assertEquals(result,box.logo(true),"Bool given");self:assertEquals(result2,box.logo("Trash"),"No correct mediafile syntax");self:assertEquals(result3,box.logo("Trash.trash"),"No correct mediafile extension");self:assertEquals(result4,box.logo("Huma.JPG"),"Valid Huma.JPG");endfunctiontest:test_Box_Progress()localresult='<div style="border-bottom:1px solid grey">Dit boek is in ontwikkeling. Volg de wijzigingen door bij elk hoofdstuk op de ster te klikken of gebruik de toetscombinatie [alt+shift+w]</div>';self:assertEquals(result,box.progress());self:assertEquals(result,box.progress({}));self:assertEquals(result,box.progress(""));endfunctiontest:test_Box_Wikijunior()localdefinitie_error="FOUT: De waarde <leeg> van de <b>Definitie</b> parameter is niet geldig!";self:assertEquals(definitie_error,box.wikijunior());self:assertEquals(definitie_error,box.wikijunior({}));self:assertEquals('<div class="toccolours" style="clear:both;margin:1em 0px -0.5em 0px;width:99%"><div> [[Afbeelding:Wikibooks-logo.png|25px|Wikibooks]] [[Hoofdpagina|Wikibooks]] heeft een boek over [[Wikijunior:Test|Test]]</div></div>',box.wikijunior("Test"));endfunctiontest:test_Box_Wikipedia()localdefinitie_error="FOUT: De waarde <leeg> van de <b>Definitie</b> parameter is niet geldig!";self:assertEquals(definitie_error,box.wikipedia());self:assertEquals(definitie_error,box.wikipedia({}));self:assertEquals('<div class="toccolours" style="clear:both;margin:1em 0px -0.5em 0px;width:99%"><div> [[Afbeelding:Wikipedia-logo.png|25px|Wikipedia]] [[w:Hoofdpagina|Wikipedia]] heeft een artikel over [[w:Test|Test]]</div></div>',box.wikipedia("Test"));endfunctiontest:test_Box_Wikiproject()localdefinitie_error="FOUT: De waarde <leeg> van de <b>Definitie</b> parameter is niet geldig!";self:assertEquals(definitie_error,box.wikiproject());self:assertEquals(definitie_error,box.wikiproject({}));self:assertEquals('<div class="toccolours" style="clear:both;margin:1em 0px -0.5em 0px;width:99%"><div>Test</div></div>',box.wikiproject("Test"));endreturntest;