Module:Navbox: Difference between revisions

From Test Wiki
104 bytes added ,  16 March 2013
missed an option
(hmmm, not my smartest moment)
(missed an option)
Line 162: Line 162:
         .wikitext( ']]' );
         .wikitext( ']]' );


     if args.mini ~= nil then
     if args.noedit == nil then
        inner = 'e';
        if args.mini ~= nil then
    else
            inner = 'e';
        inner = 'edit';
        else
            inner = 'edit';
        end
       
        ul.tag( 'li' )
            .addClass( 'nv-edit' )
            .wikitext( '[' .. editurl .. ' ' )
            .tag( 'span ' )
                .attr( 'title', 'Edit this template' )
                .cssText( args.fontstyle or '' )
                .wikitext( inner )
                .done()
            .wikitext( ']' );
     end
     end
      
      
    ul.tag( 'li' )
        .addClass( 'nv-edit' )
        .wikitext( '[' .. editurl .. ' ' )
        .tag( 'span ' )
            .attr( 'title', 'Edit this template' )
            .cssText( args.fontstyle or '' )
            .wikitext( inner )
            .done()
        .wikitext( ']' );
     if args.brackets ~= nil then
     if args.brackets ~= nil then
         div.tag('span')
         div.tag('span')
Cookies help us deliver our services. By using our services, you agree to our use of cookies.