Module:Shortcut: Difference between revisions
Content added Content deleted
Vivaporius (talk | contribs) m (1 revision imported) |
en>Centrist16 (Created page with "-- This module implements {{shortcut}}. -- Set constants local CONFIG_MODULE = 'Module:Shortcut/config' -- Load required modules local checkType = require('libraryUtil').che...") |
||
Line 87: | Line 87: | ||
:css('border', '1px solid #aaa') |
:css('border', '1px solid #aaa') |
||
:css('background', '#fff') |
:css('background', '#fff') |
||
:css('margin', ' |
:css('margin', '0em 0em 0em 1em') |
||
:css('padding', '. |
:css('padding', '.3em .6em .2em .6em') |
||
:css('text-align', 'center') |
:css('text-align', 'center') |
||
:css('font-size', ' |
:css('font-size', '85%') |
||
⚫ | |||
:css('font-weight', 'bold') |
:css('font-weight', 'bold') |
||
if shortcutHeading then |
|||
shortcutList |
|||
:tag('div') |
|||
:css('display','inline-block') |
|||
:css('border-bottom','1px solid #aaa') |
|||
⚫ | |||
:css('font-weight', 'normal') |
|||
:wikitext(shortcutHeading) |
|||
end |
|||
local list = shortcutList:tag('ul') |
|||
for i, item in ipairs(listItems) do |
for i, item in ipairs(listItems) do |
||
list:tag('li'):wikitext(item) |
|||
end |
end |
||
return tostring(root) |
return tostring(root) |
||
end |
end |