Module:Shortcut: Difference between revisions
redo templatestyles
(whoops, breaks stuff) |
(redo templatestyles) |
||
Line 55: | Line 55: | ||
local root = mw.html.create() | local root = mw.html.create() | ||
root:wikitext(frame:extensionTag{ name = 'templatestyles', args = { src = 'Shortcut/styles.css'} }) | |||
-- Anchors | -- Anchors | ||
local anchorDiv = root | local anchorDiv = root | ||
:tag('div') | :tag('div') | ||
: | :addClass('module-shortcutanchordiv') | ||
for i, shortcut in ipairs(shortcuts) do | for i, shortcut in ipairs(shortcuts) do | ||
local anchor = mw.uri.anchorEncode(shortcut) | local anchor = mw.uri.anchorEncode(shortcut) | ||
Line 79: | Line 78: | ||
local shortcutList = root | local shortcutList = root | ||
:tag('div') | :tag('div') | ||
:addClass(' | :addClass('module-shortcutboxplain plainlist noprint') | ||
:attr('role', 'note') | :attr('role', 'note') | ||
if shortcutHeading then | if shortcutHeading then | ||
shortcutList | shortcutList | ||
:tag('div') | :tag('div') | ||
: | :addClass('module-shortcutlist') | ||
:wikitext(shortcutHeading) | :wikitext(shortcutHeading) | ||
end | end |