Jump to content

Module:Shortcut: Difference between revisions

make code nicer
(fix lint error/bug)
(make code nicer)
Line 101: Line 101:
:wikitext(shortcutHeading)
:wikitext(shortcutHeading)
end
end
local list = mw.html.create('ul')
local list = shortcutList:tag('ul')
for i, item in ipairs(listItems) do
for i, item in ipairs(listItems) do
list:tag('li'):wikitext(item)
list:tag('li'):wikitext(item)
end
end
shortcutList:node(list)
return tostring(root)
return tostring(root)
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.