Module:Layout/Production/View/Wikipedia

 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.

De module wordt geïnitialiseerd met de configuratie in Module:Layout/Production/Configuration.

Controleer op scriptfouten of opmaak notificaties.




local wikipedia = {};

function wikipedia.main( call )
	local response = "";
	response = wikipedia.box( call );
    return response;
end

function wikipedia.box( call )
	local box = call.include( "box" );
	
	if ( call.title == nil or type( call.title ) ~= 'string' or call.title == "" ) then return ""; end
    return box.wikiproject( string.format( call.message.WIKIPEDIA.INTERLINK, tostring( call.title ), tostring( call.title ) ) );
end

return wikipedia;
Informatie afkomstig van https://nl.wikibooks.org Wikibooks NL.
Wikibooks NL is onderdeel van de wikimediafoundation.