Module:Sheet: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Tag: Manual revert
 
(32 intermediate revisions by the same user not shown)
Line 237: Line 237:
end
end


local function renderBelowRow()
local function renderAbilityHeaderRow()
if not args.below then return end
if not args.strheader then return end


has_rows = true
has_rows = true
has_list_class({ args.belowclass })
has_list_class({ args.abilityclass })
root
root
:tag('tr')
:tag('tr')
:tag('td')
:tag('td')
:attr('colspan', '6')
:attr('colspan', '1')
:addClass('infobox-below')
:addClass ('infobox-data')
:addClass(args.belowclass)
:addClass(args.abilityheaderclass)
-- @deprecated next; target .infobox-<name> .infobox-below
:cssText(args.abilityheaderstyle)
:cssText(args.belowstyle)
:wikitext(fixChildBoxes(args.strheader,'td'))
:wikitext(fixChildBoxes(args.below,'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
end


local function renderStrRow()
local function renderAbilityRow()
if not args.str then return end
if not args.str then return end


Line 265: Line 295:
:attr('colspan', '1')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass ('infobox-data')
:addClass(rowArgs.class)
:addClass(args.abilityclass)
:cssText(rowArgs.datastyle)
:cssText(args.abilitystyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(fixChildBoxes(args.str,'td'))
:wikitext(fixChildBoxes(rowArgs.str,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityclass)
:cssText(args.abilitystyle)
:wikitext(fixChildBoxes(args.dex,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityclass)
:cssText(args.abilitystyle)
:wikitext(fixChildBoxes(args.con,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityclass)
:cssText(args.abilitystyle)
:wikitext(fixChildBoxes(args.int,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityclass)
:cssText(args.abilitystyle)
:wikitext(fixChildBoxes(args.wis,'td'))
:tag('td')
:attr('colspan', '1')
:addClass ('infobox-data')
:addClass(args.abilityclass)
:cssText(args.abilitystyle)
:wikitext(fixChildBoxes(args.cha,'td'))
 
end
 
local function renderBelowRow()
if not args.below then return end
 
has_rows = true
has_list_class({ args.belowclass })
root
:tag('tr')
:tag('td')
:attr('colspan', '6')
:addClass('infobox-below')
:addClass(args.belowclass)
-- @deprecated next; target .infobox-<name> .infobox-below
:cssText(args.belowstyle)
:wikitext(fixChildBoxes(args.below,'td'))
end
end


Line 509: Line 586:
renderImages()
renderImages()
preprocessRows()
preprocessRows()
renderAbilityHeaderRow()
    renderAbilityRow()
renderRows()
renderRows()
renderBelowRow()
renderBelowRow()
Line 654: Line 733:
preprocessSingleArg('datastyle')
preprocessSingleArg('datastyle')
preprocessSingleArg('below')
preprocessSingleArg('below')
preprocessSingleArg('str')
preprocessSingleArg('dex')
preprocessSingleArg('con')
preprocessSingleArg('int')
preprocessSingleArg('wis')
preprocessSingleArg('cha')
preprocessSingleArg('strheader')
preprocessSingleArg('dexheader')
preprocessSingleArg('conheader')
preprocessSingleArg('intheader')
preprocessSingleArg('wisheader')
preprocessSingleArg('chaheader')
preprocessSingleArg('belowclass')
preprocessSingleArg('belowclass')
preprocessSingleArg('belowstyle')
preprocessSingleArg('belowstyle')
preprocessSingleArg('abilityclass')
preprocessSingleArg('abilitystyle')
preprocessSingleArg('abilityheaderclass')
preprocessSingleArg('abilityheaderstyle')
preprocessSingleArg('name')
preprocessSingleArg('name')
preprocessSingleArg('decat')
preprocessSingleArg('decat')
8,856
edits

Navigation menu