Module:Navbox: Difference between revisions

Undo revision 382390 by WikiDwarf (talk)
No edit summary
Tag: Reverted
(Undo revision 382390 by WikiDwarf (talk))
Tag: Undo
 
(2 intermediate revisions by the same user not shown)
Line 287: Line 287:
if has_list_class(htmlclass) then
if has_list_class(htmlclass) then
return frame:extensionTag{
return frame:extensionTag{
    name = 'templatestyles',
name = 'templatestyles', args = { src = templatestyles }
    args = { src = templatestyles }
}
}
else
else
return ''
return ''
Line 419: Line 418:
if templatestyles and templatestyles ~= '' then
if templatestyles and templatestyles ~= '' then
return frame:extensionTag{
return frame:extensionTag{
    name = 'templatestyles',
name = 'templatestyles', args = { src = templatestyles }
    args = { src = templatestyles }
}
}
end
end
return ''
return ''
Line 429: Line 427:
-- the work once of parser tag expansion
-- the work once of parser tag expansion
local base_templatestyles = cfg.templatestyles
local base_templatestyles = cfg.templatestyles
local templatestyles = args.templatestyles
local templatestyles = add_user_styles(args[cfg.arg.templatestyles])
local templatestyles = add_user_styles(args[cfg.arg.templatestyles])
local child_templatestyles = add_user_styles(args[cfg.arg.child_templatestyles])
local child_templatestyles = add_user_styles(args[cfg.arg.child_templatestyles])