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 = | 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 | ||
return tostring(root) | return tostring(root) | ||
end | end |