17,260
edits
(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 |