Navigation menu

Module:Infobox: Difference between revisions

From The Kodiak Republic Wiki

uno mas, based on plastikspork's work
(Fix templatestyles pattern, this tag will be expanded into a strip-marker when processed here)
(uno mas, based on plastikspork's work)
Line 394:
Loads the templatestyles for the infobox.
 
TODO: loadFINISH loading base templatestyles here rather than in MediaWiki:Common.css
WeMediaWiki:Common.css. aren't doing it here yet because thereThere are 4-5000 pages with 'raw' infobox tables.
tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :).
When we do this we should clean up the inline CSS below too.
Will have to do some bizarre conversion category like with sidebar.
 
]=]
local function loadTemplateStyles()
local frame = mw.getCurrentFrame()
-- See function description
-- local base_templatestyles = frame:extensionTag{
-- name = 'templatestyles', args = { src = cfg'Module:Infobox/styles.i18n.templatestylescss' }
-- }
 
local templatestyles = ''
if args['templatestyles'] then templatestyles = frame:extensionTag{
Line 428:
 
return table.concat({
-- base_templatestyles, -- see function description
templatestyles,
child_templatestyles,
grandchild_templatestyles
})
end
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.