Module:Traits: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 128: Line 128:
     -- Get table head color
     -- Get table head color
     local function color(char)
     local function color(char)
         char = char or args[1]
         char = char or args[1] or args.char
         return frame:expandTemplate{
         return frame:expandTemplate{
             title = 'ColorSel',
             title = 'ColorSel',
Line 171: Line 171:


         thead:tag('th'):attr('colspan', self.colspan + getCustomHeader()):wikitext(self.name .. ' ' .. skill)
         thead:tag('th'):attr('colspan', self.colspan + getCustomHeader()):wikitext(self.name .. ' ' .. skill)
        tr_2:tag('th'):wikitext('Attribute Effect')
         local has_details = table.matches(header_dict, self.name);
         local has_details = table.matches(header_dict, self.name);


        tr_2:tag('th'):wikitext('Attribute Effect')
         if has_details then
         if has_details then
             if self.multi_mp_cost ~= 100 then
             if self.multi_mp_cost ~= 100 then