Changes
Jump to navigation
Jump to search
Line 77:
Line 77:
− +
Line 103:
Line 103:
− +
Line 117:
Line 117:
− +
− for i, item in ipairs(listItems) do+
− list:tag('li'):wikitext(item)+
− end
use module:list for plainlist, move templatestyles to module space
local root = mw.html.create()
local root = mw.html.create()
root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = 'Shortcut/styles.css'} })
root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Shortcut/styles.css'} })
-- Anchors
-- Anchors
local anchorDiv = root
local anchorDiv = root
local shortcutList = root
local shortcutList = root
:tag('div')
:tag('div')
:addClass('module-shortcutboxplain plainlist noprint')
:addClass('module-shortcutboxplain noprint')
:attr('role', 'note')
:attr('role', 'note')
if options.float and options.float:lower() == 'left' then
if options.float and options.float:lower() == 'left' then
:wikitext(shortcutHeading)
:wikitext(shortcutHeading)
end
end
local list = shortcutList:tag('ul')
local ubl = require('Module:List').unbulleted(listItems)
shortcutList:wikitext(ubl)
return tostring(root)
return tostring(root)
end
end