Module:Navbox: Difference between revisions

From Test Wiki
Content deleted Content added
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
inner = 'e';
else
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')