Editing Module:Shortcut
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 77: | Line 77: | ||
local root = mw.html.create() | local root = mw.html.create() | ||
root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = ' | root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = 'Shortcut/styles.css'} }) | ||
-- Anchors | -- Anchors | ||
local anchorDiv = root | local anchorDiv = root | ||
Line 103: | Line 103: | ||
local shortcutList = root | local shortcutList = root | ||
:tag('div') | :tag('div') | ||
:addClass('module-shortcutboxplain noprint') | :addClass('module-shortcutboxplain plainlist 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 | ||
Line 117: | Line 117: | ||
:wikitext(shortcutHeading) | :wikitext(shortcutHeading) | ||
end | end | ||
local list = shortcutList:tag('ul') | |||
local | for i, item in ipairs(listItems) do | ||
list:tag('li'):wikitext(item) | |||
end | |||
return tostring(root) | return tostring(root) | ||
end | end |