Module:Tabs: Difference between revisions

Want an adless experience? Log in or Create an account.
182 bytes removed ,  June 27, 2020
m
no edit summary
(split contentId into separate attributes for each selector, part 2 (try to handle defaults correctly))
mNo edit summary
Line 87: Line 87:
       :wikitext( self.tabsTop:render() )
       :wikitext( self.tabsTop:render() )
   end
   end
  local defaultContent = ''
  if defaults[0] then defaultContent = defaultContent .. defaults[0] end
  if defaults[1] then defaultContent = defaultContent .. ' ' .. defaults[1] end


   for _, c in ipairs( self.contents ) do
   for _, c in ipairs( self.contents ) do