Module:Sheet: Difference between revisions

Jump to navigation Jump to search
1,467 bytes added ,  31 December 2023
no edit summary
No edit summary
No edit summary
Line 254: Line 254:
end
end


local function renderStrRow()
local function renderAbilityHeaderRow()
if not args.str then return end
 
has_rows = true
has_list_class({ args.abilityclass })
root
:tag('tr')
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityheaderclass)
:cssText(args.abilityheaderstyle)
:wikitext(fixChildBoxes(args.strheader,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityheaderclass)
:cssText(args.abilityheaderstyle)
:wikitext(fixChildBoxes(args.dexheader,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityheaderclass)
:cssText(args.abilityheaderstyle)
:wikitext(fixChildBoxes(args.conheader,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityheaderclass)
:cssText(args.abilityheaderstyle)
:wikitext(fixChildBoxes(args.intheader,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityheaderclass)
:cssText(args.abilityheaderstyle)
:wikitext(fixChildBoxes(args.wisheader,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityheaderclass)
:cssText(args.abilityheaderstyle)
:wikitext(fixChildBoxes(args.chaheader,'td'))
 
end
 
local function renderAbilityRow()
if not args.str then return end
if not args.str then return end


Line 541: Line 588:
renderRows()
renderRows()
renderBelowRow()
renderBelowRow()
     renderStrRow()
     renderAbilityHeaderRow()
    renderAbilityRow()
renderEmptyRowCategories()
renderEmptyRowCategories()
renderTrackingCategories()
renderTrackingCategories()
Line 694: Line 742:
preprocessSingleArg('belowstyle')
preprocessSingleArg('belowstyle')
preprocessSingleArg('abilityclass')
preprocessSingleArg('abilityclass')
preprocessSingleArg('abilitycstyle')
preprocessSingleArg('abilitystyle')
preprocessSingleArg('abilityheaderclass')
preprocessSingleArg('abilityheaderstyle')
preprocessSingleArg('name')
preprocessSingleArg('name')
preprocessSingleArg('decat')
preprocessSingleArg('decat')
8,856
edits

Navigation menu