Module:Shortcut: Difference between revisions

Change table to div, per talk
Enwikipedia>Mr. Stradivarius
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:
-- Shortcut box
local shortcutList = root
:tag('tablediv')
:addClass('shortcutbox plainlist noprint')
:cssattr('borderrole', 'nonenote')
:css('float', 'right')
:css('border', '1px solid #aaa')
:css('background', '#fff')
:css('margin', '.3em .3em .3em 1em')
:css('padding', '3px.4em .6em')
:css('text-align', 'center')
:tagcss('trfont-size', 'smaller')
:tagcss('thline-height', '2em')
:addClasscss('plainlistfont-weight', 'bold')
:wikitext(shortcutHeading)
:css('border', 'none')
:csstag('background', 'transparentul')
:tag('small')
:wikitext(shortcutHeading)
:tag('ul')
for i, item in ipairs(listItems) do
shortcutList:tag('li'):wikitext(item)
Anonymous user