Module:Traits: Difference between revisions

From Elwiki
(I promise it'll do now)
No edit summary
Line 248: Line 248:


     -- Header spawning method
     -- Header spawning method
     function Trait:do_headers()
     function Trait:do_headers(tr)
         local function getCustomHeader(spawn)
         local function getCustomHeader(spawn)
             local i = 1
             local i = 1
Line 267: Line 267:
         if self.mode_row then
         if self.mode_row then
             if self.has_enhanced == true then
             if self.has_enhanced == true then
                 tr:tag('th'):wikitext('Stage')
                 thead:tag('th'):wikitext('Stage')
             else
             else
                 tr:tag('th'):wikitext('Mode')
                 thead:tag('th'):wikitext('Mode')
             end
             end
             tr:attr('rowspan', '2')
             thead:attr('rowspan', '2')
         end
         end