Open main menu

EUSwiki β

Changes

Module:Shortcut

345 bytes removed, 18:23, 31 August 2016
remove the first parameter error category per Template talk:Shortcut#The cleanup category should be removed
-- Shortcut box
local shortcutList = root
:tag('tablediv') :addClass('shortcutbox plainlist noprint') :attr('role', 'note')
: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') :tag('th') :addClass(, 'plainlistsmaller') :css('borderline-height', 'none2em') :css('backgroundfont-weight', 'transparent') :tag('smallbold') :wikitext(shortcutHeading) :tag('ul')
for i, item in ipairs(listItems) do
shortcutList:tag('li'):wikitext(item)
end
 
-- Output an error category if the first shortcut doesn't exist
if isCategorized
and shortcuts[1]
and cfg['first-parameter-error-category']
then
local title = mw.title.new(shortcuts[1])
if not title or not title.exists then
root:wikitext(makeCategoryLink(cfg['first-parameter-error-category']))
end
end
Anonymous user