Module:Shortcut: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
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(' |
:tag('div') |
||
:addClass('shortcutbox noprint') |
:addClass('shortcutbox plainlist noprint') |
||
⚫ | |||
: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', ' |
:css('padding', '.4em .6em') |
||
:css('text-align', 'center') |
:css('text-align', 'center') |
||
:css('font-size', 'smaller') |
|||
:css('line-height', '2em') |
|||
:css('font-weight', 'bold') |
|||
⚫ | |||
⚫ | |||
:tag('ul') |
|||
:tag('small') |
|||
⚫ | |||
: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) |