Module:Navbar/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
rm 2 unnecessary functions
Jackmcbarn (talk | contribs)
various simplifications
Line 29:
local editurl = title:fullUrl('action=edit');
 
local viewLink, talkLink, editLink = 'view', 'talk', 'edit'
if args.mini then
viewLink, talkLink, editLink = 'v', 't', 'e'
else
viewLink, talkLink, editLink = 'view', 'talk', 'edit'
end
 
Line 69 ⟶ 71:
:tag('span')
:attr('title', 'View this template')
:cssText(args.fontstyle or '')
:wikitext(viewLink)
:done()
Line 79 ⟶ 81:
:tag('span')
:attr('title', 'Discuss this template')
:cssText(args.fontstyle or '')
:wikitext(talkLink)
:done()
Line 91 ⟶ 93:
:tag('span')
:attr('title', 'Edit this template')
:cssText(args.fontstyle or '')
:wikitext(editLink)
:done()
Line 101 ⟶ 103:
:tag('span')
:css('margin-left', '-0.125em')
:cssText( args.fontstyle or '')
:wikitext(']')
:newline();
Line 111 ⟶ 113:
:tag('span')
:css('font-size', '110%')
:cssText(args.fontstyle or '')
:wikitext(args[1])
end
 
return tostring(div:allDonedone())
end