Module:NavboxMobile: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 223: | Line 223: | ||
:addClass(cfg.class.navbox_list) | :addClass(cfg.class.navbox_list) | ||
:addClass(args[cfg.arg.titleclass]) | :addClass(args[cfg.arg.titleclass]) | ||
:attr('data-level', 1) | :attr('data-level', 1) | ||
:attr('colspan', 2) | :attr('colspan', 2) | ||
:cssText(args.basestyle) | :cssText(args.basestyle) | ||
:cssText(args.titlestyle) | :cssText(args.titlestyle) | ||
-- Add the navbar, | -- Add the navbar, floated right | ||
if has_navbar() then | if has_navbar() then | ||
titleCell | titleCell | ||
Line 246: | Line 245: | ||
titleCell | titleCell | ||
:tag('div') | :tag('div') | ||
:css('text-align', 'center') | :css('text-align', 'center') | ||
:wikitext(addNewline(args.title)) | :wikitext(addNewline(args.title)) | ||
end | end | ||
-- | -- |