Module:Tabs: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
forgot delimiter arg for split
(split contentId into separate attributes for each selector)
(forgot delimiter arg for split)
Line 182: Line 182:
     :wikitext( '\n' .. self.content )
     :wikitext( '\n' .. self.content )


   for k, v in ipairs( mw.text.split( self.contentId ) ) do
   for k, v in ipairs( mw.text.split( self.contentId, ' ' ) ) do
     content:attr( 'data-tab-content-' .. (k - 1), v )
     content:attr( 'data-tab-content-' .. (k - 1), v )
   end
   end

Navigation menu