Module:Navbar/sandbox: Difference between revisions

Content deleted Content added
tweak
localize
Line 1:
require('module:no globals')
local p = {}
 
Line 50 ⟶ 51:
local index = {t = 2, d = 2, e = 3, h = 4, m = 5, w = 6, talk = 2, edit = 3, hist = 4, move = 5, watch = 6}
for k,v in ipairs(require ('Module:TableTools').compressSparseArray(args)) do
local num = index[v]
if num then show[num] = true end
end
Line 64 ⟶ 65:
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or ''
local div = mw.html.create():tag('div')
div
:addClass('plainlinks')