Content deleted Content added
sync |
|||
Line 229:
end
infobox_args['bodyclass'] = 'collapsible collapsed
infobox_args['bodystyle'] = 'display:inline-table; text-align: left;';
infobox_args['abovestyle'] = 'font-size: 100%; text-align: left;color: #202122; background-color: #f9ffbc;'; -- TODO: #define various colors in a common config ___location; and function?
infobox_args['headerstyle'] = 'color: #202122;background-color: #dcffc9;'; -- TODO: #define various colors in a common config ___location; and function?
infobox_args['labelstyle'] = 'font-weight:normal;';
Line 265:
end
infobox_args['headerstyle'] = 'color: #202122;background-color: ' .. h_color .. ';';
if is_set (args.fontstyle) then -- ???? |fontstyle= not a documented parameter; supported by {{Infobox Chinese/Korean}} and {{Infobox Chinese/Vietnamese}}
Line 303:
if 'st' == args.order then
i = add_label_data_pair (infobox_args, '[[Simplified Chinese characters|Simplified
i = add_label_data_pair (infobox_args, '[[Traditional Chinese characters|Traditional Chinese]]', is_set (args.t) and lang_mod._lang ({'zh-Hant', args.t, size = '1rem'}), i)
else
i = add_label_data_pair (infobox_args, '[[Traditional Chinese characters|Traditional Chinese]]', is_set (args.t) and lang_mod._lang ({'zh-Hant', args.t, size = '1rem'}), i)
i = add_label_data_pair (infobox_args, '[[Simplified Chinese characters|Simplified
end
Line 954:
end
-- infobox_args['subheaderstyle'] = 'font-size: 125%; color: #202122;background-color:' .. h_color .. ';';
-- infobox_args['subheader'] = is_set (args.title) and args.title or mw.title.getCurrentTitle().text;
infobox_args['image'] = frame:callParserFunction ({name = '#invoke:InfoboxImage',
Line 961:
'InfoboxImage',
image = args.pic,
size = args.picsize,
upright = args.picupright,
Line 976:
image = args.pic2,
sizedefault = 'frameless',
size = args.picsize2,
upright = args.picupright2,
Line 985 ⟶ 984:
infobox_args['caption2'] = is_set (args.piccap2) and args.piccap2 or nil;
infobox_args['headerstyle'] = 'color: #202122;background-color:' .. h_color;
infobox_args['headerstyle'] = 'width: 50%; white-space: nowrap';
-- always display the background of the image in light mode, see
-- [[Template_talk:Infobox_Chinese#Issue_in_dark_mode_or_inappropriate_use_of_infobox]]
-- FIXME: define new names for image arguments and migrate existing uses
-- to those names, so that we can use skin-invert instead for characters
infobox_args['imagestyle'] = 'background-color: #f8f9fa;'
infobox_args['imageclass'] = 'notheme'
return frame:expandTemplate ({title='Infobox', args = infobox_args});
Line 2,107 ⟶ 2,112:
ibox_mln_vi = ibox_mln_vi, -- {{infobox Chinese/Vietnamese}} (used in Template:Infobox Vietnamese)
ibox_mln_zh = ibox_mln_zh, -- {{infobox Chinese/Chinese}}
|