move these items to config, discovered during work at meta
細 (1版 をインポートしました) |
Authority control>Izno (move these items to config, discovered during work at meta) |
||
96行目: | 96行目: | ||
end | end | ||
local plainlist_styles = add_list_templatestyles('plainlist', | local plainlist_styles = add_list_templatestyles('plainlist', cfg.i18n.plainlist_templatestyles) | ||
local hlist_styles = add_list_templatestyles('hlist', | local hlist_styles = add_list_templatestyles('hlist', cfg.i18n.hlist_templatestyles) | ||
-- a second workaround for [[phab:T303378]] | -- a second workaround for [[phab:T303378]] | ||
104行目: | 104行目: | ||
if has_navbar(args.navbar, args.name) and hlist_styles == '' then | if has_navbar(args.navbar, args.name) and hlist_styles == '' then | ||
hlist_styles = frame:extensionTag{ | hlist_styles = frame:extensionTag{ | ||
name = 'templatestyles', args = { src = | name = 'templatestyles', args = { src = cfg.i18n.hlist_templatestyles} | ||
} | } | ||
end | end | ||
-- hlist -> plainlist is best-effort to preserve old Common.css ordering. [hlist_note] | -- hlist -> plainlist is best-effort to preserve old Common.css ordering. [hlist_note] | ||
return hlist_styles .. plainlist_styles | return hlist_styles .. plainlist_styles |