Module:Navbar/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
rm a variable only used once
Jackmcbarn (talk | contribs)
rm more variables
Line 27:
local mainpage = title.fullText;
local talkpage = talk_title and talk_title.fullText or '';
 
local viewLink, talkLink, editLink
if args.mini then
viewLink, talkLink, editLink = 'v', 't', 'e'
else
viewLink, talkLink, editLink = 'view', 'talk', 'edit'
end
 
local div = mw.html.create():tag('div')
Line 71 ⟶ 64:
:attr('title', 'View this template')
:cssText(args.fontstyle)
:wikitext(viewLinkargs.mini and 'v' or 'view')
:done()
:wikitext(']]')
Line 81 ⟶ 74:
:attr('title', 'Discuss this template')
:cssText(args.fontstyle)
:wikitext(talkLinkargs.mini and 't' or 'talk')
:done()
:wikitext(']]');
Line 93 ⟶ 86:
:attr('title', 'Edit this template')
:cssText(args.fontstyle)
:wikitext(editLinkargs.mini and 'e' or 'edit')
:done()
:wikitext(']');