Navigation menu

Module:Infobox: Difference between revisions

From The Kodiak Republic Wiki

no edit summary
m (Test wikipedia version)
Tag: Reverted
No edit summary
Tag: Manual revert
 
(3 intermediate revisions by the same 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'
}
-- TODO: hlist_t goes here when ready to be TStyled, plus relevant
-- implementations below
}
 
Line 446 ⟶ 454:
local function loadTemplateStyles()
local frame = mw.getCurrentFrame()
local hlist_templatestyles = ''
if lists.plainlist_thlist_t.found then
plainlist_templatestyleshlist_templatestyles = frame:extensionTag{
name = 'templatestyles', args = { src = lists.plainlist_thlist_t.styles }
}
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,
base_templatestyles, -- see function description
templatestyles,
child_templatestyles,
grandchild_templatestyles,
plainlist_templatestyles
})
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.