Notice: Template failed integrity check: /home/jvzmxxx/wiki/extensions/MobileFrontend/includes/skins/minerva.mustache in /home/jvzmxxx/wiki/includes/TemplateParser.php on line 121
Zmiany – Czarnobyl Wiki
Otwórz menu główne

Czarnobyl Wiki β

Zmiany

Moduł:Sidebar

Dodane 391 bajtów, 18:22, 19 gru 2017
update from sandbox per discussion on talk page
else
return s
end
end
 
local function hasSubgroup(s)
if mw.ustring.find(s, 'vertical%-navbox%-subgroup') then
return true
else
return false
end
end
local child = args.child and mw.text.trim(args.child) == 'yes'
root = root:tag('table')
if not child then
root = root :tag('table')
:addClass('vertical-navbox')
:addClass(args.wraplinks ~= 'true' and 'nowraplinks' or nil)
:wikitext(args.pretitle)
end
else root :addClass('vertical-navbox-subgroup') :css('width', '100%') :css('margin', '0px') :css('border-spacing', '0px') :addClass(args.bodyclass or args.class) :cssText(args.bodystyle or args.style)
end
root
:wikitext(args.title)
:wikitext('</th></tr>') -- @todo replace this with unclosed again once mw.html gets it
else
root
:tag('td')
:addClass(args.contentclass)
:css('padding', hasSubgroup(content) and '0.1em 0 0.2em' or '0 0.1em 0.4em')
:cssText(args.contentstyle)
:cssText(args['content' .. num .. 'style'])
end
return tostring(root) .. (child and '[[Category:Pages using sidebar with the child parameter]]' or '')
end
Anonimowy użytkownik