Module:Shortcut/sandbox: Difference between revisions

Content deleted Content added
Sync
Sync
Line 94:
for i, item in ipairs(listItems) do
shortcutList:tag('li'):wikitext(item)
end
 
-- Output an error category if the first shortcut doesn't exist
if isCategorized
and shortcuts[1]
and cfg['first-parameter-error-category']
then
local title = mw.title.new(shortcuts[1])
if not title or not title.exists then
root:wikitext(makeCategoryLink(cfg['first-parameter-error-category']))
end
end