17,260
edits
(determine default content based on default tabs, rather than specifying it. might add support for 'nojs' content later.) |
(split contentId into separate attributes for each selector) |
||
Line 181: | Line 181: | ||
:attr( 'data-tab-content', self.contentId ) | :attr( 'data-tab-content', self.contentId ) | ||
:wikitext( '\n' .. self.content ) | :wikitext( '\n' .. self.content ) | ||
for k, v in ipairs( mw.text.split( self.contentId ) ) do | |||
content:attr( 'data-tab-content-' .. (k - 1), v ) | |||
end | |||
if self.default then | if self.default then |