Module:Layout/Production/View/Logo

Uit Wikibooks
 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 logo = {};

function logo.main( call )
    return logo.box( call );
end

function logo.box( call )
    local response = mw.html.create('div');
    if call.source and type( call.source ) == "string" and #call.source ~= 0 then
        response:wikitext( string.format('[[File:%s|300px|Logo|center]]', call.source ) );
    end
    return tostring( response );
end

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