Module:Infobox: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) m 1 revision imported |
m spacing |
||
Line 18:
slast = s
s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*%]%])', '%2%1')
s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(
end
-- end moving templatestyles and categories inside of table rows
Line 127:
if rowArgs.data then
root:wikitext(
'[[Category:Pages
)
end
Line 383:
if args.title then
root:wikitext(
'[[Category:Pages
)
end
elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
root:wikitext('[[Category:Articles
end
end
Line 394:
Loads the templatestyles for the infobox.
TODO:
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 templatestyles = ''
if args['templatestyles'] then templatestyles = frame:extensionTag{
Line 428:
return table.concat({
templatestyles,
child_templatestyles,
grandchild_templatestyles
})
end
|