Module:Infobox: Difference between revisions
m
1 revision imported from wikipedia:Module:Infobox
m (1 revision imported from wikipedia:Module:Infobox) |
m (1 revision imported from wikipedia:Module:Infobox) |
||
(One intermediate revision by one other user not shown) | |||
Line 16:
found = false,
styles = 'Plainlist/styles.css'
},
hlist_t = {
patterns = {
'^hlist$',
'%shlist$',
'^hlist%s',
'%shlist%s'
},▼
found = false,
styles = 'Hlist/styles.css'
}
}
Line 446 ⟶ 454:
local function loadTemplateStyles()
local frame = mw.getCurrentFrame()
local hlist_templatestyles = ''
}
end▼
local plainlist_templatestyles = ''▼
if lists.plainlist_t.found then
plainlist_templatestyles = frame:extensionTag{▼
name = 'templatestyles', args = { src = lists.plainlist_t.styles }
}
end
-- See function description
Line 470 ⟶ 492:
grandchild_templatestyles = frame:extensionTag{
name = 'templatestyles', args = { src = args['grandchild templatestyles'] }
▲ }
▲ end
▲ local plainlist_templatestyles = ''
▲ if lists.plainlist_t.found then
▲ plainlist_templatestyles = frame:extensionTag{
▲ name = 'templatestyles', args = { src = lists.plainlist_t.styles }
}
end
return table.concat({
-- hlist -> plainlist -> base is best-effort to preserve old Common.css ordering.
base_templatestyles, -- see function description▼
-- this ordering is not a guarantee because the rows of interest invoking
-- each class may not be on a specific page
hlist_templatestyles,
plainlist_templatestyles,
templatestyles,
child_templatestyles,
grandchild_templatestyles
▲ plainlist_templatestyles
})
end
|