Module:Shortcut: Difference between revisions
fix lint error/bug
(spacing changes, as discussed at Template talk:Shortcut) |
(fix lint error/bug) |
||
Line 101: | Line 101: | ||
:wikitext(shortcutHeading) | :wikitext(shortcutHeading) | ||
end | end | ||
local list = mw.html.create('ul') | |||
for i, item in ipairs(listItems) do | for i, item in ipairs(listItems) do | ||
list:tag('li'):wikitext(item) | |||
end | end | ||
shortcutList:node(list) | |||
return tostring(root) | return tostring(root) | ||
end | end |