Jump to content

Module:Shortcut: Difference between revisions

Change table to div, per talk
m (Protected Module:Shortcut: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
(Change table to div, per talk)
Line 78: Line 78:
-- Shortcut box
-- Shortcut box
local shortcutList = root
local shortcutList = root
:tag('table')
:tag('div')
:addClass('shortcutbox noprint')
:addClass('shortcutbox plainlist noprint')
:attr('role', 'note')
:css('float', 'right')
:css('float', 'right')
:css('border', '1px solid #aaa')
:css('border', '1px solid #aaa')
:css('background', '#fff')
:css('background', '#fff')
:css('margin', '.3em .3em .3em 1em')
:css('margin', '.3em .3em .3em 1em')
:css('padding', '3px')
:css('padding', '.4em .6em')
:css('text-align', 'center')
:css('text-align', 'center')
:tag('tr')
:css('font-size', 'smaller')
:tag('th')
:css('line-height', '2em')
:addClass('plainlist')
:css('font-weight', 'bold')
:css('border', 'none')
:wikitext(shortcutHeading)
:css('background', 'transparent')
:tag('ul')
:tag('small')
:wikitext(shortcutHeading)
:tag('ul')
for i, item in ipairs(listItems) do
for i, item in ipairs(listItems) do
shortcutList:tag('li'):wikitext(item)
shortcutList:tag('li'):wikitext(item)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.